Hello,

Im currently trying to get an if condition working.

I have:
if "$mountpoint_path_my-path" {
    file with apache privilege
} else {
    file with root privilege
}

$mountpoint_path_my-path being the facter variable that comes up after
something is mounted.

I had already that kind of thing working but this time, Im trying to
put a path with "-" in it (in my case /var/lib/x-zzz/state).

After some tests, the "-" seems to be a problem: if I have it in my
path, puppet seems to enter the if condition everytime, even when the
directory is not mounted. If I remove it, it works properly and enter
the else condition.

I tried the following syntaxes, without success:
* "$mountpoint_path_my-path"
* '$mountpoint_path_my-path'
* {$mountpoint_path_my-path}
* "$mountpoint_path_my\-path"

Any clue about a syntax I could use to make this works?

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to