1 heat_template_version: ocata
4 OpenStack Congress 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: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
22 description: The password for the congress service account.
31 description: Keystone region for endpoint
33 description: The password for RabbitMQ
38 description: The username for RabbitMQ
43 Rabbit client subscriber parameter to specify
44 an SSL connection to the RabbitMQ host.
48 description: Set rabbit subscriber port, change this if using SSL
53 description: Role data for the Congress role.
55 service_name: congress
57 congress_password: {get_param: CongressPassword}
58 congress::db::database_connection:
61 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
63 - {get_param: CongressPassword}
65 - {get_param: [EndpointMap, MysqlInternal, host]}
67 - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
68 congress::keystone::auth::tenant: 'service'
69 congress::keystone::auth::password: {get_param: CongressPassword}
70 congress::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
71 congress::debug: {get_param: Debug}
72 congress::rpc_backend: rabbit
73 congress::rabbit_userid: {get_param: RabbitUserName}
74 congress::rabbit_password: {get_param: RabbitPassword}
75 congress::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
76 congress::rabbit_port: {get_param: RabbitClientPort}
77 congress::server::bind_host: {get_param: [ServiceNetMap, CongressApiNetwork]}
79 congress::db::mysql::password: {get_param: CongressPassword}
80 congress::db::mysql::user: congress
81 congress::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
82 congress::db::mysql::dbname: congress
83 congress::db::mysql::allowed_hosts:
85 - {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
89 include ::tripleo::profile::base::congress
92 - name: Check if congress is deployed
93 command: systemctl is-enabled openstack-congress-server
96 register: congress_enabled
97 - name: "PreUpgrade step0,validation: Check service openstack-congress-server is running"
98 shell: /usr/bin/systemctl show 'openstack-congress-server' --property ActiveState | grep '\bactive\b'
99 when: congress_enabled.rc == 0
100 tags: step0,validation
101 - name: Stop congress service
103 when: congress_enabled.rc == 0
104 service: name=openstack-congress-server state=stopped
105 - name: Install openstack-congress package if it was disabled
107 yum: name=openstack-congress state=latest
108 when: congress_enabled.rc != 0