1 heat_template_version: pike
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: 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 congress service account.
38 description: Set to True to enable debugging Glance service.
43 description: Keystone region for endpoint
45 description: The password for RabbitMQ
50 description: The username for RabbitMQ
55 Rabbit client subscriber parameter to specify
56 an SSL connection to the RabbitMQ host.
60 description: Set rabbit subscriber port, change this if using SSL
64 A hash of policies to configure for Congress.
65 e.g. { congress-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
70 default: 'messagingv2'
71 description: Driver or drivers to handle sending notifications.
73 - allowed_values: [ 'messagingv2', 'noop' ]
76 service_debug_unset: {equals : [{get_param: CongressDebug}, '']}
80 description: Role data for the Congress role.
82 service_name: congress
84 congress_password: {get_param: CongressPassword}
85 congress::db::database_connection:
87 scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
89 password: {get_param: CongressPassword}
90 host: {get_param: [EndpointMap, MysqlInternal, host]}
93 read_default_file: /etc/my.cnf.d/tripleo.cnf
94 read_default_group: tripleo
99 - {get_param: CongressDebug }
100 congress::rpc_backend: rabbit
101 congress::notification_driver: {get_param: NotificationDriver}
102 congress::rabbit_userid: {get_param: RabbitUserName}
103 congress::rabbit_password: {get_param: RabbitPassword}
104 congress::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
105 congress::rabbit_port: {get_param: RabbitClientPort}
106 congress::server::bind_host: {get_param: [ServiceNetMap, CongressApiNetwork]}
108 congress::keystone::authtoken::password: {get_param: CongressPassword}
109 congress::keystone::authtoken::project_name: 'service'
110 congress::keystone::authtoken::user_domain_name: 'Default'
111 congress::keystone::authtoken::project_domain_name: 'Default'
112 congress::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
113 congress::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
115 congress::db::mysql::password: {get_param: CongressPassword}
116 congress::db::mysql::user: congress
117 congress::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
118 congress::db::mysql::dbname: congress
119 congress::db::mysql::allowed_hosts:
121 - {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
122 congress::policy::policies: {get_param: CongressPolicies}
124 service_config_settings:
126 congress::keystone::auth::tenant: 'service'
127 congress::keystone::auth::region: {get_param: KeystoneRegion}
128 congress::keystone::auth::password: {get_param: CongressPassword}
129 congress::keystone::auth::public_url: {get_param: [EndpointMap, CongressPublic, uri]}
130 congress::keystone::auth::internal_url: {get_param: [EndpointMap, CongressInternal, uri]}
131 congress::keystone::auth::admin_url: {get_param: [EndpointMap, CongressAdmin, uri]}
134 include ::tripleo::profile::base::congress
137 - name: Check if congress is deployed
138 command: systemctl is-enabled openstack-congress-server
141 register: congress_enabled
142 - name: "PreUpgrade step0,validation: Check service openstack-congress-server is running"
143 shell: /usr/bin/systemctl show 'openstack-congress-server' --property ActiveState | grep '\bactive\b'
144 when: congress_enabled.rc == 0
145 tags: step0,validation
146 - name: Stop congress service
148 when: congress_enabled.rc == 0
149 service: name=openstack-congress-server state=stopped
150 - name: Install openstack-congress package if it was disabled
152 yum: name=openstack-congress state=latest
153 when: congress_enabled.rc != 0