Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/detiber/demo-env-ansible


https://github.com/detiber/demo-env-ansible

Last synced: 7 days ago
JSON representation

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
```