Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created June 7, 2016 15:27
Show Gist options
  • Save big-samantha/69e6686454ae30ea70c1d79e777acb85 to your computer and use it in GitHub Desktop.
Save big-samantha/69e6686454ae30ea70c1d79e777acb85 to your computer and use it in GitHub Desktop.
# class tomcat
# class java
# modules/profiles
# modules/profiles/java_webapp.pp
class profiles::java_webapp {
require java
class { 'tomcat':
enable_special_feature => true,
other_params => 'pizza',
}
}
# modules/profiles/java_webapp/hfim.pp
class profiles::java_webapp::hfim {
require profiles::java_webapp
tomcat::instance { 'hfim':
artifact => 'URL to artifact'
}
file { '/etc/hfim/config.xml':}
file { '/etc/hfim/database.xml':}
file { '/etc/hfim/database-backup.xml':}
}
class profile::base {
include ssh
include ntp
include macaffe
}
# modules/role/manifests/sso.pp
class role::sso {
include profile::base
include profile::java_webapp::hfim
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment