Skip to content
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

Changed path directory user filetree-read and change var drop_user_ex… #381

Merged
merged 2 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
controller_user_accounts:
- username: "adminorg1"
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34326232313533313332653164303739356639666566613232363234316333646630313830316639
6666613666393831356637353834343733626132336361300a333836633636356338383038623034
31633639323635333835393662346566303037633834313561666166653232376238623461626138
6163663536373538390a393763316538313133313363346466666264386334383638336133366465
3130
email: "[email protected]"
firstname: "adminorg1"
lastname: "adminorg1"
is_auditor: False
is_superuser: False

- username: "userorg1"
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34326232313533313332653164303739356639666566613232363234316333646630313830316639
6666613666393831356637353834343733626132336361300a333836633636356338383038623034
31633639323635333835393662346566303037633834313561666166653232376238623461626138
6163663536373538390a393763316538313133313363346466666264386334383638336133366465
3130
email: "[email protected]"
is_superuser: False

...
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
controller_user_accounts:
- username: "adminorg2"
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34326232313533313332653164303739356639666566613232363234316333646630313830316639
6666613666393831356637353834343733626132336361300a333836633636356338383038623034
31633639323635333835393662346566303037633834313561666166653232376238623461626138
6163663536373538390a393763316538313133313363346466666264386334383638336133366465
3130
email: "[email protected]"
firstname: "adminorg2"
lastname: "adminorg2"
is_auditor: False
is_superuser: False

- username: "userorg2"
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34326232313533313332653164303739356639666566613232363234316333646630313830316639
6666613666393831356637353834343733626132336361300a333836633636356338383038623034
31633639323635333835393662346566303037633834313561666166653232376238623461626138
6163663536373538390a393763316538313133313363346466666264386334383638336133366465
3130
email: "[email protected]"
is_superuser: False
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
controller_user_accounts:
- username: "admin"
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34326232313533313332653164303739356639666566613232363234316333646630313830316639
6666613666393831356637353834343733626132336361300a333836633636356338383038623034
31633639323635333835393662346566303037633834313561666166653232376238623461626138
6163663536373538390a393763316538313133313363346466666264386334383638336133366465
3130
email: "[email protected]"
firstname: "admin"
lastname: "admin"
is_auditor: False
is_superuser: True
update_secrets: False
...
2 changes: 1 addition & 1 deletion roles/filetree_read/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ controller_roles: []
filetree_controller_settings: "{{ dir_orgs_vars }}/{{ orgs }}/env/{{ env }}/controller_settings.d/"
filetree_controller_organizations: "{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_organizations.d/"
filetree_controller_labels: "{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_labels.d/"
filetree_controller_user_accounts: "{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_users.d/"
filetree_controller_user_accounts: "{{ dir_orgs_vars }}/{{ orgs }}/env/{{ env }}/controller_users.d/"
filetree_controller_teams: "{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_teams.d/"
filetree_controller_credential_types: "{{ dir_orgs_vars }}/{{ orgs }}/env/common/controller_credential_types.d/"
filetree_controller_credentials: "{{ dir_orgs_vars }}/{{ orgs }}/env/{{ env }}/controller_credentials.d/"
Expand Down
2 changes: 1 addition & 1 deletion roles/object_diff/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ controller_hostname: "{{ vault_controller_hostname | default(lookup('env', 'CONT
controller_validate_certs: "{{ vault_controller_validate_certs | default(lookup('env', 'CONTROLLER_VERIFY_SSL')) }}"

# populate_controller_api_user_accounts_without_external_accounts
drop_user_external_accounts: true
drop_user_external_accounts: false

# Automation Controller Object Lists
controller_settings: []
Expand Down
4 changes: 1 addition & 3 deletions roles/object_diff/tasks/user_accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
__controller_api_user_accounts: "{{ populate_controller_api_user_accounts_without_external_accounts }}"
when: populate_controller_api_user_accounts_without_external_accounts is defined

when:
- drop_user_external_accounts is defined
- drop_user_external_accounts
when: not drop_user_external_accounts

- name: "User account differences (block)"
block:
Expand Down