solar/bootstrap
Maciej Kwiek f8f8c0d622 Change sudo to become in bootstrap playbooks
As we are using ansible 2.0, we should move from sudo to become to
avoid deprecation.

Change-Id: I7a99df005dcdcd12e9a2afdeb0c908fe2069cc57
Related-bug: 1547430
2016-02-22 10:17:16 +01:00
..
http Fix virtualbox packer, add libvirt packer 2015-10-27 12:35:35 +01:00
playbooks Change sudo to become in bootstrap playbooks 2016-02-22 10:17:16 +01:00
vagrant_plugins Make vagrant silently run pxe nodes, without checks 2015-10-12 19:26:41 +03:00
README.md Fix virtualbox packer, add libvirt packer 2015-10-27 12:35:35 +01:00
build-image.yaml Change sudo to become in bootstrap playbooks 2016-02-22 10:17:16 +01:00
packer.yaml Change sudo to become in bootstrap playbooks 2016-02-22 10:17:16 +01:00
solar-master.json Increase disk size 2016-02-12 12:24:26 +01:00

README.md

Solar image building

To build for a Virtualbox, install Packer (https://www.packer.io/):

cp vagrant-settings.yaml_defaults vagrant-settings.yaml
sed -i 's/master_image:.*$/master_image: solar-master/g' ./vagrant-settings.yaml
sed -i 's/slaves_image:.*$/slaves_image: solar-master/g' ./vagrant-settings.yaml
cd bootstrap
packer build -only=virtualbox-iso solar-master.json
mv solar-master-virtualbox.box ../solar-master.box
cd ..
vagrant box add solar-master solar-master.box --provider virtualbox
vagrant up --provider virtualbox

To build for a libvirt, replace the following commands:

packer build -only=qemu solar-master.json
mv solar-master-libvirt.box ../solar-master.box
cd ..
vagrant box add solar-master solar-master.box --provider libvirt
vagrant up --provider libvirt

If Vagrant throws error about vboxsf try this:

vagrant plugin install vagrant-vbguest

(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

Note that you can also set PACKER_LOG=debug and/or VAGRANT_LOG=debug the shell environment variables to get more information.