Created
September 27, 2017 17:16
-
-
Save tspeigner/f2eab5653dc13403ef0621b50b93ea9d to your computer and use it in GitHub Desktop.
Williams
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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