Moved pre-install stuff (ansible, pip) to separate script

This commit is contained in:
Przemyslaw Kaminski 2015-08-06 13:09:47 +02:00
parent b206fc0864
commit 3e0500a452
3 changed files with 14 additions and 8 deletions

View File

@ -17,4 +17,9 @@ If Vagrant throws error about `vboxsf` try this:
```
vagrant plugin install vagrant-vbguest
```
(see https://github.com/shiguredo/packer-templates/issues/16).
(see https://github.com/shiguredo/packer-templates/issues/16).
If you're rebuilding the same box, make sure Vagrant reimports it:
```
vagrant box remove solar-master
```

View File

@ -0,0 +1,7 @@
#!/bin/sh
apt-get remove -f python-pip
sudo apt-get install -y python-setuptools
sudo easy_install pip
sudo pip install -U pip
sudo pip install ansible

View File

@ -9,13 +9,7 @@
"provisioners": [
{
"type": "shell",
"inline": [
"sudo apt-get remove -f python-pip",
"sudo apt-get install -y python-setuptools",
"sudo easy_install pip",
"sudo pip install -U pip",
"sudo pip install ansible"
]
"script": "playbooks/files/ubuntu-ansible.sh"
}, {
"type": "ansible-local",
"playbook_dir": "playbooks",