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
This commit is contained in:
parent
c818c6b264
commit
7f5ab7fff4
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user