Skip to content

Commit 17c0d97

Browse files
authored
Merge pull request #131 from ericcames/ericames/productdemo
Ericames/productdemo
2 parents e73d91e + 6d4fef9 commit 17c0d97

7 files changed

Lines changed: 149 additions & 35 deletions

File tree

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
ames@redhat.com.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,17 @@ Looking for other Daily Demos?
8383
![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/snowshort.png "ServiceNow Catalog Item")
8484
8585
11. Create your job template
86-
![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/newtemplate.png "Setup - AAP - CAC")
8786
8887
Template name
8988
```
9089
Setup - AAP - CAC
9190
```
9291
92+
![alt text](https://github.com/ericcames/aap.as.code/blob/main/images/setup_template.png "Setup - AAP - CAC")
93+
9394
Extra variables
9495
```
9596
my_windows_catalog_short_description: Ames AAP Windows AWS Daily Demo
96-
my_aap_url: "GETTHISFROMAPD"
97-
my_ctrl_admin_password: "GETTHISFROMAPD"
9897
my_vault: Eric Ames
9998
my_remote_vault: >-
10099
https://raw.githubusercontent.com/ericcames/sourcefiles/refs/heads/main/vault_ames.yml

images/newtemplate.png

-218 KB
Binary file not shown.

images/setup_template.png

161 KB
Loading

playbooks/files/config_as_code/eda_credentials.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ eda_credentials:
55
credential_type: 'Red Hat Ansible Automation Platform'
66
organization: "{{ my_organization }}"
77
inputs:
8-
host: "{{ my_aap_url }}/api/controller/"
9-
password: "{{ my_ctrl_admin_password }}"
8+
host: "{{ aap_hostname }}/api/controller/"
9+
password: "{{ aap_password }}"
1010
username: "admin"
1111
verify_ssl: true
1212

playbooks/files/config_as_code/gateway_settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gateway_settings:
33
gateway_token_name: X-DAB-JW-TOKEN
44
gateway_access_token_expiration: 600
55
gateway_basic_auth_enabled: true
6-
gateway_proxy_url: "{{ my_aap_url }}"
6+
gateway_proxy_url: "{{ aap_hostname }}"
77
gateway_proxy_url_ignore_cert: false
88
password_min_length: 0
99
password_min_digits: 0

playbooks/main.yml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,13 @@
44
vars:
55
ansible_python_interpreter: /usr/bin/python3
66
my_organization: "IT Service Automation"
7-
my_aap_url: ""
87
my_aap_credential: "AAP Credential"
98
my_remote_vault: ""
109
aap_configuration_async_retries: 60
1110
aap_configuration_async_delay: 2
1211
controller_configuration_settings_secure_logging: true
1312
my_vault: ""
1413
timezone_id: America/Phoenix
15-
github_username: ""
16-
17-
18-
# There is a bug in the infra.aap_configuration that causes the need for thing
19-
# When bug https://issues.redhat.com/browse/AAP-39349 this section can go away
20-
# We will need to uncomment the token sections below
21-
# Mapping red hat automation platform controller credential to infra.aap_configuration collection
22-
aap_hostname: "{{ lookup('ansible.builtin.env', 'CONTROLLER_HOST') }}"
23-
aap_username: "{{ lookup('ansible.builtin.env', 'CONTROLLER_USERNAME') }}"
24-
aap_password: "{{ lookup('ansible.builtin.env', 'CONTROLLER_PASSWORD') }}"
25-
aap_validate_certs: "{{ lookup('ansible.builtin.env', 'CONTROLLER_VERIFY_SSL') }}"
26-
aap_token: "{{ lookup('ansible.builtin.env', 'CONTROLLER_OAUTH_TOKEN') }}"
2714

2815
tasks:
2916

@@ -38,15 +25,15 @@
3825
- "Red Hat Ansible Automation Platform credential is not set"
3926
- "Please assign correct credentials to the Job Template"
4027

41-
# - name: Create a new token
42-
# ansible.platform.token:
43-
# aap_hostname: "{{ lookup('ansible.builtin.env', 'CONTROLLER_HOST') }}"
44-
# aap_username: "{{ lookup('ansible.builtin.env', 'CONTROLLER_USERNAME') }}"
45-
# aap_password: "{{ lookup('ansible.builtin.env', 'CONTROLLER_PASSWORD') }}"
46-
# aap_validate_certs: false
47-
# description: AAP Setup
48-
# scope: write
49-
# state: present
28+
- name: Create a new token
29+
ansible.platform.token:
30+
aap_hostname: "{{ lookup('ansible.builtin.env', 'CONTROLLER_HOST') }}"
31+
aap_username: "{{ lookup('ansible.builtin.env', 'CONTROLLER_USERNAME') }}"
32+
aap_password: "{{ lookup('ansible.builtin.env', 'CONTROLLER_PASSWORD') }}"
33+
aap_validate_certs: false
34+
description: AAP Setup
35+
scope: write
36+
state: present
5037

5138
- name: Grab vault from remote url
5239
ansible.builtin.get_url:
@@ -64,10 +51,10 @@
6451
ansible.builtin.include_role:
6552
name: infra.aap_configuration.dispatch
6653

67-
# - name: Remove my token
68-
# ansible.platform.token:
69-
# aap_hostname: "{{ lookup('ansible.builtin.env', 'CONTROLLER_HOST') }}"
70-
# existing_token: "{{ aap_token }}"
71-
# aap_token: "{{ aap_token['token'] }}"
72-
# aap_validate_certs: false
73-
# state: absent
54+
- name: Remove my token
55+
ansible.platform.token:
56+
aap_hostname: "{{ lookup('ansible.builtin.env', 'CONTROLLER_HOST') }}"
57+
existing_token: "{{ ansible_facts['aap_token'] }}"
58+
aap_token: "{{ ansible_facts['aap_token']['token'] }}"
59+
aap_validate_certs: false
60+
state: absent

0 commit comments

Comments
 (0)