diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-04-01 14:39:24 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-04-08 15:17:30 +0000 |
commit | 0bf53a3ab5d0c613fbe6d922873ab7edc183ccb1 (patch) | |
tree | 1c7d0faf266faed3b6130e283584c8793889b73a /swift/usr/lib | |
parent | e5860e5663cd50d6c83a69d25cad689e86c9446d (diff) | |
download | definitions-0bf53a3ab5d0c613fbe6d922873ab7edc183ccb1.tar.gz |
Add configuration for swift storage nodes
Change-Id: Iad40b665edff7a3605b6600dafbcf67831e4290a
Diffstat (limited to 'swift/usr/lib')
-rw-r--r-- | swift/usr/lib/systemd/system/swift-storage-setup.service | 11 | ||||
-rw-r--r-- | swift/usr/lib/systemd/system/swift-storage.service | 12 |
2 files changed, 23 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 diff --git a/swift/usr/lib/systemd/system/swift-storage.service b/swift/usr/lib/systemd/system/swift-storage.service new file mode 100644 index 00000000..dc41d3bc --- /dev/null +++ b/swift/usr/lib/systemd/system/swift-storage.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenStack Swift Storage +After=syslog.target network.target swift-storage-setup.service + +[Service] +Type=forking +Restart=on-failure +ExecStart=/usr/bin/swift-init all start +ExecStop=/usr/bin/swift-init all stop + +[Install] +WantedBy=multi-user.target |