Skip to content

Commit

Permalink
update ansible defaullt config
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Apr 18, 2018
1 parent 0ca1488 commit 89887d8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
21 changes: 15 additions & 6 deletions deploy/ansible/README.md
Expand Up @@ -56,19 +56,28 @@ mail_signature: "The StarHackIt Team"
To set the production configuration parameters, create [prod/group_vars/server.yml](prod/group_vars/server.yml):

```
env_name: production
user: ubuntu
home: /home/ubuntu
node_env: production
server_name: starhack.it
certbot_admin_email: "security@starhack.it"
protocol: https
ssl_admin_email: security@starhack.it
website_url: "https://starhack.it"
mail_service: Mailgun
db_name: "main"
db_user: "postgres"
db_password: "_Password123!"
redis_url: "redis://localhost:6379"
mail_service: 'Mailgun'
mail_from: "StarHackIt <notification@starhack.it>"
mail_user: postmaster@starhackit.mailgun.org
mail_password: 1b901d8d9a2806754225ad177fe93a10
facebook_client_id: 1643377549276547
facebook_client_secret: 1da6597bec02ca41f3950641c6e965a2
mail_user: ''
mail_password: ""
facebook_client_id: ""
facebook_client_secret: ""
google_client_id: ""
google_client_secret: ""
```

Then to change the remote machine connection settings (ip address, username, ssh key location), edit the production inventory: [prod/inventory](prod/inventory):
Expand Down
4 changes: 3 additions & 1 deletion deploy/ansible/dev/group_vars/server.yml
Expand Up @@ -4,6 +4,7 @@ home: /home/vagrant
node_env: production
server_name: dev.starhack.it
website_url: "http://localhost"
protocol: http
db_name: "main"
db_user: "postgres"
db_password: "password"
Expand All @@ -13,4 +14,5 @@ mail_user:
mail_password:
facebook_client_id:
facebook_client_secret:
google_analytics:
google_client_id: ""
google_client_secret: ""
5 changes: 3 additions & 2 deletions deploy/ansible/prod/group_vars/server-example.yml
Expand Up @@ -4,7 +4,7 @@ user: ubuntu
home: /home/ubuntu
node_env: production
server_name: starhack.it
https: true
protocol: https
ssl_admin_email: security@starhack.it
website_url: "https://starhack.it"
db_name: "main"
Expand All @@ -17,4 +17,5 @@ mail_user: ''
mail_password: ""
facebook_client_id: ""
facebook_client_secret: ""
google_analytics: ''
google_client_id: ""
google_client_secret: ""

0 comments on commit 89887d8

Please sign in to comment.