aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/neutron-odl-honeycomb-agent.yaml
blob: 38308da7e9d1265cf333fda495b0f3532ef10c69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
heat_template_version: newton

description: >
  OpenStack Neutron Honeycomb agent configured with Puppet

parameters:
  ServiceNetMap:
    default: {}
    description: >
      Mapping of service_name -> network name. Typically set via
      parameter_defaults in the resource registry. This mapping overrides those
      in ServiceNetMapDefaults.
    type: json
  DefaultPasswords:
    default: {}
    type: json
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  HoneycombUser:
    description: Username for Honeycomb agent
    type: string
    default: 'admin'
  HoneycombPassword:
    description: Password for Honeycomb agent
    type: string
    hidden: true
    default: 'admin'
  HoneycombRestPort:
    description: Port for Honeycomb REST interface to listen on.
    type: number
    default: 8183
  HoneycombNetconfSSHPort:
    description: Honeycomb Netconf SSH binding port.
    type: number
    default: 2831
  OpenDaylightUsername:
    default: 'admin'
    description: The username for the opendaylight server.
    type: string
  OpenDaylightPassword:
    default: 'admin'
    type: string
    description: The password for the opendaylight server.
    hidden: true
  OpenDaylightPort:
    default: 8081
    description: OpenDaylight service port
    type: number

outputs:
  role_data:
    description: Role data for Honeycomb agent service.
    value:
      service_name: neutron_honeycomb_agent
      config_settings:
        fdio::honeycomb::user: {get_param: HoneycombUser}
        fdio::honeycomb::password: {get_param: HoneycombPassword}
        fdio::honeycomb::rest_port: {get_param: HoneycombRestPort}
        fdio::honeycomb::opendaylight_ip: "%{hiera('opendaylight_api_vip')}"
        fdio::honeycomb::opendaylight_port: {get_param: OpenDaylightPort}
        fdio::honeycomb::opendaylight_username: {get_param: OpenDaylightUsername}
        fdio::honeycomb::opendaylight_password: {get_param: OpenDaylightPassword}
        fdio::honeycomb::bind_ip: {get_param: [ServiceNetMap, HoneycombNetwork]}
        fdio::honeycomb::node_id: '%{::fqdn}'
        tripleo.neutron_honeycomb_agent.firewall_rules:
          '142 neutron honeycomb agent':
            dport:
              - {get_param: HoneycombRestPort}
              - {get_param: HoneycombNetconfSSHPort}
      step_config: |
        include ::tripleo::profile::base::neutron::agents::honeycomb