Commit b1cc2ac9 by Jesse Zoldak

Merge pull request #2025 from edx/zoldak/fix-packer

Fix the packer script that provisions jenkins workers
parents c4b24852 430e37bb
...@@ -21,17 +21,32 @@ ...@@ -21,17 +21,32 @@
}], }],
"provisioners": [{ "provisioners": [{
"type": "shell", "type": "shell",
"inline": ["rm -rf {{user `playbook_remote_dir`}}"] "inline": ["rm -rf {{user `playbook_remote_dir`}}",
"mkdir {{user `playbook_remote_dir`}}"]
}, {
"type": "file",
"source": "../../playbooks/run_role.yml",
"destination": "{{user `playbook_remote_dir`}}/run_role.yml"
}, { }, {
"type": "file", "type": "file",
"source": "../../playbooks", "source": "../../playbooks/roles",
"destination": "{{user `playbook_remote_dir`}}" "destination": "{{user `playbook_remote_dir`}}/roles"
}, {
"type": "file",
"source": "../../playbooks/edx-east",
"destination": "{{user `playbook_remote_dir`}}/edx-east"
}, { }, {
"type": "file", "type": "file",
"source": "../../requirements.txt", "source": "../../requirements.txt",
"destination": "{{user `playbook_remote_dir`}}/requirements.txt" "destination": "{{user `playbook_remote_dir`}}/requirements.txt"
}, { }, {
"type": "shell", "type": "shell",
"inline": ["sudo add-apt-repository ppa:git-core/ppa -y"]
}, {
"type": "shell",
"inline": ["sudo apt-get -y install git-core"]
}, {
"type": "shell",
"inline": ["cd {{user `playbook_remote_dir`}}", "inline": ["cd {{user `playbook_remote_dir`}}",
"virtualenv packer-venv", "virtualenv packer-venv",
". packer-venv/bin/activate", ". packer-venv/bin/activate",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment