diff --git a/AUTHORS b/AUTHORS index f9aa9eabe5..ff05f821a9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -26,6 +26,7 @@ Ken Pepple Kiall Mac Innes Russell Bryant Scott Moser +Thierry Carrez Todd Willey Tres Henry Vishvananda Ishaya diff --git a/stack.sh b/stack.sh index 0d90baea31..7faa8f650e 100755 --- a/stack.sh +++ b/stack.sh @@ -187,13 +187,6 @@ else sudo chown root:root $TEMPFILE sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh - # Set up the rootwrap sudoers - TEMPFILE=`mktemp` - echo "$USER ALL=(root) NOPASSWD: $NOVA_ROOTWRAP" >$TEMPFILE - chmod 0440 $TEMPFILE - sudo chown root:root $TEMPFILE - sudo mv $TEMPFILE /etc/sudoers.d/nova-rootwrap - # Remove old file sudo rm -f /etc/sudoers.d/stack_sh_nova fi @@ -1189,6 +1182,13 @@ sudo chown `whoami` $NOVA_CONF_DIR cp -p $NOVA_DIR/etc/nova/policy.json $NOVA_CONF_DIR +# Set up the rootwrap sudoers +TEMPFILE=`mktemp` +echo "$USER ALL=(root) NOPASSWD: $NOVA_ROOTWRAP" >$TEMPFILE +chmod 0440 $TEMPFILE +sudo chown root:root $TEMPFILE +sudo mv $TEMPFILE /etc/sudoers.d/nova-rootwrap + if is_service_enabled n-api; then # Use the sample http middleware configuration supplied in the # Nova sources. This paste config adds the configuration required