-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: collections/requirements.yml
modified: group_vars/all/auth.yml new file: group_vars/all/eda_credentials.yml new file: group_vars/all/eda_decision_environments.yml new file: group_vars/all/eda_projects.yml new file: group_vars/all/eda_rulebook_activations.yml modified: group_vars/all/job_templates.yml new file: playbooks/eda_config.yml
- Loading branch information
1 parent
3c20471
commit 58f18d6
Showing
8 changed files
with
96 additions
and
4 deletions.
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
# User may add controller auth creds to this file and encrypt it using `ansible-vault` | ||
--- | ||
controller_hostname: "{{ controller_host | default(groups['automationcontroller'][0]) }}" | ||
controller_hostname: "{{ controller_host | default(groups['automationcontroller'][0]) }}:{{ controller_port | default(443) }}" | ||
controller_username: "{{ controller_user | default('admin') }}" | ||
controller_password: "{{ controller_pass }}" | ||
controller_validate_certs: false | ||
|
||
ah_host: "{{ ah_hostname | default(groups['automationhub'][0]) }}" | ||
ah_host: "{{ ah_hostname | default(groups['automationhub'][0]) }}:{{ ah_port | default(443) }}" | ||
ah_username: "{{ ah_user | default('admin') }}" | ||
ah_password: "{{ ah_pass }}" | ||
ah_path_prefix: galaxy # this is for private automation hub | ||
validate_certs: false | ||
ah_path_prefix: 'galaxy' # this is for private automation hub | ||
ah_verify_ssl: false | ||
ah_validate_certs: false | ||
|
||
ee_registry_username: "{{ ah_username }}" | ||
ee_registry_password: "{{ ah_password }}" | ||
ee_registry_dest: "{{ ah_host }}" | ||
|
||
eda_hostname: "{{ eda_host | default(groups['automationedacontroller'][0]) | default(groups['automationeda'][0]) }}:{{ eda_port | default(443) }}" | ||
eda_username: "{{ eda_user | default('admin') }}" | ||
eda_password: "{{ eda_pass }}" | ||
eda_validate_certs: false | ||
... |
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,8 @@ | ||
--- | ||
eda_credentials: | ||
- name: hub | ||
description: private automation hub | ||
credential_type: 'Container Registry' | ||
username: "{{ ah_username }}" | ||
secret: "{{ ah_password }}" | ||
... |
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,7 @@ | ||
--- | ||
eda_decision_environments: | ||
- name: minimal | ||
description: my default decision environment | ||
image_url: "{{ ah_host }}/de-minimal-rhel8" | ||
credential: hub | ||
... |
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,10 @@ | ||
--- | ||
eda_projects: | ||
- name: eda | ||
description: config as code eda | ||
url: https://github.com/djdanielsson/eda.git | ||
# credential: test_token | ||
wait: true | ||
interval: 10 | ||
sync: true | ||
... |
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,14 @@ | ||
--- | ||
eda_rulebook_activations: | ||
- name: gitea_hook | ||
description: Hook to listen for changes in gitea | ||
project: eda | ||
rulebook: config_as_code.yml | ||
decision_environment: minimal | ||
# extra_vars: | ||
# provider: github-local | ||
# repo_url: https://github.com/ansible/ansible-rulebook.git | ||
enabled: true | ||
state: present | ||
awx_token: aap | ||
... |
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,33 @@ | ||
--- | ||
- name: Playbook to configure event driven ansible controller post installation | ||
hosts: all | ||
vars_files: | ||
- "../vaults/{{ env }}.yml" | ||
connection: local | ||
tasks: | ||
- name: Include credential role | ||
ansible.builtin.include_role: | ||
name: infra.eda_configuration.credential | ||
when: eda_credentials is defined | ||
|
||
- name: Include project role | ||
ansible.builtin.include_role: | ||
name: infra.eda_configuration.project | ||
when: eda_projects is defined | ||
|
||
- name: Include project_sync role | ||
ansible.builtin.include_role: | ||
name: infra.eda_configuration.project_sync | ||
when: eda_projects is defined | ||
|
||
- name: Include decision_environment role | ||
ansible.builtin.include_role: | ||
name: infra.eda_configuration.decision_environment | ||
when: eda_decision_environments is defined | ||
|
||
- name: Include rulebook_activation role | ||
ansible.builtin.include_role: | ||
name: infra.eda_configuration.rulebook_activation | ||
when: eda_rulebook_activations is defined | ||
|
||
... |