summaryrefslogtreecommitdiff
path: root/strata/openstack-services/neutron.morph
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-17 15:00:30 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-03-04 11:34:05 +0000
commit290a534b1ce5c0bfd50ead9b03f02a2e3a91fc91 (patch)
treeb45481a726190aaa9cf68d3ed7a241791a6004ee /strata/openstack-services/neutron.morph
parent026df34681b22a039afcf8d1b74e9b6fd29f1000 (diff)
downloaddefinitions-290a534b1ce5c0bfd50ead9b03f02a2e3a91fc91.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/neutron.morph')
-rw-r--r--strata/openstack-services/neutron.morph2
1 files changed, 2 insertions, 0 deletions
diff --git a/strata/openstack-services/neutron.morph b/strata/openstack-services/neutron.morph
index d6d08997..b79a089b 100644
--- a/strata/openstack-services/neutron.morph
+++ b/strata/openstack-services/neutron.morph
@@ -11,5 +11,7 @@ post-install-commands:
- mkdir -p "$DESTDIR"/etc/sudoers.d
- |
install -D -m 0440 /proc/self/fd/0 <<'EOF' "$DESTDIR"/etc/sudoers.d/neutron-rootwrap
+ Defaults:neutron !requiretty
+
neutron ALL=(root) NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf *
EOF