Hi,

Need some help, currently have puppet setup with custom fact defined as 
like below, what i want to do is setup my environments in puppet based on 
this custom fact, how easily can i do this, anyone?

Facter.add('web_environment') do
  setcode do
    case Facter.value(:hostname)
    when /host01|host02/
      "test"
    when /host03|host04/
      "staging"
    when /host09|host19/
      "live"
    ........
    ............
    .............. 

Cheers
mahmed

-- 
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/ab4c4d3f-1c10-4a77-a120-f6bf3c3e8539%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to