aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/neutron-api.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-13 19:02:26 +0000
committerGerrit Code Review <review@openstack.org>2017-01-13 19:02:26 +0000
commit8ac288bcff4fefbd065130b2122dbb2a6ba5ab1d (patch)
tree1c28a866b1b057aff5027c7870d956788d4f1539 /puppet/services/neutron-api.yaml
parenta99c5410c3886c176402ec7d2fa53d3cd39708b0 (diff)
parent04ed7e511dbdf835f6b8d4fd8cf3d907f18f6321 (diff)
Merge "Add neutron service support for composable upgrades"
Diffstat (limited to 'puppet/services/neutron-api.yaml')
-rw-r--r--puppet/services/neutron-api.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/services/neutron-api.yaml b/puppet/services/neutron-api.yaml
index fa10cd94..bbb79bba 100644
--- a/puppet/services/neutron-api.yaml
+++ b/puppet/services/neutron-api.yaml
@@ -160,3 +160,14 @@ outputs:
neutron::db::mysql::allowed_hosts:
- '%'
- "%{hiera('mysql_bind_host')}"
+ upgrade_tasks:
+ - name: Stop neutron_api service
+ tags: step2
+ service: name=neutron-server state=stopped
+ - name: Sync neutron_api DB
+ tags: step5
+ command: neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head
+ - name: Start neutron_api service
+ tags: step6
+ service: name=neutron-server state=started
+