let's try creating settings/please.py with ansible
parent
cd1f2cc244
commit
5d3c749a6a
|
@ -20,7 +20,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
node.vm.synced_folder ".", "/vagrant", disabled: false
|
||||
|
||||
node.vm.provision 'ansible' do |ansible|
|
||||
ansible.playbook = 'test.yml'
|
||||
ansible.playbook = 'dev.yml'
|
||||
ansible.verbose = "vv"
|
||||
# ansible.inventory_path = '.vagrant/provisioners/ansible/inventory/'
|
||||
ansible.raw_arguments = [
|
||||
|
@ -52,7 +52,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
# alestic 2015.05.05
|
||||
|
||||
#aws.instance_type="t1.micro"
|
||||
aws.instance_type="m3.medium"
|
||||
aws.instance_type="m1.small"
|
||||
# aws.instance_type="m3.medium"
|
||||
|
||||
aws.region = "us-east-1"
|
||||
aws.availability_zone = "us-east-1c"
|
||||
|
|
|
@ -247,6 +247,10 @@
|
|||
- name: create the wsgi script from the appropriate template
|
||||
template: src=templates/{{class}}.wsgi.j2 dest=/opt/regluit/deploy/{{class}}.wsgi owner={{user}} group={{user}} mode=0664
|
||||
when: class in ['please', 'just']
|
||||
|
||||
# create settings/{{class}}.py
|
||||
- name: create settings/{{class}}.py
|
||||
template: src=templates/{{class}}.py.j2 dest=/opt/regluit/settings/{{class}}.py owner={{user}} group={{user}} mode=0755
|
||||
|
||||
|
||||
#Run syncdb on the application
|
||||
|
|
|
@ -46,7 +46,7 @@ DEFAULT_FROM_EMAIL = 'accounts@gluejar.com'
|
|||
|
||||
# all the SECRET_KEYS
|
||||
{% for key in SECRET_KEYS %}
|
||||
{{key}} = '{{SECRET_KEYS[key]}}'
|
||||
{{key}} = os.environ.get('{{key}}', '')
|
||||
{% endfor %}
|
||||
|
||||
# twitter auth
|
||||
|
|
Loading…
Reference in New Issue