Put service stop at step1 and quiesce at step2.
[apex-tripleo-heat-templates.git] / puppet / services / congress.yaml
index 1b82f55..c818980 100644 (file)
@@ -64,8 +64,7 @@ outputs:
               - '@'
               - {get_param: [EndpointMap, MysqlInternal, host]}
               - '/congress'
-              - '?bind_address='
-              - "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
+              - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
         congress::keystone::auth::tenant: 'service'
         congress::keystone::auth::password: {get_param: CongressPassword}
         congress::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
@@ -88,3 +87,11 @@ outputs:
 
       step_config: |
         include ::tripleo::profile::base::congress
+
+      upgrade_tasks:
+        - name: "PreUpgrade step0,validation: Check service openstack-congress-server is running"
+          shell: /usr/bin/systemctl show 'openstack-congress-server' --property ActiveState | grep '\bactive\b'
+          tags: step0,validation
+        - name: Stop congress service
+          tags: step1
+          service: name=openstack-congress-server state=stopped