1 heat_template_version: pike
4 OpenStack Congress service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
34 description: The password for the congress service account.
42 description: Set to True to enable debugging Glance service.
47 description: Keystone region for endpoint
49 description: The password for RabbitMQ
54 description: The username for RabbitMQ
59 Rabbit client subscriber parameter to specify
60 an SSL connection to the RabbitMQ host.
64 description: Set rabbit subscriber port, change this if using SSL
68 A hash of policies to configure for Congress.
69 e.g. { congress-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
74 default: 'messagingv2'
75 description: Driver or drivers to handle sending notifications.
77 - allowed_values: [ 'messagingv2', 'noop' ]
80 service_debug_unset: {equals : [{get_param: CongressDebug}, '']}
84 description: Role data for the Congress role.
86 service_name: congress
88 congress_password: {get_param: CongressPassword}
89 congress::db::database_connection:
91 scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
93 password: {get_param: CongressPassword}
94 host: {get_param: [EndpointMap, MysqlInternal, host]}
97 read_default_file: /etc/my.cnf.d/tripleo.cnf
98 read_default_group: tripleo
101 - service_debug_unset
102 - {get_param: Debug }
103 - {get_param: CongressDebug }
104 congress::rpc_backend: rabbit
105 congress::notification_driver: {get_param: NotificationDriver}
106 congress::rabbit_userid: {get_param: RabbitUserName}
107 congress::rabbit_password: {get_param: RabbitPassword}
108 congress::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
109 congress::rabbit_port: {get_param: RabbitClientPort}
110 congress::server::bind_host: {get_param: [ServiceNetMap, CongressApiNetwork]}
112 congress::keystone::authtoken::password: {get_param: CongressPassword}
113 congress::keystone::authtoken::project_name: 'service'
114 congress::keystone::authtoken::user_domain_name: 'Default'
115 congress::keystone::authtoken::project_domain_name: 'Default'
116 congress::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
117 congress::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
119 congress::db::mysql::password: {get_param: CongressPassword}
120 congress::db::mysql::user: congress
121 congress::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
122 congress::db::mysql::dbname: congress
123 congress::db::mysql::allowed_hosts:
125 - {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
126 congress::policy::policies: {get_param: CongressPolicies}
128 service_config_settings:
130 congress::keystone::auth::tenant: 'service'
131 congress::keystone::auth::region: {get_param: KeystoneRegion}
132 congress::keystone::auth::password: {get_param: CongressPassword}
133 congress::keystone::auth::public_url: {get_param: [EndpointMap, CongressPublic, uri]}
134 congress::keystone::auth::internal_url: {get_param: [EndpointMap, CongressInternal, uri]}
135 congress::keystone::auth::admin_url: {get_param: [EndpointMap, CongressAdmin, uri]}
138 include ::tripleo::profile::base::congress
141 - name: Check if congress is deployed
142 command: systemctl is-enabled openstack-congress-server
145 register: congress_enabled
146 - name: "PreUpgrade step0,validation: Check service openstack-congress-server is running"
147 shell: /usr/bin/systemctl show 'openstack-congress-server' --property ActiveState | grep '\bactive\b'
148 when: congress_enabled.rc == 0
149 tags: step0,validation
150 - name: Stop congress service
152 when: congress_enabled.rc == 0
153 service: name=openstack-congress-server state=stopped
154 - name: Install openstack-congress package if it was disabled
156 yum: name=openstack-congress state=latest
157 when: congress_enabled.rc != 0