[Pkg-puppet-devel] Bug#513320: arithmetic expression fails to work

Jayen Ashar jayen at science.unsw.edu.au
Wed Jan 28 05:39:31 UTC 2009


Package: puppetmaster
Version: 0.24.6-1
Severity: normal

i have a fact to determine the amount of free space for the /usr partition which sets $usrfree.

my manifest contains:
  file { "/tmp/puppet_lab_usrfree.txt": 
    owner => root, group => root, mode => 440, 
    content => $usrfree;
  }
  if $usrfree > 1274 {
    file { "/tmp/puppet_lab_usrfree_ok.txt": 
      owner => root, group => root, mode => 440, 
      content => $usrfree;
    }
  }

the file /tmp/puppet_lab_usrfree.txt is generated with the contents "10176", so i know my fact is working.
the file /tmp/puppet_lab_usrfree_ok.txt is not generated, which i would expect because 10176 > 1274.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-etchnhalf.1-686-bigmem
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)





More information about the Pkg-puppet-devel mailing list