Skip to content

Instantly share code, notes, and snippets.

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