1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'manifests/esxhost.pp', line 1
class vcenter::esxhost (
$vim,
$target_esxhost,
$systemResources
) {
transport { 'vcenter':
username => $vim['username'],
password => $vim['password'],
server => $vim['hostname'],
options => {
'insecure' => 'true',
'rev' => '5.1',
},
} ->
esx_system_resource { "systemResource0":
host => $target_esxhost,
system_resource => $systemResources['resource0']['name'],
cpu_limit => $systemResources['resource0']['cpuLimit'],
transport => Transport['vcenter'],
}
}
|