logo       

Re: Boolean expressions: msg#00300

sysutils.puppet.user

Subject: Re: Boolean expressions

> The docco is somewhat lacking in describing syntax for boolean
> expressions for "if" statements, so I've been trying to figure out how
> to express that. None of the obvious things I can think of work. Hint?

The documentation doesn't describe the syntax because the only syntax
that is currently supported is existence i.e.,

if $variable {
file { "/some/file": ensure => present }
} else {
file { "/some/other/file": ensure => present }
}

A construct like:

if $variable = "value" {
do...
} else {
do...
}

is not yet supported.

Regards

James Turnbull

--
James Turnbull <james@xxxxxxxxxxxxxxxxx>
---
Author of Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)

Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
---
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Puppet-users mailing list
Puppet-users@xxxxxxxxxxx
https://mail.madstop.com/mailman/listinfo/puppet-users
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise