puppet variables

Posted by Joey Bagodonuts on Server Fault See other posts from Server Fault or by Joey Bagodonuts
Published on 2011-02-24T22:23:57Z Indexed on 2011/02/24 23:27 UTC
Read the original article Hit count: 259

Filed under:

I am trying to use variables in my modules manifest.pp with little luck

class mysoftware($version="dev-2011.02.04b") {
  File {
    links => follow
  }

  file { "/opt/mysoftware":
    ensure => directory
  }
  file { "/opt/mysoftware/share":
    source => "puppet://puppet/mysoftware/air/$version",
    recurse => "true",
  }
  }

This does not seem to be working when I assign this to a node via the nodes.pp file.

I am running puppetmaster 2.6.4 puppetd clients are 0.25

© Server Fault or respective owner

Related posts about puppet