NO LONGER MAINTAINED / ABANDONED
-
We provide a setup to deploy VMS and provision with corpusops
-
The first thing you need is a
setups.vagrant
copy (one perlocal cluster
)somewhere=$(pwd)/myvm git clone https://github.com/corpusops/setups.vagrant.git $somewhere cd $somewhere
-
Then you have 2 options,
-
Either you already have a working copy of corpusops.bootstrap, symlink it inside
./local/corpusops.bootstrap
ln -s /path/to/working/corpusops.bootstrap local/corpusops.bootstrap
-
Or you want another copy of corpusops.bootstrap, just run
bin/install.sh
bin/install.sh
-
-
maybe configure VM options see this README
$EDITOR vagrant_config.yml
-
After that, launch the vm
./vm_manage up
-
You can of your clone/adapt this repo to configure in details your local cluster
- When you run vagrant up, it displays long ansible commands, just copy/adapt them, to something like:
- vagrant must had ran once for the inventory to be generated
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true \
ANSIBLE_CONFIG='local/corpusops.bootstrap/hacking/vagrant/ansible.cfg' \
ANSIBLE_HOST_KEY_CHECKING=false \
ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s' \
local/corpusops.bootstrap/bin/ansible-playbook \
--connection=ssh --timeout=30 \
--inventory-file=.vagrant/provisioners/ansible/inventory \
--extra-vars="@playbooks/variables/vbox.yml" \
-vvv -l <YOURVM_OR_,HOSTS> playbooks/YOURPLAYBOOK.yml