Pass the DOCKER_* env vars when running docker
[apex-tripleo-heat-templates.git] / puppet / services / tacker.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Tacker service 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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   TackerPassword:
22     description: The password for the tacker service account.
23     type: string
24     hidden: true
25   Debug:
26     type: string
27     default: ''
28   KeystoneRegion:
29     type: string
30     default: 'regionOne'
31     description: Keystone region for endpoint
32   RabbitPassword:
33     description: The password for RabbitMQ
34     type: string
35     hidden: true
36   RabbitUserName:
37     default: guest
38     description: The username for RabbitMQ
39     type: string
40   RabbitClientUseSSL:
41     default: false
42     description: >
43         Rabbit client subscriber parameter to specify
44         an SSL connection to the RabbitMQ host.
45     type: string
46   RabbitClientPort:
47     default: 5672
48     description: Set rabbit subscriber port, change this if using SSL
49     type: number
50
51 outputs:
52   role_data:
53     description: Role data for the Tacker role.
54     value:
55       service_name: tacker
56       config_settings:
57         tacker_password: {get_param: TackerPassword}
58         tacker::db::database_connection:
59           list_join:
60             - ''
61             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
62               - '://tacker:'
63               - {get_param: TackerPassword}
64               - '@'
65               - {get_param: [EndpointMap, MysqlInternal, host]}
66               - '/tacker'
67               - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
68
69         tacker::debug: {get_param: Debug}
70         tacker::rpc_backend: rabbit
71         tacker::rabbit_userid: {get_param: RabbitUserName}
72         tacker::rabbit_password: {get_param: RabbitPassword}
73         tacker::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
74         tacker::rabbit_port: {get_param: RabbitClientPort}
75         tacker::server::bind_host: {get_param: [ServiceNetMap, TackerApiNetwork]}
76
77         tacker::keystone::authtoken::project_name: 'service'
78         tacker::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
79         tacker::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
80
81         tacker::db::mysql::password: {get_param: TackerPassword}
82         tacker::db::mysql::user: tacker
83         tacker::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
84         tacker::db::mysql::dbname: tacker
85         tacker::db::mysql::allowed_hosts:
86           - '%'
87           - {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
88
89       service_config_settings:
90         keystone:
91           tacker::keystone::auth::tenant: 'service'
92           tacker::keystone::auth::password: {get_param: TackerPassword}
93           tacker::keystone::auth::public_url: {get_param: [EndpointMap, TackerPublic, uri]}
94           tacker::keystone::auth::internal_url: {get_param: [EndpointMap, TackerInternal, uri]}
95           tacker::keystone::auth::admin_url: {get_param: [EndpointMap, TackerAdmin, uri]}
96
97       step_config: |
98         include ::tripleo::profile::base::tacker
99       upgrade_tasks:
100         - name: "PreUpgrade step0,validation: Check service openstack-tacker-server is running"
101           shell: /usr/bin/systemctl show 'openstack-tacker-server' --property ActiveState | grep '\bactive\b'
102           tags: step0,validation
103         - name: Stop tacker service
104           tags: step1
105           service: name=openstack-tacker-server state=stopped