Looks sensible to me. Thanks Peter i'll give that way a go.
2009/8/21 Peter Meier :
>
> Hi
>
>> What sets:
>>
>> if $use_nagios {
>> include silc::nagios
>> }
>>
>
>
> well I build my modules, so you can use them also without nagios
> (default) so if you'd like to use nagios you set globall
Hi
> What sets:
>
> if $use_nagios {
> include silc::nagios
> }
>
well I build my modules, so you can use them also without nagios
(default) so if you'd like to use nagios you set globally in your
site.pp the variable $use_nagios = true
It's just a variable which enable certain more fea
Peter,
What sets:
if $use_nagios {
include silc::nagios
}
Thanks,
Matt
2009/8/20 Peter Meier :
>
> Hi
>
>> I'm trying to set-up a monitoring module that looks at what
>> classes(modules) have been included for that node and then deploys the
>> required monitoring scripts.
>
> For someth
Hi
> I'm trying to set-up a monitoring module that looks at what
> classes(modules) have been included for that node and then deploys the
> required monitoring scripts.
For something like that I use exported resources, so within the class
itself I export a nagios-check, which then will be collec
On Fri, Aug 21, 2009 at 12:05 AM, Matt wrote:
>
> I guess another way would be for me to start building custom facters
> of what a node is and then deploy the right files depending on the
> facter result.
> Anyone done similar? I always feel with puppet i'm missing something
> obvious :-)
I
I want to keep away as much as possible from defining these variables
at the node level as they are more linked to the included classes.
I'm trying to set-up a monitoring module that looks at what
classes(modules) have been included for that node and then deploys the
required monitoring scripts.
if you have a complex variables setup, I really recommend to move away to
external nodes(http://reductivelabs.com/trac/puppet/wiki/ExternalNodes) or
extlookup(
http://nephilim.ml.org/~rip/puppet/extlookup.rb)
if you use external nodes, you could use an external source (e.g. a
database, or web serv
I saw that but I think that did something else.
node "mynode" {
include myclass, foo
}
node "mynode2" {
include foo
}
class "foo" {
if defined(Class['myclass']) {myvar = "hello"})
}
Will both mynode2 and mynode get the variable myvar? In my case I
only want mynode too. If both do, then
Every class you create is a tag.
So:
if tagged('myclass') {
$myvar = "hello"
}
One caveat, is the class order can matter if the tag exists yet or not.
http://projects.reductivelabs.com/issues/2105
-L
--
Larry Ludwig
Reductive Labs
--~--~-~--~~~---~--~~
Yo
Matt wrote:
> I looked at the language tutorial but couldn't see it anywhere.
>
You might be looking for the defined function.
http://reductivelabs.com/trac/puppet/wiki/FunctionReference#defined
Regards
James Turnbull
--
Author of:
* Pro Linux Systems Administration (http://tinyurl.com/linux
10 matches
Mail list logo