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
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-03-14 12:07:11 +0000
commit29892cd76ed0380e0c1e328f40938079ee5e6388 (patch)
treed2e8593c56fb09f6d4b46f8234f31d23f45e3fad /strata/openstack-services/cinder.morph
parent0e6cba2aa8a0856dced8e86b073849e7a343c9dd (diff)
downloaddefinitions-29892cd76ed0380e0c1e328f40938079ee5e6388.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