Skip to content

Perform safety checks in create-stack-user.sh - #50

Closed
jimrollenhagen wants to merge 1 commit into
openstack:masterfrom
jimrollenhagen:master
Closed

jimrollenhagen wants to merge 1 commit into
openstack:masterfrom
jimrollenhagen:master

Conversation

@jimrollenhagen

Copy link
Copy Markdown
Contributor

This adds some safety checks to the stack user creation script.

This includes:

  • Using set -e to exit early on errors
  • Make sure the functions script exists
  • Make sure the stackrc script exists
  • Make sure STACK_USER is set before doing anything with it

Why is this necessary? I managed to run this with sh, STACK_USER did not get set, and the end result was a broken sudoers file. Not fun.

This adds some safety checks to the stack user creation script.

This includes:
- Using set -e to exit early on errors
- Make sure the `functions` script exists
- Make sure the `stackrc` script exists
- Make sure STACK_USER is set before doing anything with it
@jimrollenhagen

Copy link
Copy Markdown
Contributor Author

Closing in favor of https://review.openstack.org/#/c/74488/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant