-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #400 from automationiberia/add_export_settings
add settings to filetree_create and custom_virtualenv for jt if tower
- Loading branch information
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: "Get current Settings from the API" | ||
ansible.builtin.set_fact: | ||
changed_settings: "{{ query(controller_api_plugin, 'api/v2/settings/changed/', | ||
host=controller_hostname, oauth_token=controller_oauthtoken, verify_ssl=controller_validate_certs, | ||
return_all=true, max_objects=query_controller_api_max_objects) | ||
}}" | ||
|
||
- name: "Create the output directory for credential types: {{ output_path }}" | ||
ansible.builtin.file: | ||
path: "{{ output_path }}" | ||
state: directory | ||
mode: '0755' | ||
|
||
- name: "Add current settings to the settings.yaml output file in {{ output_path }}" | ||
ansible.builtin.template: | ||
src: "templates/current_settings.j2" | ||
dest: "{{ output_path }}/current_settings.yaml" | ||
mode: '0644' | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
controller_settings: | ||
- settings: "{{ changed_settings[0] | replace('\'AUTH_LDAP_GROUP_TYPE_PARAMS\': {}', '\'AUTH_LDAP_GROUP_TYPE_PARAMS\': {\'name_attr\': \'cn\', \'member_attr\': \'member\'}') }}" | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters