[Puppet Users] nested variables

2009-12-24 Thread sHaggY_caT
Hi all! I have quation: how i may use nested variables/facts? For example, I have variable $iface. It's variable declared in node brakets, and, use with defenition. iface may be eth0, eth1(Linux), em0, ... , ... is fact: facter | grep eth0 | grep mac macaddress_eth0 => 54:52:00:3D:CB:40 We don'

[Puppet Users] Re: Couldn't see RRDReport in foreman

2009-12-24 Thread koliama
I try to edit file app/views/hosts/_rrdreport.rhtml <%= host.name %> Last puppet report on <%= host.last_report.getlocal %>, which is <%= time_ago_in_words (host.last_report) %> ago <% url = "http://srv2-puppet:3000/#{SETTINGS [:rrd_report_url]}/#{host.name}" -%> Daily > > weekly >

Re: [Puppet Users] using 'define': modelling a file-like construction.

2009-12-24 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wouldn't this possibly have unintended consequences, or would the scope of the overrides be restricted to the define in this case? Trevor On 12/22/2009 08:14 AM, R.I.Pienaar wrote: > hello, > > You can use the ability to set defaults for resources:

Re: [Puppet Users] nested variables

2009-12-24 Thread Mike Pountney
Have a look at the generate() and inline_template() functions, one of which should provide you with a workaround to your problem. There may be a more elegant solution though. On 24 Dec 2009, at 09:33, sHaggY_caT wrote: > Hi all! > > I have quation: how i may use nested variables/facts? For e

Re: [Puppet Users] Re: Couldn't see RRDReport in foreman

2009-12-24 Thread Frank Sweetser
On 12/24/2009 5:16 AM, koliama wrote: > I try to edit file app/views/hosts/_rrdreport.rhtml > > <%= host.name %> Last puppet report on<%= > host.last_report.getlocal %>, which is<%= time_ago_in_words > (host.last_report) %> ago > ><% url = "http://srv2-puppet:3000/#{SETTINGS > [:rrd_report_u

Re: [Puppet Users] using 'define': modelling a file-like construction.

2009-12-24 Thread Peter Meier
> Wouldn't this possibly have unintended consequences, or would the scope > of the overrides be restricted to the define in this case? afair it's restricted to the scope. cheers pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to

[Puppet Users] how to specify source parameter for gem packages

2009-12-24 Thread byron appelt
I am trying to use the package class to manage a gem and I need to specify the source. I tried doing the following: package { "gateway_install_support": ensure => installed, provider => gem, source => "http://gems.ublip.com:8808";, require => Exec["ruby setup.rb"] } but this cau