Skip to content

Instantly share code, notes, and snippets.

@tspeigner
Created September 27, 2017 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tspeigner/f2eab5653dc13403ef0621b50b93ea9d to your computer and use it in GitHub Desktop.
Save tspeigner/f2eab5653dc13403ef0621b50b93ea9d to your computer and use it in GitHub Desktop.
Williams
class profile::linux::baseline {
package { 'unzip':
ensure => installed,
}
# USERS
if $::operatingsystem == 'CentOS' {
user { 'puppetdemo':
ensure => present,
managehome => true,
groups => ['wheel'],
comment => 'user for CentOS',
}
if $::operatingsystemmajrelease == '7' {
package { 'tree':
ensure => '1.6.0-10.el7',
}
}
if $::operatingsystemmajrelease == '6' {
package { 'tree':
ensure => '1.5.3-3.el6',
}
}
}
elsif $::operatingsystem == 'Ubuntu' {
user { 'puppetdemo':
ensure => present,
managehome => true,
groups => ['sudo'],
password => 'user for Ubuntu',
}
package { 'tree':
ensure => '1.6.0-1',
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment