Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2016 07:08
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 anonymous/45caa19b215bbd49748bdde9172d48f2 to your computer and use it in GitHub Desktop.
Save anonymous/45caa19b215bbd49748bdde9172d48f2 to your computer and use it in GitHub Desktop.
# 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