summaryrefslogtreecommitdiff
path: root/openstack/usr/lib/systemd/system/swift-controller-setup.service
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/usr/lib/systemd/system/swift-controller-setup.service')
-rw-r--r--openstack/usr/lib/systemd/system/swift-controller-setup.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/openstack/usr/lib/systemd/system/swift-controller-setup.service b/openstack/usr/lib/systemd/system/swift-controller-setup.service
new file mode 100644
index 00000000..3e0ddaf7
--- /dev/null
+++ b/openstack/usr/lib/systemd/system/swift-controller-setup.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Run swift-controller-setup (once)
+After=local-fs.target postgres-server.service openstack-keystone-setup.service openstack-keystone.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ansible-playbook -v -M /usr/share/ansible/ansible-openstack-modules -i /usr/share/openstack/hosts /usr/share/openstack/swift-controller.yml
+Restart=no
+
+[Install]
+WantedBy=multi-user.target