-
Notifications
You must be signed in to change notification settings - Fork 0
Creating deployed environment
Ivanich edited this page Nov 24, 2013
·
6 revisions
- libvirt
- virt-install
- configured KVM environment
To configure this environment I did following steps:
- Wrote simple script which installs VM's with virt-install and preseed.conf for unattended Ubuntu-13.10 installation, it contains variables for static IP configuration, VM name, disk size and a preseed.conf file that allows silently configure other options such as partitioning, mirrors, extra packages and a postinstall hook to add puppet server ip/hostname to /etc/hosts, so VM can be installed and configured without any user interaction.
- At the next step after VM succesfully installed it could be configured with puppet automatically(for testing purposes puppetmaster have autosign option enabled otherwise certificate sign should be done manually), in this example
node1.local apply ssh and nginx vhost with simple loadbalancer configuration
node2.local and node3.local applies ssh, java-1.6 and tomcat7
Sample java application for tomcat deploys directly to tomcat7xx container from jenkins host to node2.local and node3.local after each succesfull build.
All puppet manifests could be found here, these modules were written only for training and contain only basic functions so they lack some of the advanced settings such as operating system specific checks etc and currently works only with ubuntu-13.10.