This is the Vagrantfile for caliopen fullstack box
The main goal of this repository is to build a new release of caliopen box.
Update the version of the box :
#includes/Vagrantfile
config.vm.box_version = "{semver}"
#Makefile
VERSION="{semver}"
Then launch the following commands
vagrant destroy
make configure
make package
this will :
- eventually destroy previous box
- clone calipopen-ansible repository and prepare config files
- up and provision a box with ansible
- package it
make configure
vagrant destroy
vagrant up
vagrant up
vagrant ssh -c "sudo rm /etc/nginx/certs/caliopen.crt"
vagrant ssh -c "sudo rm /etc/nginx/certs/caliopen.key"
vagrant ssh -c "sudo ansible-playbook /vagrant/caliopen-ansible/single.yaml --connection=local --tags=cert"
Since ansible is installed in VM, it can be launched on VM itself
#ansible_inventory
default ansible_ssh_host=127.0.0.1 ansible_ssh_port=22
[backends]
default
[webservers]
default
sudo ansible-playbook /vagrant/caliopen-ansible/single.yaml --connection=local -i ansible_inventory
provision : install ansible from source
then run:
source path-to-ansible/hacking/env-setup
use caliopen user in vagrantfile use to package box
config.vm.synced_folder "./", "/vagrant", owner: "caliopen", group: "caliopen"
make sure pserve is started optionnaly in target box