[Puppet Users] Re: Puppet / Ruby Regex match

2015-04-23 Thread TheNerd
Thanks! I will give it a whirl. On Thursday, April 23, 2015 at 7:12:01 AM UTC-7, jcbollinger wrote: > > > > On Wednesday, April 22, 2015 at 6:36:01 PM UTC-5, TheNerd wrote: >> >> Hi, >> >> So I have have the following ruby script for puppet, located in &g

[Puppet Users] Puppet / Ruby Regex match

2015-04-22 Thread TheNerd
Hi, So I have have the following ruby script for puppet, located in /etc/puppetlabs/puppet/environments/production/modules/base/lib/facter Facter.add(:appname) do setcode do Facter.value(:hostname)[5..-1][/(.*?)(\-|\z)/,1] end end The goal is to get it to match what facter returns for

[Puppet Users] Re: Puppet with VMWare ESX

2014-11-07 Thread TheNerd
Hi Dbs, Would you mind sharing how you do this either in the thread of offline? Thanks. On Sunday, June 13, 2010 8:53:32 AM UTC-7, dbs wrote: > > On Jun 13, 11:39 am, Jens Meydam wrote: > > We have invested heavily in virtualization infrastructure, in > > particular VMWare ESX. How well does