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 vbox. I have some questions: 1. Should I use a vagrant for production with default vbox "backend" ? 2. Should I use a vagrant with this lxc plugin for production ? 3. Do you think this plugin will go into mainline ever? #Maybe vagrant is for testing recipes and cookbook purposes only. I don't know. 4. What do you think about custom scripts to provision instead of using special application, which is very popular today? 5. 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: 1. My user(Admin notebook) has an ssh access (keys copied) to host servers. 2. I has a config file(s) on the admin homes folder that has a needed configuration. a. What is the hostname b. What is ip address c. What is the cookbooks are must running on the virtual container. 3. 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 application software. Maybe bootstrap this container to chef our server, etc. 4. 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? 1. Vagrant ? 2. Vagrant + Custom scripts? 3. Only custom scripts ? I'll be honest I did not use vagrant. -- Best regards, CVision Lab System Administrator Vladmir Skubriev |
Attachment:
mylxc-new.sh
Description: application/shellscript
Archive powered by MHonArc 2.6.16.