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 => $
> 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
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",
>
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/
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;
>
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