From 7f5ab7fff419f46b325c9403cf8536b3c6e523b3 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 25 Jun 2014 12:27:06 -0400 Subject: [PATCH] Add pre-requisites needed for diskimage-builder For nodepool to use diskimage-builder, it needs a set of pre-reqs on the nodepool host. Install them. Also create /opt/nodepool_dib for building images. This is deliberately placed on the non-ephemeral disk as new host builds have a large partion mounted here. Testing shows test images were coming in at about 2.6GB each. If we figure two images for precise and trusty and one each for centos6 and f20 that is about 15GB. Change-Id: I725cad999f795a556fd89818578b78b9114fb110 --- modules/nodepool/manifests/init.pp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/nodepool/manifests/init.pp b/modules/nodepool/manifests/init.pp index a4b6ca2593..29295349ea 100644 --- a/modules/nodepool/manifests/init.pp +++ b/modules/nodepool/manifests/init.pp @@ -61,6 +61,15 @@ class nodepool ( ], } + $packages = [ + 'kpartx', + 'qemu-utils', + ] + + package { $packages: + ensure => present, + } + file { '/etc/mysql/conf.d/max_connections.cnf': ensure => present, content => "[server]\nmax_connections = 8192\n", @@ -113,6 +122,15 @@ class nodepool ( group => 'root', } + # used for storage of d-i-b images in non-ephemeral partition + file { '/opt/nodepool_dib': + ensure => directory, + mode => '0755', + owner => 'nodepool', + group => 'nodepool', + require => User['nodepool'], + } + file { '/var/log/nodepool': ensure => directory, mode => '0755',