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
|
# File 'manifests/aws.pp', line 2
class psick::aws (
String $region = chop($facts['ec2_placement_availability_zone']),
String $default_vpc_name = 'myvpc',
String $default_cidr_block_prefix = '10.0',
Boolean $create_defaults = false,
String $cli_class = '::psick::aws::cli',
String $puppet_class = '', # lint:ignore:params_empty_string_assignment
String $vpc_class = '', # lint:ignore:params_empty_string_assignment
String $sg_class = '', # lint:ignore:params_empty_string_assignment
String $ec2_class = '', # lint:ignore:params_empty_string_assignment
String $rds_class = '', # lint:ignore:params_empty_string_assignment
Boolean $manage = $psick::manage,
Boolean $noop_manage = $psick::noop_manage,
Boolean $noop_value = $psick::noop_value,
) {
if $manage {
if $noop_manage {
noop($noop_value)
}
if $cli_class != '' {
contain $cli_class
}
if $vpc_class != '' {
contain $vpc_class
}
if $sg_class != '' {
contain $sg_class
}
if $ec2_class != '' {
contain $ec2_class
}
if $rds_class != '' {
contain $rds_class
}
}
}
|