Provision updates for web-01
This commit is contained in:
parent
0b0501c77b
commit
9ff8a6b24c
|
@ -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
|
|
@ -1,5 +1,6 @@
|
||||||
vagrant ansible_ssh_host=127.0.0.1 ansible_ssh_user=vagrant ansible_ssh_port=2222
|
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-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]
|
[localdev]
|
||||||
vagrant
|
vagrant
|
||||||
|
@ -8,6 +9,8 @@ vagrant
|
||||||
|
|
||||||
[production]
|
[production]
|
||||||
web-1
|
web-1
|
||||||
|
web-01
|
||||||
|
|
||||||
[deploy]
|
[deploy]
|
||||||
web-1
|
web-1
|
||||||
|
web-01
|
||||||
|
|
|
@ -13,3 +13,10 @@
|
||||||
app_path={{ deploy_path.stdout }}/git
|
app_path={{ deploy_path.stdout }}/git
|
||||||
virtualenv=/home/{{ app_user }}/virtualenv
|
virtualenv=/home/{{ app_user }}/virtualenv
|
||||||
settings=amiibofindr.settings.local
|
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
|
||||||
|
|
|
@ -20,8 +20,8 @@ server {
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
access_log {{ app_logs_folder }}/nginx-ecommerce.access.log;
|
access_log {{ app_logs_folder }}/ngin.access.log;
|
||||||
error_log {{ app_logs_folder }}/nginx-ecommerce.error.log;
|
error_log {{ app_logs_folder }}/nginx.error.log;
|
||||||
|
|
||||||
{% if enable_ssl %}
|
{% if enable_ssl %}
|
||||||
ssl_certificate /etc/nginx/ssl/certificate.pem;
|
ssl_certificate /etc/nginx/ssl/certificate.pem;
|
||||||
|
|
|
@ -16,6 +16,6 @@
|
||||||
file: src=/etc/nginx/sites-available/{{ app_user }} dest=/etc/nginx/sites-enabled/{{ app_user }} state=link
|
file: src=/etc/nginx/sites-available/{{ app_user }} dest=/etc/nginx/sites-enabled/{{ app_user }} state=link
|
||||||
sudo: true
|
sudo: true
|
||||||
|
|
||||||
- name: Restart nginx
|
#- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
# service: name=nginx state=restarted
|
||||||
sudo: true
|
# sudo: true
|
||||||
|
|
|
@ -7,3 +7,9 @@
|
||||||
- name: Ensure git is installed
|
- name: Ensure git is installed
|
||||||
apt: pkg=git state=latest
|
apt: pkg=git state=latest
|
||||||
sudo: true
|
sudo: true
|
||||||
|
|
||||||
|
- name: ensure requirements are installed
|
||||||
|
apt: pkg={{ item }} state=latest
|
||||||
|
sudo: true
|
||||||
|
with_items:
|
||||||
|
- gettext
|
||||||
|
|
Loading…
Reference in New Issue