Skip to content

Commit

Permalink
clean up of instructions for configuring Ansible Tower
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel W. King committed Aug 20, 2020
1 parent 0ccbff8 commit f549fcb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/demo_environment/ngrok_nginx_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,28 @@ The demonstration environment used an AWS EC2 instance running Ansible tower to
<img src="demo_topology_Ansible_Tower_laptop.png" alt="topology"/>

### Ansible Tower
To execute the code and playbooks on Ansible Tower, version 3.6.4 with Ansible 2.9.7.
To execute the code and playbooks on Ansible Tower, tested with version 3.6.4 with Ansible 2.9.7.

#### /etc/ansible/ansible.cfg
The base configuration file was modified to specify the collection and module locations:
```
$ ansible-config dump --only-changed
COLLECTIONS_PATHS(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/collections']
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/modules', u'/usr/share/ansible']
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/ansible/plugins/modules']
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = yaml
DEPRECATION_WARNINGS(/etc/ansible/ansible.cfg) = False
```
Install `tetration_application.py` in `/usr/share/ansible`.
Install `tetration_application.py` in `/usr/share/ansible/plugins/modules`.
```bash
cd /usr/share/ansible/plugins/modules
sudo curl https://raw.githubusercontent.com/joelwking/ansible-tetration/master/library/tetration_application.py -o tetration_a
pplication.py
```
Clone the collection into `/usr/share/ansible/collections/ansible_collections/joelwking
` - make the directories and `cd` to the file path, then clone.

```bash
cd /usr/share/ansible/collections/ansible_collections/joelwking
sudo git clone https://github.com/joelwking/pensando.git
```
You will need to create a project and job template in Ansible Tower to execute the sample playbooks. for `playbooks/workflow_use_case.yml` these extra vars can be specified in a survey.
Expand All @@ -35,9 +36,9 @@ app_environment: dev
app_name: PolicyPubApp
app_version: latest
pensando_psm:
host: d1fde99cd0bc.ngrok.io
password: '{{ psm_password }}'
username: admin
host: d1fde99cd0bc.ngrok.io # Specify the hostname of your PSM
password: '{{ psm_password }}' # PSM password
username: admin # PSM username
psm_password: $encrypted$
```
Expand Down

0 comments on commit f549fcb

Please sign in to comment.