[Puppet Users] is_virtual selector

2012-10-02 Thread Matt
I too have been pushed into Puppet 3.0. Clients and PuppetMaster are now at 3.0.0. Not sure if this is a version change or syntax error that I am experiencing. We'll use 'ntp' as the example and the "build" host is a VM. The old way: class baseline::ntpd { package { "ntp": ensure => $

Re: [Puppet Users] is_virtual fact

2011-11-23 Thread Matt Zagrabelny
> Facter facts are all strings, not true booleans.  You'll need to check > for whether or not $is_virtual == 'true'. Thanks for the prompt reply, Jacob! Things look good now. -mz -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

Re: [Puppet Users] is_virtual fact

2011-11-23 Thread Jacob Helwig
On 2011-11-23 12:49 , Matt Zagrabelny wrote: > Hi, > > I've got a question regarding a fact. I'm trying to use the > 'is_virtual' fact in a class manifest: > > class io_scheduler { > if $is_virtual { > file { "/etc/default/grub": > owner => "root", > group => "root", >

[Puppet Users] is_virtual fact

2011-11-23 Thread Matt Zagrabelny
Hi, I've got a question regarding a fact. I'm trying to use the 'is_virtual' fact in a class manifest: class io_scheduler { if $is_virtual { file { "/etc/default/grub": owner => "root", group => "root", mode=> 0644, source => "puppet:///modules/io_scheduler/

Re: [Puppet Users] ! $is_virtual

2011-06-07 Thread Jacob Helwig
On Tue, 07 Jun 2011 11:09:32 -0700, Douglas Garstang wrote: > > All, > > Running this on a bare metal server. Package doesn't get installed, > therefore condition is false. Why? > > if ! ($is_virtual) { > package { > 'vlock': > ensure => installed; >

[Puppet Users] ! $is_virtual

2011-06-07 Thread Douglas Garstang
All, Running this on a bare metal server. Package doesn't get installed, therefore condition is false. Why? if ! ($is_virtual) { package { 'vlock': ensure => installed; } } [pax] app01 ~:# facter | grep is_virtual is_virtual => false Oh... don