diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-03-17 08:21:05 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-03-17 13:35:20 +0000 |
commit | 79a963d5f8cbd73c348a0676cda98f4d86aebf97 (patch) | |
tree | 6239e88c37394633d00531e152c7502a143164eb | |
parent | 0b84f78477ad804c3663f404643e9db4ed537578 (diff) | |
download | definitions-79a963d5f8cbd73c348a0676cda98f4d86aebf97.tar.gz |
Add units to run playbooks on first-boot
-rw-r--r-- | openstack/manifest | 2 | ||||
-rw-r--r-- | openstack/usr/lib/systemd/system/openstack-swift-controller-setup.service | 11 | ||||
-rw-r--r-- | openstack/usr/lib/systemd/system/openstack-swift-storage-setup.service | 11 |
3 files changed, 24 insertions, 0 deletions
diff --git a/openstack/manifest b/openstack/manifest index cbe18b70..c8b38dae 100644 --- a/openstack/manifest +++ b/openstack/manifest @@ -163,6 +163,8 @@ 0100644 0 0 /usr/share/openstack/hosts 0100644 0 0 /usr/share/openstack/swift-controller.yml 0100644 0 0 /usr/share/openstack/swift-storage.yml +0100644 0 0 /usr/lib/systemd/system/openstack-swift-controller-setup.service +0100644 0 0 /usr/lib/systemd/system/openstack-swift-storage-setup.service 0040755 0 0 /usr/share/swift 0040755 0 0 /usr/share/swift/etc 0040755 0 0 /usr/share/swift/etc/swift diff --git a/openstack/usr/lib/systemd/system/openstack-swift-controller-setup.service b/openstack/usr/lib/systemd/system/openstack-swift-controller-setup.service new file mode 100644 index 00000000..ec801b30 --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-swift-controller-setup.service @@ -0,0 +1,11 @@ +[Unit] +Description=Run openstack-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 diff --git a/openstack/usr/lib/systemd/system/openstack-swift-storage-setup.service b/openstack/usr/lib/systemd/system/openstack-swift-storage-setup.service new file mode 100644 index 00000000..6896c570 --- /dev/null +++ b/openstack/usr/lib/systemd/system/openstack-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 -M /usr/share/ansible/ansible-openstack-modules -i /usr/share/openstack/hosts /usr/share/openstack/swift-storage.yml +Restart=no + +[Install] +WantedBy=multi-user.target |