1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'manifests/property.pp', line 1
define abiquo::property($value, $section='', $propname='') {
if $propname == '' {
$realname = $title
} else {
$realname = $propname
}
$sum = stringsum($realname)
abiquo::properties_register { "property_${realname}":
content => "${realname} = ${value}\n",
order => $sum,
}
if $realname == 'abiquo.appliancemanager.repositoryLocation' {
file { '/opt/vm_repository':
ensure => 'directory'
}
mount { '/opt/vm_repository':
ensure => 'mounted',
device => $value,
fstype => 'nfs',
options => 'defaults',
atboot => true,
require => File['/opt/vm_repository'],
}
}
}
|