Last active
August 29, 2015 14:00
-
-
Save rockpapergoat/5f95933702d75a735a0f to your computer and use it in GitHub Desktop.
simple roles/profiles example
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
--- | |
:backends: | |
- yaml | |
:yaml: | |
:datadir: /etc/puppet/hieradata | |
:hierarchy: | |
- %{::clientcert} | |
- %{::role} | |
- common |
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 profile::base { | |
include ntp | |
include epel | |
include common | |
include mcollective | |
} |
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
--- | |
role: backup | |
pkgs: | |
- BackupPC | |
- httpd | |
- mod_ssl |
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 role { | |
include profile::base | |
} | |
class role::subversion inherits role { | |
include profile::www | |
include profile::subversion | |
} | |
class role::jira inherits role { | |
include profile::tomcat | |
include profile::jira | |
include profile::postgreslserver | |
include profile::prostgresqlclient | |
} | |
class role::confluence inherits role { | |
include profile::tomcat | |
include profile::confluence | |
include profile::postgreslserver | |
include profile::prostgresqlclient | |
} | |
class role::itos inherits role { | |
include profile::itos | |
include profile::ldap | |
include profile::sshd | |
} |
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
# basic stuff | |
node default { | |
include role | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment