Puppet Class: psick::aws

Defined in:
manifests/aws.pp

Overview

Parameters:

  • region (String) (defaults to: chop($facts['ec2_placement_availability_zone']))
  • default_vpc_name (String) (defaults to: 'myvpc')
  • default_cidr_block_prefix (String) (defaults to: '10.0')
  • create_defaults (Boolean) (defaults to: false)
  • cli_class (String) (defaults to: '::psick::aws::cli')
  • puppet_class (String) (defaults to: '')
  • vpc_class (String) (defaults to: '')
  • sg_class (String) (defaults to: '')
  • ec2_class (String) (defaults to: '')
  • rds_class (String) (defaults to: '')
  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


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
    }
  }
}