Francisco Reyes
2013-Jun-02 22:34 UTC
[Puppet Users] Unknown function validate_bool when trying puppet labs apache class
New to puppet. I am trying to use the Apache class from puppet labs found here: https://github.com/puppetlabs/puppetlabs-apache When it runs agent --test on my test environment I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function validate_bool at /etc/puppet/modules/apache/manifests/init.pp:43 on node slave Running on Ubuntu 12.04 with puppet 2.7.11-1ubuntu2.2 installed from the default Ubuntu repository . Looking in the files from the class I see calls to the function validate_bool, but don''t see it defined. If there some base/pre-requisite class that I needed? Don''t see any mention in the readme file. Also, these classes from puppetlabs github, is there a way to tell what version they would work with? -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ashley Penney
2013-Jun-02 22:48 UTC
Re: [Puppet Users] Unknown function validate_bool when trying puppet labs apache class
If you take a look in Modulefile in the root of the module you can see the other dependencies. You''re going to need ''stdlib'' and probably ''concat'' as well. You can install them with either ''puppet module install puppetlabs-stdlib'' type commands or just grab them from git also. On Sun, Jun 2, 2013 at 6:34 PM, Francisco Reyes <francisco@natserv.net>wrote:> New to puppet. > > I am trying to use the Apache class from puppet labs found here: > https://github.com/puppetlabs/puppetlabs-apache > > When it runs agent --test on my test environment I get: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Unknown function validate_bool at > /etc/puppet/modules/apache/manifests/init.pp:43 on node slave > > Running on Ubuntu 12.04 with puppet 2.7.11-1ubuntu2.2 installed from the > default Ubuntu repository . > > Looking in the files from the class I see calls to the function > validate_bool, but don''t see it defined. > > If there some base/pre-requisite class that I needed? Don''t see any > mention in the readme file. Also, these classes from puppetlabs github, is > there a way to tell what version they would work with? > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Francisco Reyes
2013-Jun-03 01:21 UTC
Re: [Puppet Users] Unknown function validate_bool when trying puppet labs apache class
On Sunday, June 2, 2013 6:48:41 PM UTC-4, Ashley Penney wrote:>If you take a look in Modulefile in the root of the module you can see theother dependencies. Thanks. That will help in future installs.> You''re going to need ''stdlib''That one fixed it.> and probably ''concat'' as well.That one I could not install (not found by concat or puppetlabs-concat, but it seems was not needed so not an issue.> You can install them with either ''puppet module install puppetlabs-stdlib''Is there a way to list all the available modules? Or basically anything in the git repository should be able to be installed that way? Thanks much for the help. Although there is quite a lot of content and concepts to go over, so far looking very manageable. My only other previous experience with a configuration management system was trying to learn Cfengine. Found that much harder to learn and eventually gave up on it. -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ashley Penney
2013-Jun-03 13:43 UTC
Re: [Puppet Users] Unknown function validate_bool when trying puppet labs apache class
On Sun, Jun 2, 2013 at 9:21 PM, Francisco Reyes <francisco@natserv.net>wrote:> > Is there a way to list all the available modules? Or basically anything in > the git repository should be able to be installed that way? >Well, your best bet is actually to flip over from using git to the forge. http://forge.puppetlabs.com/ is the url and this is where ''puppet module install x'' goes to look. Here the modules are versioned so you''re (generally) getting known good versions of modules that are tested together. If you had a blank setup and used puppet module install puppetlabs-apache it would automatically check for dependencies and fetch all of those as well. You can find a ton of other modules on here too. Sometimes I install them from the forge and sometimes I google those modules and find them on git and go right to the source, depending on when they were last released. (Sometimes people add them to forge and forget to ever update them). -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.