Provision updates for web-01

This commit is contained in:
Felipe Martín 2015-09-09 21:12:40 +02:00
parent 0b0501c77b
commit 9ff8a6b24c
6 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,6 @@
site_hostname: beta.amiibofindr.com
site_media_hostname: beta.media.amiibofindr.com
site_static_hostname: beta.static.amiibofindr.com
enable_ssl: false

View File

@ -1,5 +1,6 @@
vagrant ansible_ssh_host=127.0.0.1 ansible_ssh_user=vagrant ansible_ssh_port=2222
web-1 ansible_ssh_host=46.101.172.158 ansible_ssh_user=root ansible_ssh_port=22
web-01 ansible_ssh_host=139.162.149.24 ansible_ssh_user=root ansible_ssh_port=22
[localdev]
vagrant
@ -8,6 +9,8 @@ vagrant
[production]
web-1
web-01
[deploy]
web-1
web-01

View File

@ -13,3 +13,10 @@
app_path={{ deploy_path.stdout }}/git
virtualenv=/home/{{ app_user }}/virtualenv
settings=amiibofindr.settings.local
- name: Performs manage.py compilemessages
django_manage: >
command=compilemessages
app_path={{ deploy_path.stdout }}/git
virtualenv=/home/{{ app_user }}/virtualenv
settings=amiibofindr.settings.local

View File

@ -20,8 +20,8 @@ server {
client_max_body_size 50M;
charset utf-8;
access_log {{ app_logs_folder }}/nginx-ecommerce.access.log;
error_log {{ app_logs_folder }}/nginx-ecommerce.error.log;
access_log {{ app_logs_folder }}/ngin.access.log;
error_log {{ app_logs_folder }}/nginx.error.log;
{% if enable_ssl %}
ssl_certificate /etc/nginx/ssl/certificate.pem;

View File

@ -16,6 +16,6 @@
file: src=/etc/nginx/sites-available/{{ app_user }} dest=/etc/nginx/sites-enabled/{{ app_user }} state=link
sudo: true
- name: Restart nginx
service: name=nginx state=restarted
sudo: true
#- name: Restart nginx
# service: name=nginx state=restarted
# sudo: true

View File

@ -7,3 +7,9 @@
- name: Ensure git is installed
apt: pkg=git state=latest
sudo: true
- name: ensure requirements are installed
apt: pkg={{ item }} state=latest
sudo: true
with_items:
- gettext