aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/neutron-base.yaml
blob: 3f8ac7e881d48c1e7ae4d3e3209a260fd5c750ba (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
heat_template_version: 2016-04-08

description: >
  OpenStack Neutron base service. Shared for all Neutron agents.

parameters:
  RabbitPassword:
    description: The password for RabbitMQ
    type: string
    hidden: true
  RabbitUserName:
    default: guest
    description: The username for RabbitMQ
    type: string
  RabbitClientUseSSL:
    default: false
    description: >
        Rabbit client subscriber parameter to specify
        an SSL connection to the RabbitMQ host.
    type: string
  RabbitClientPort:
    default: 5672
    description: Set rabbit subscriber port, change this if using SSL
    type: number
  NeutronDhcpAgentsPerNetwork:
    type: number
    default: 3
    description: The number of neutron dhcp agents to schedule per network
  NeutronCorePlugin:
    default: 'ml2'
    description: |
        The core plugin for Neutron. The value should be the entrypoint to be loaded
        from neutron.core_plugins namespace.
    type: string
  NeutronServicePlugins:
    default: "router,qos"
    description: |
        Comma-separated list of service plugin entrypoints to be loaded from the
        neutron.service_plugins namespace.
    type: comma_delimited_list
  Debug:
    type: string
    default: ''
    description: Set to True to enable debugging on all services.

outputs:
  role_data:
    description: Role data for the Neutron base service.
    value:
      service_name: neutron_base
      config_settings:
        neutron::rabbit_password: {get_param: RabbitPassword}
        neutron::rabbit_user: {get_param: RabbitUserName}
        neutron::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
        neutron::rabbit_port: {get_param: RabbitClientPort}
        neutron::dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}
        neutron::core_plugin: {get_param: NeutronCorePlugin}
        neutron::service_plugins:
          str_replace:
            template: PLUGINS
            params:
              PLUGINS: {get_param: NeutronServicePlugins}
        neutron::debug: {get_param: Debug}
        neutron::allow_overlapping_ips: true
        neutron::rabbit_heartbeat_timeout_threshold: 60
        neutron::host: '"%{::fqdn}"'    #NOTE: extra quoting is needed
        neutron::keystone::auth::tenant: 'service'
        neutron::db::database_db_max_retries: -1
        neutron::db::database_max_retries: -1