thank you, I will try that On Thursday, April 17, 2014 2:41:41 PM UTC-4, Pawel Kilian wrote: > > 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/71383e85-10cd-4a51-8d13-0667d17fe918%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.