Skip to content

Creating deployed environment

Ivanich edited this page Nov 24, 2013 · 6 revisions

Requirements:

  1. libvirt
  2. virt-install
  3. configured KVM environment

To configure this environment I did following steps:

  1. 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.
  2. At the next step after VM succesfully installed it could be configured with puppet automatically(for testing purpouses 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 tomcat

Sample java application for tomcat deploys from jenkins host to node2.local and node3.local after each succesfull build.

Clone this wiki locally