Remove the node word and you have it

if $::system_role == "app-server" {

..

...

include default;

}

Regards,
El 17/04/2014 20:46, "Pawel Kilian" <[email protected]> escribió:

> Hi,
> I want to use facter scope variable to use in my manifest files for puppet
>
> for now i have something like this:
>
> node 'web-server' {
> ..
> ..
> }
>
>
> I want to be able to use if/case  definition to define nodes
>
>
> root@ip-10-187-40-216:~# facter -p system_role
> app-server
> root@ip-10-187-40-216:~#
>
> so in my manifest node definition i would like to use something like:
>
> node if $::system_role == "app-server" {
> ..
> ...
> include default;
> }
>
>
> or something similar to it.
> I want to use facter variables because i want to use with ec2tags for each
> server and build each server based on ec2 tag
>
> How I can approach this?
>
> thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/3f7a87c2-cdec-42b8-88d5-25a57267ee46%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/3f7a87c2-cdec-42b8-88d5-25a57267ee46%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3dduy%2B9M5pg4sTCNqC%3DW0yoFX0JxyBbAdR72e3QuMuDXQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to