Skip to content

Instantly share code, notes, and snippets.

@natemccurdy
Last active February 3, 2017 00:05
Show Gist options
  • Save natemccurdy/c2701121d21cdf68522f to your computer and use it in GitHub Desktop.
Save natemccurdy/c2701121d21cdf68522f to your computer and use it in GitHub Desktop.
Puppet Fundamentals Capstone
# $modulepath/profiles/manifests/blog.pp
class profiles::blog {
include mysql::server
include mysql::bindings
include apache
include apache::mod::php
include wordpress
}
# $modulepath/profiles/manifests/blog_no_hiera.pp
class profiles::blog_no_hiera {
include mysql::server
class { 'mysql::bindings':
php_enable => true,
}
include apache
include apache::mod::php
class { 'wordpress':
install_dir => '/var/www/html',
}
}
# /etc/puppetlabs/puppet/hieradata/defaults.yaml
---
wordpress::install_dir: /var/www/html
mysql::bindings::php_enable: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment