Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/detiber/demo-env-ansible
https://github.com/detiber/demo-env-ansible
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/detiber/demo-env-ansible
- Owner: detiber
- License: apache-2.0
- Created: 2016-05-23T18:57:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-28T16:34:05.000Z (over 8 years ago)
- Last Synced: 2024-11-07T20:54:59.081Z (about 2 months ago)
- Language: Python
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# demo-env-ansible
Running locally:- Export the needed variables:
```
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
```
- Alternatively, add these to a file (say ~/keynote-demo-env-vars) and
source it when needed.- Create a private variables file (say ~/keynote-demo-private-vars.yml) with
the following contents:
```
---
demo_route_53_zone:demo_additional_ssh_keys:
-
-demo_github_clientid:
demo_github_clientsecret:
demo_github_organizations:
-openshift_master_htpasswd_users:
demo:demo_registry_s3_accesskey:
demo_registry_s3_secretkey:
demo_registry_s3_bucket_prefix:
demo_registry_s3_bucket:openshift_additional_repos:
- id: ops_mirror
name: Ops Mirror
baseurl:
enabled: 1
gpgcheck: 0
sslclientcert: /var/lib/yum/client-cert.pem
sslclientkey: /var/lib/yum/client-key.pem
demo_repo_cert_contents:
demo_repo_key_contents:
```- Create the hosts:
```
ansible-playbook -i inventory/aws/ec2.py -e "@vars.common.yml" -e "@vars.demo.prod.yml" -e"@~/keynote-demo-private-vars.yml" provision.yml
```- Configure the hosts:
```
ansible-playbook -i inventory/aws/ec2.py -e "@vars.common.yml" -e "@vars.demo.prod.yml" -e "@~/keynote-demo-private-vars.yml" configure.yml
```- Teardown the environment:
```
ansible-playbook -i inventory/aws/ec2.py -e "@vars.common.yml" -e "@vars.demo.prod.yml" -e "@~/keynote-demo-private-vars.yml" teardown.yml
```