Created
June 7, 2016 15:27
-
-
Save big-samantha/69e6686454ae30ea70c1d79e777acb85 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
# 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