We use a small self hosted environment with approximately 30 computers
and two physical servers.
I suppose to use lxc with chef and custom scripts to provision my
production environment virtual machines on host servers.
I have not yet made a working scipts. But already started this work.
But recently I found this project: https://github.com/fgrehm/vagrant-lxc
I am very interested in it because we use lxc for production instead of
I have some questions:
Should I use a vagrant for production with default vbox “backend” ?
Should I use a vagrant with this lxc plugin for production ?
Do you think this plugin will go into mainline ever? #Maybe
vagrant is for testing recipes and cookbook purposes only. I don’t know.
What do you think about custom scripts to provision instead of using
special application, which is very popular today?
Do you use custom scripts instead of vagrant or something else and why?
I attach a sample work with a custom script. Of course this is a small
work, but it helps me to test my current develpment cookbook. And setup
container on server.
Ideally, I would like to get workflow as follows:
My user(Admin notebook) has an ssh access (keys copied) to host servers.
I has a config file(s) on the admin homes folder that has a needed
a. What is the hostname
b. What is ip address
c. What is the cookbooks are must running on the virtual container.
I use a one(two) commands to provision our working environment on
needed host server.
Of course preparing the data on it needed for functional
Maybe bootstrap this container to chef our server, etc.
Of course I want to automate container delete operation and related
files on the host server and chef server.
This is need for fully automated provision containers.
What do you think?
- Vagrant ?
- Vagrant + Custom scripts?
- Only custom scripts ?
I’ll be honest I did not use vagrant.
CVision Lab System Administrator