Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What the valid way to set a varable = facter lookups

Is this correct?

class sudo_linux { $major = $::os['release']['major'] package { 'sudo': ensure => "1.8.15-el${major}", } }

click to hide/show revision 2
None

What the valid way to set a varable = facter lookups

Is this correct?

class sudo_linux {
  $major = $::os['release']['major']
  package { 'sudo':
    ensure  => "1.8.15-el${major}",
  }
}

}

What the valid way to set a varable = facter lookups

Is this correct?

class sudo_linux {
  $major = $::os['release']['major']
$os['release']['major']
  package { 'sudo':
    ensure  => "1.8.15-el${major}",
  }
}