You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| roles | 7 years ago | |
| README.md | 7 years ago | |
| ansible.cfg | 7 years ago | |
| deploy-api.yml | 7 years ago | |
| tower-assets.yaml | 7 years ago | |
README.md
Using this Ansible role from AWX / Ansible Tower
Install the Tower CLI:
sudo yum install python2-ansible-tower-cli
Review the tower-assets.yaml and adjust it to match your environment. Search for those placeholders to replace:
- YOUR_ACCESS_TOKEN
- CLIENT_ID
- CLIENT_SECRET
- SSO_HOST
- REALM
- TENANT
Use the tower-cli to create the resources in Tower:
tower-cli send -h ansible.app.itix.fr -u admin -p secret support/awx/tower-assets.yaml
You can now provision an API from your favourite CI/CD tool. For example, from Jenkins you could use:
def towerExtraVars = [
git_repo: "https://github.com/nmasse-itix/rhte-api.git",
git_branch: "master",
openapi_file: "openapi-spec.yaml",
threescale_cicd_api_base_system_name: "event_api",
threescale_cicd_private_base_url: "https://echo-api.3scale.net",
threescale_cicd_api_environment_name: "prod",
threescale_cicd_wildcard_domain: "prod.app.openshift.test"
]
ansibleTower towerServer: "tower",
inventory: "3scale",
jobTemplate: "Deploy an API to 3scale",
extraVars: JsonOutput.toJson(towerExtraVars)