summaryrefslogtreecommitdiff
path: root/strata/openstack-services/cinder.morph
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-17 15:00:30 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-03-23 22:58:54 +0000
commit7584dd03158e4053d3ed36757e7aca5051e3d2fb (patch)
treeb36d4aeec414ac9d82ece628ea3c31e7f178d737 /strata/openstack-services/cinder.morph
parent3a73d42b784eaa5e46e0f5890b0a5bb2f75dfead (diff)
downloaddefinitions-7584dd03158e4053d3ed36757e7aca5051e3d2fb.tar.gz
Disable login requirement for sudo for cinder, nova and neutron users
Requiredtty is dissable by default but just in case we enable it in the future for the rest of the users, cinder, nova and neutron needs login disable to run commands being superuser.
Diffstat (limited to 'strata/openstack-services/cinder.morph')
-rw-r--r--strata/openstack-services/cinder.morph2
1 files changed, 2 insertions, 0 deletions
diff --git a/strata/openstack-services/cinder.morph b/strata/openstack-services/cinder.morph
index eafc7cea..cd680b09 100644
--- a/strata/openstack-services/cinder.morph
+++ b/strata/openstack-services/cinder.morph
@@ -12,5 +12,7 @@ post-install-commands:
- 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