1 heat_template_version: pike
4 OpenStack Tacker service configured with Puppet
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.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
30 description: The password for the tacker service account.
39 description: Keystone region for endpoint
41 description: The password for RabbitMQ
46 description: The username for RabbitMQ
51 Rabbit client subscriber parameter to specify
52 an SSL connection to the RabbitMQ host.
56 description: Set rabbit subscriber port, change this if using SSL
60 A hash of policies to configure for Tacker.
61 e.g. { tacker-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
67 description: Role data for the Tacker role.
71 tacker_password: {get_param: TackerPassword}
72 tacker::db::database_connection:
74 scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
76 password: {get_param: TackerPassword}
77 host: {get_param: [EndpointMap, MysqlInternal, host]}
80 read_default_file: /etc/my.cnf.d/tripleo.cnf
81 read_default_group: tripleo
83 tacker::debug: {get_param: Debug}
84 tacker::rpc_backend: rabbit
85 tacker::rabbit_userid: {get_param: RabbitUserName}
86 tacker::rabbit_password: {get_param: RabbitPassword}
87 tacker::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
88 tacker::rabbit_port: {get_param: RabbitClientPort}
89 tacker::server::bind_host: {get_param: [ServiceNetMap, TackerApiNetwork]}
91 tacker::keystone::authtoken::project_name: 'service'
92 tacker::keystone::authtoken::user_domain_name: 'Default'
93 tacker::keystone::authtoken::project_domain_name: 'Default'
94 tacker::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
95 tacker::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
97 tacker::db::mysql::password: {get_param: TackerPassword}
98 tacker::db::mysql::user: tacker
99 tacker::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
100 tacker::db::mysql::dbname: tacker
101 tacker::db::mysql::allowed_hosts:
103 - {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
104 tacker::policy::policies: {get_param: TackerPolicies}
106 service_config_settings:
108 tacker::keystone::auth::tenant: 'service'
109 tacker::keystone::auth::region: {get_param: KeystoneRegion}
110 tacker::keystone::auth::password: {get_param: TackerPassword}
111 tacker::keystone::auth::public_url: {get_param: [EndpointMap, TackerPublic, uri]}
112 tacker::keystone::auth::internal_url: {get_param: [EndpointMap, TackerInternal, uri]}
113 tacker::keystone::auth::admin_url: {get_param: [EndpointMap, TackerAdmin, uri]}
116 include ::tripleo::profile::base::tacker
118 - name: Check if tacker is deployed
119 command: systemctl is-enabled openstack-tacker-server
122 register: tacker_enabled
123 - name: "PreUpgrade step0,validation: Check service openstack-tacker-server is running"
124 shell: /usr/bin/systemctl show 'openstack-tacker-server' --property ActiveState | grep '\bactive\b'
125 when: tacker_enabled.rc == 0
126 tags: step0,validation
127 - name: Stop tacker service
129 when: tacker_enabled.rc == 0
130 service: name=openstack-tacker-server state=stopped
131 - name: Install openstack-tacker package if it was disabled
133 yum: name=openstack-tacker state=latest
134 when: tacker_enabled.rc != 0