fix security group setting for please

add setup_django_localvm.sh
pull/1/head
Raymond Yee 2015-05-26 14:09:58 -07:00
parent 426d9e126f
commit c8f39d9a7f
3 changed files with 10 additions and 4 deletions

4
vagrant/Vagrantfile vendored
View File

@ -19,7 +19,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#node.vm.synced_folder "data", "vagrant_data"
node.vm.provision 'ansible' do |ansible|
ansible.playbook = 'hello.yml'
ansible.playbook = 'please.yml'
end
@ -45,7 +45,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
aws.availability_zone = "us-east-1c"
aws.ami = "ami-d8132bb0"
# put into just security group
aws.security_groups = ["sg-d7f442bf"]
aws.security_groups = ["just"]
aws.tags = {
'Name' => 'please_vagrant'

View File

@ -23,8 +23,9 @@
ttl: 60
value: "{{ansible_ssh_host}}"
overwrite: yes
aws_access_key: "{{aws_access_key}}"
aws_secret_key: "{{aws_secret_key}}"
aws_access_key: "{{ lookup('env','AWS_ACCESS_KEY_ID') }}"
aws_secret_key: "{{ lookup('env','AWS_SECRET_ACCESS_KEY') }}"
# sudo add repo to get latest version of python 2.7
- name: add-apt-repository ppa:fkrull/deadsnakes-python2.7
@ -354,6 +355,7 @@
authorized_key: user={{user}} key={{item}} state=present
with_fileglob:
- /opt/regluit/deploy/public_keys/*
sudo: no
- name: add public key from jenkins
authorized_key: >

View File

@ -0,0 +1,4 @@
#!/bin/bash
cd /opt/regluit
source ENV/bin/activate
export DJANGO_SETTINGS_MODULE=regluit.settings.localvm