summaryrefslogtreecommitdiff
path: root/strata/openstack-services/cinder.morph
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-04-13 15:42:05 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-04-16 16:23:04 +0000
commit0425200cc159e6baa007f8a80f451bb670452c71 (patch)
tree85aeb0594b69323acd2b958040c268916efb79cf /strata/openstack-services/cinder.morph
parent1ec9fced3606cf71c80414093289672ef56c4b92 (diff)
downloaddefinitions-0425200cc159e6baa007f8a80f451bb670452c71.tar.gz
Add Openstack system
Add Openstack system and stratum pointing they components to Juno tag 2014.2.1. Change-Id: Iaa9a31c44b0a2c711c5a147dc3156bab14577fb7 Signed-off-by: Pedro Alvarez <pedro.alvarez@codethink.co.uk> Signed-off-by: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> Signed-off-by: Richard Maw <richard.maw@codethink.co.uk> Signed-off-by: Richard Ipsum <richard.ipsum@codethink.co.uk> Signed-off-by: Patrick Darley <patrick.darley@codethink.co.uk> Signed-off-by: Zara Zaimeche <zara.zaimeche@codethink.co.uk> Signed-off-by: Mike Smith <mike.smith@codethink.co.uk>
Diffstat (limited to 'strata/openstack-services/cinder.morph')
-rw-r--r--strata/openstack-services/cinder.morph18
1 files changed, 18 insertions, 0 deletions
diff --git a/strata/openstack-services/cinder.morph b/strata/openstack-services/cinder.morph
new file mode 100644
index 00000000..cd680b09
--- /dev/null
+++ b/strata/openstack-services/cinder.morph
@@ -0,0 +1,18 @@
+name: cinder
+kind: chunk
+build-system: python-distutils
+post-install-commands:
+# Install rootwrap.conf
+- install -D -m 640 etc/cinder/rootwrap.conf "$DESTDIR"/etc/cinder/rootwrap.conf
+# Move rootwrap files to a proper location
+- mkdir -p "$DESTDIR"/etc/cinder/rootwrap.d
+- install -D -m 644 etc/cinder/rootwrap.d/* "$DESTDIR"/etc/cinder/rootwrap.d/
+# Add cinder to sudoers controlling which commands will run as a root
+# using the openstack rootwrap.
+- mkdir -p "$DESTDIR"/etc/sudoers.d
+- |
+ install -D -m 0440 /proc/self/fd/0 <<'EOF' "$DESTDIR"/etc/sudoers.d/cinder-rootwrap
+ Defaults:cinder !requiretty
+
+ cinder ALL=(root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf *
+ EOF