Roles and profiles isnt tied to puppet enterprise. Works great with non-enterprise edition.
Original blogpost about the concept: http://www.craigdunn.org/2012/05/239/
Thomas
# /etc/puppetlabs/code/environments/production/site/profile/manifests/jenkins/master.pp
class profile::jenkins::master (
String $jenkins_port = '9091',
String $java_dist = 'jdk',
String $java_version = 'latest',
) {
class { 'jenkins':
configure_firewall => true,
install_java => false,
port => $jenkins_port,
config_hash => {
'HTTP_PORT' => { 'value' => $jenkins_port },
'JENKINS_PORT' => { 'value' => $jenkins_port },
},
It is clear that the profile::jenkins::master class is declaring the jenkins class and setting the install_java param to false as well as setting the configure_firewall to true. ## And now trying to set the values through the profile for file1 and file2...this is where i get lost since the values I am trying to set are both named "source"$source1 = hiera('profiles::base::config1::file1') ## file1
'/etc/siteconf/file1': $source2 = hiera('profiles::base::config1::file2')
## file2
'/etc/siteconf/file2':
##both files are in 'puppet:///modules/file_config/' as file1 and file2, they are set pulled into source1 and source2 above.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6605356c-6956-4be2-b354-58c58a95bc7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.