Created
July 27, 2016 07:08
-
-
Save anonymous/45caa19b215bbd49748bdde9172d48f2 to your computer and use it in GitHub Desktop.
This file contains 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
# tomcat class | |
class tomcat::install ( | |
$tomcat_version = 'undef', | |
[...], | |
$tomcat_groups = 'undef' ) { | |
user { 'tomcat': | |
ensure => 'present', | |
home => '/home/tomcat', | |
managehome => true, | |
shell => '/bin/bash', | |
gid => 'tomcat', | |
groups => ["${tomcat_groups}"], | |
require => Group['tomcat'], | |
} | |
# node manifest | |
class { 'tomcat::install': | |
tomcat_version => '8.0.36', | |
tomcat_groups => ['group1', 'group2'], | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment