Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
updating reggie playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
RobWC committed Apr 7, 2015
1 parent 0899659 commit c9e2971
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions proctor/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
netmask: "255.255.252.0",
ip: "10.10.0.10"
ndo.vm.synced_folder "../", "/vagrant", disabled: false
config.ssh.password = "vagrant"

ndo.vm.provider "virtualbox" do |v|
end
Expand Down
15 changes: 13 additions & 2 deletions proctor/ansible/playbooks/deploy_reggie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
reggie_group: "vagrant"

tasks:
- name: Install NGINX
sudo: yes
apt: name=nginx state=latest update_cache=yes

- name: Install PIP
sudo: yes
apt: name=python-pip state=latest update_cache=yes

- name: creates reggie root directory
sudo: yes
file:
Expand All @@ -26,6 +34,9 @@
repo="{{ reggie_repo_url }}"
dest="{{ reggie_app_root }}"

- name: Configure Python
shell: echo “system” > {{ reggie_app_root }}/.python-version

# - name: create pyenv environment
# pyenv_path: "/home/{{ reggie_user }}/.pyenv"
# pyenv_owner: "{{ reggie_user }}"
Expand All @@ -37,5 +48,5 @@
# py_version: "2.7.8"

- name: install reggie pip requirements
pip:
requirements="{{ reggie_app_root }}/requirements.txt"
pip:
requirements="{{ reggie_app_root }}/requirements.txt"
Empty file.

0 comments on commit c9e2971

Please sign in to comment.