Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created December 5, 2014 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/e0d5f88a08e2d72f673e to your computer and use it in GitHub Desktop.
Save mrchrisadams/e0d5f88a08e2d72f673e to your computer and use it in GitHub Desktop.
---
env: production
vagrant: false
staging: false
debug: False
git_branch:master
deploy_user_name: deploy
deploy_user_ssh_priv_key_path: "files/deploy.key.pem"
application_name:
contact_us_emails: (sensitive)
email_host_user: (sensitive)
email_host_password: (sensitive)
admins:
chris:
name: (sensitive)
email: (sensitive)
secret_key: (sensitive)
database:
host: (sensitive)
user: (sensitive)
password: (sensitive)
app_path: /var/www/app_name/current/app_name
app_user: deploy
# example production inventory
data ansible_ssh_host=database-server.com ansible_ssh_user=my_user
dev ansible_ssh_host=app-server.com ansible_ssh_user=my_user
[local]
localhost ansible_python_interpreter=/usr/local/bin/python
[production]
dev
data
provisioning
├── deploy.yml
├── add_backups.yml
├── fetch_pg_deets.yml
├── fetch_static.yml
├── provision.yml
├── files
│   ├── # files exclusive to this project go here, like deploy keys, ssl certs etc.
├── group_vars
│   ├── all # shared vars go here
│   ├── production # vars specific to an environment go here
│   ├── staging
│   └── vagrant
├── inventories
│   ├── production # groups are defined here
│   ├── staging
│   └── vagrant
├── roles
│   ├── app.backup
│   ├── app.essentials
│   ├── app.server
│   └── app.vagrant
└── templates #
19 directories, 47 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment