forked from bodepd/cloudstack_resources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GOAL
47 lines (37 loc) · 968 Bytes
/
GOAL
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cloudstack_server { 'host_name':
host_name => 'host_name',
service_name => 'service_name',
zone_name => 'zone_name',
network_names => ['network_name'],
account_name => 'account_name',
account_domain => 'account_domain',
group => 'group',
}
define local_cloudstack_server (
$host_name = $name,
$service_name,
$template_name,
$zone_name = undef,
$network_names = [],
$account_name = undef,
$account_domain = undef,
$work_label = undef,
$dtap_stage = undef
) {
$group = structure2json( {
work_label => $work_label,
$dtap_stage => dtap_stage
} )
cloudstack_server { $host_name:
service_name => $service_name,
zone_name => $zone_name,
network_names => $network_names,
account_name => $account_name,
account_domain => $account_domain,
group => $group,
}
}
more goals
- list default settings?
- associate and disassociate ips
- port forwarding rules?