FAQ
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+unsubscribe@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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedAug 10, '15 at 4:37p
activeAug 10, '15 at 4:37p
posts1
users1
websitepuppetlabs.com

1 user in discussion

Mahmed: 1 post

People

Translate

site design / logo © 2022 Grokbase