-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F add test machine env password option #638
base: master
Are you sure you want to change the base?
Conversation
@@ -415,7 +434,9 @@ elif [[ "${playbook}" = "teleop_deploy" ]]; then | |||
echo "" | |||
else | |||
aurora_inventory="ansible/inventory/${aurora_inventory}" | |||
ansible_flags="${ansible_flags} --ask-become-pass" | |||
if [[ "${test_machine}" != "true" ]]; then | |||
ansible_flags="${ansible_flags} --ask-become-pass" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we need the become password in the test_machine case?
@@ -392,15 +403,23 @@ if [[ "${playbook}" = "server_and_nuc_deploy" ]]; then | |||
else | |||
aurora_inventory="ansible/inventory/server_and_nuc/${aurora_inventory}" | |||
fi | |||
ansible_flags="${ansible_flags} --ask-vault-pass" | |||
if [[ "${test_machine}" = "true" ]]; then | |||
ansible_flags="${ansible_flags} --vault-password-file /home/$USER/vault.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the vault.sh file look like? Should we add an exmple file? or a comment describing the contents of such file?
@@ -328,6 +334,11 @@ echo " | Installing needed packages |" | |||
echo " ---------------------------------" | |||
echo "" | |||
|
|||
if [[ "${test_machine}" = "true" ]]; then | |||
echo $test_password | sudo -S echo "Running on testing machine. Retrieving passwords from ENV..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does the variable test_password
get set? Should we add an example or instructions or a script that calls run-ansible.sh after setting this variable?
Proposed changes
add option for password to be read from a vault file (for test machine infrastructure)
Checklist
Before posting a PR ensure that from each of the below categories AT LEAST ONE BOX HAS BEEN CHECKED. If more than one category is applicable then more can be checked. Also ensure that the proposed changes have been filled out with relevant information for reviewers.
Tests
Documentation