Pawel Kilian
2014-Apr-17 18:41 UTC
[Puppet Users] How to use facter variable in node definition?
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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3f7a87c2-cdec-42b8-88d5-25a57267ee46%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.