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