On Mon, May 13, 2013 at 5:21 PM, Jim Miller wrote:

I am using example42s squid module
https://github.com/example42/puppet-modules/tree/master/squid, and trying
to define certain user variable at the puppet/manifest/nodes.pp level
This is the first module of their's I've tried, I've read over their
documentation and FAQ and for the life of me I can not figure this out. To
me their examples are VERY HIGH level and I'm _really_ new to puppet. I'm
sure I'm missing something fundamental but I'm just not seeing it. I've
also installed example42s 'common' module which is needed to make the type
of changes I'm talking about.

The following works fine:
node 'xio99cdetest1.mygroup.com' {
include squid


node 'xio99cdetest1.mygroup.com' {
class { 'squid':
squid_port => '3030',

Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter squid_port at /etc/puppet/manifests/nodes.pp:94 on node
If you load up the init.pp from this module you'll notice that after the
"class squid" declaration there's no parameters listed for the class. This
is because this is a "old style" module at this point and is just setting
variables directly in params.pp. You would be best off looking for a
better squid module while you get up to speed on Puppet.

The best I could find for you is
https://github.com/dezwart/puppet-squid currently,
if you look in the init.pp in there as a counter example to the example42
one you'll quickly see how the parameters belong directly to the class. In
this case he doesn't have squid_port as a parameter, so it won't be usable
without modifications for you, but it's a better example of the kind of
structure a squid module should contain.

If this is all horrible for you and you're not able to make any headway let
me know and I can give you some help to modify one of these modules to make
the port a parameter.

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
grouppuppet-users @
postedMay 13, '13 at 9:21p
activeMay 21, '13 at 7:57a



site design / logo © 2023 Grokbase