summaryrefslogtreecommitdiff
path: root/swift/usr/lib/systemd/system/swift-storage-setup.service
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-04-01 14:39:24 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-04-10 19:09:41 +0000
commit4171a9255bc913cff40a177daf7611c06d735754 (patch)
tree71aaa97e0d7d73e0f5cf5483d875e9625e941ebb /swift/usr/lib/systemd/system/swift-storage-setup.service
parent54a2d1e21a65a4fada799a7d903c50d61c195e32 (diff)
downloaddefinitions-4171a9255bc913cff40a177daf7611c06d735754.tar.gz
Add configuration for swift storage nodes
Change-Id: Iad40b665edff7a3605b6600dafbcf67831e4290a
Diffstat (limited to 'swift/usr/lib/systemd/system/swift-storage-setup.service')
-rw-r--r--swift/usr/lib/systemd/system/swift-storage-setup.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/swift/usr/lib/systemd/system/swift-storage-setup.service b/swift/usr/lib/systemd/system/swift-storage-setup.service
new file mode 100644
index 00000000..e284fbed
--- /dev/null
+++ b/swift/usr/lib/systemd/system/swift-storage-setup.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Run openstack-swift-storage-setup (once)
+After=local-fs.target postgres-server.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ansible-playbook -v -i /usr/share/swift/hosts /usr/share/swift/swift-storage.yml
+Restart=no
+
+[Install]
+WantedBy=multi-user.target