Puppet Class: vcenter::vapp_property

Defined in:
manifests/vapp_property.pp

Overview

Parameters:

  • vc_username (Any)
  • vc_password (Any)
  • vc_hostname (Any)
  • dc (Any)
  • vmname (Any)
  • property (Any)
  • transport_options (Any) (defaults to: {})
  • ensure (Any) (defaults to: undef)
  • category (Any) (defaults to: undef)
  • class_id (Any) (defaults to: undef)
  • default_value (Any) (defaults to: undef)
  • description (Any) (defaults to: undef)
  • property_id (Any) (defaults to: undef)
  • instance_id (Any) (defaults to: undef)
  • property_type (Any) (defaults to: undef)
  • user_configurable (Any) (defaults to: undef)
  • value (Any) (defaults to: undef)


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
# File 'manifests/vapp_property.pp', line 1

class vcenter::vapp_property (
  $vc_username,
  $vc_password,
  $vc_hostname,
  $dc,
  $vmname,
  $property,
  $transport_options   = {},
  $ensure              = undef,
  $category            = undef,
  $class_id            = undef,
  $default_value       = undef,
  $description         = undef,
  $property_id         = undef,
  $instance_id         = undef,
  $property_type       = undef,
  $user_configurable   = undef,
  $value               = undef,
) {

  transport { "vcenter":
    username => "$vc_username",
    password => "$vc_password",
    server   => $vc_hostname,
    options  => $transport_options,
  }

  vm_vapp_property { "$dc:$vmname:$property":
    ensure            => $ensure,
    category          => $category,
    class_id          => $class_id,
    default_value     => $default_value,
    description       => $description,
    id                => $property_id,
    instance_id       => $instance_id,
    type              => $property_type,
    user_configurable => $user_configurable,
    value             => $value,
    transport         => Transport["vcenter"],
  }
}