summaryrefslogtreecommitdiff
path: root/openstack-swift.configure
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-02 15:50:59 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-04 15:34:40 +0000
commit702cacbfb76ce2cf18fc86a4887b64a3769f51ca (patch)
tree64e4e0ea079dc4e4d43798ee49aa01b06e11c45f /openstack-swift.configure
parentbc13fad90a8444fe33d7a25fab96193aefda161f (diff)
downloaddefinitions-702cacbfb76ce2cf18fc86a4887b64a3769f51ca.tar.gz
Make a unit for each type of node
swift-controller and swift-storage these units are enabled my specifying a flag in the cluster morph, SWIFT_CONTROLLER and SWIFT_STORAGE
Diffstat (limited to 'openstack-swift.configure')
-rw-r--r--openstack-swift.configure12
1 files changed, 10 insertions, 2 deletions
diff --git a/openstack-swift.configure b/openstack-swift.configure
index 1ab559a3..ee75d16a 100644
--- a/openstack-swift.configure
+++ b/openstack-swift.configure
@@ -33,9 +33,17 @@ sed -f "$ROOT"/etc/openstack-swift-setup.sed -i \
"$ROOT"/etc/swift/container-server.conf
"$ROOT"/etc/swift/object-server.conf
-ln -s "/etc/systemd/system/openstack-swift-setup.service" \
- "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-setup.service"
+if $SWIFT_CONTROLLER
+then
+ ln -s "/etc/systemd/system/openstack-swift-controller-setup.service" \
+ "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-controller-setup.service"
+fi
+if $SWIFT_STORAGE
+then
+ ln -s "/etc/systemd/system/openstack-swift-storage-setup.service" \
+ "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-swift-storage-setup.service"
+fi
cat << EOF > "$ROOT"/usr/share/openstack/swift-vars.yml
---