diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-02-16 17:34:52 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-03-14 12:07:11 +0000 |
commit | 59bd33fc3b9fab49a23a97486cd833c9fa1dcb0b (patch) | |
tree | d1f0dcc66383b075e14d86fef5f3484c91bb7db6 /strata/openstack-services/neutron.morph | |
parent | fd3bbd2ec2f13692598e5e8a2ef8960b80b09b64 (diff) | |
download | definitions-59bd33fc3b9fab49a23a97486cd833c9fa1dcb0b.tar.gz |
Add sudoers files for cinder, nova and neutron on post-install time
Diffstat (limited to 'strata/openstack-services/neutron.morph')
-rw-r--r-- | strata/openstack-services/neutron.morph | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/strata/openstack-services/neutron.morph b/strata/openstack-services/neutron.morph index 1de5678b..d6d08997 100644 --- a/strata/openstack-services/neutron.morph +++ b/strata/openstack-services/neutron.morph @@ -6,3 +6,10 @@ post-install-commands: - mkdir -p "$DESTDIR"/etc/neutron - mv "$DESTDIR$PREFIX"/etc/neutron/rootwrap.d "$DESTDIR"/etc/neutron/ - mv "$DESTDIR$PREFIX"/etc/neutron/rootwrap.conf "$DESTDIR"/etc/neutron/ +# Add neutron to sudoers controlling which commands is running 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/neutron-rootwrap + neutron ALL=(root) NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf * + EOF |