Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / ironic-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Ironic services configured with Puppet
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   Debug:
34     default: ''
35     description: Set to True to enable debugging on all services.
36     type: string
37   IronicDebug:
38     default: ''
39     description: Set to True to enable debugging Ironic services.
40     type: string
41   IronicPassword:
42     description: The password for the Ironic service and db account, used by the Ironic services
43     type: string
44     hidden: true
45   RabbitUserName:
46     default: guest
47     description: The username for RabbitMQ
48     type: string
49   RabbitPassword:
50     description: The password for RabbitMQ
51     type: string
52     hidden: true
53   RabbitClientPort:
54     default: 5672
55     description: Set rabbit subscriber port, change this if using SSL
56     type: number
57   RabbitClientUseSSL:
58     default: false
59     description: >
60         Rabbit client subscriber parameter to specify
61         an SSL connection to the RabbitMQ host.
62     type: string
63
64 conditions:
65   service_debug_unset: {equals : [{get_param: IronicDebug}, '']}
66
67 outputs:
68   role_data:
69     description: Role data for the Ironic role.
70     value:
71       service_name: ironic_base
72       config_settings:
73         ironic::database_connection:
74           make_url:
75             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
76             username: ironic
77             password: {get_param: IronicPassword}
78             host: {get_param: [EndpointMap, MysqlInternal, host]}
79             path: /ironic
80             query:
81               read_default_file: /etc/my.cnf.d/tripleo.cnf
82               read_default_group: tripleo
83         ironic::debug:
84           if:
85           - service_debug_unset
86           - {get_param: Debug }
87           - {get_param: IronicDebug }
88         ironic::rabbit_userid: {get_param: RabbitUserName}
89         ironic::rabbit_password: {get_param: RabbitPassword}
90         ironic::rabbit_port: {get_param: RabbitClientPort}
91         ironic::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
92       step_config: |
93         include ::tripleo::profile::base::ironic