Hello

For some reason I do not seems to be able to get 'tag' working...

env : EC2 Ubuntu, puppet version 2.6.1 (client and puppetmaster)

example of my nodes.pp file


class puppet_tagged {
        if  tagged("fly-puppet") {
                file { "/tmp/fly_puppet_server":
                        ensure => "present",
                        mode   => "444",
                        owner  => "root",
                        group  => "root"
                }
        }

        if tagged("fly-default") {
                file { "/tmp/fly_puppet_default":
                        ensure => "present",
                        mode   => "444",
                        owner  => "root",
                        group  => "root"
                }
        }
}

node basenode {
        tag ("fly-puppet")
        include puppet_tagged
        include fly-base
        include fly-nrpe::base
        include fly-munin::client
}

# Default, undefined nodes always gets this
# No classs installed, just a 'tagged puppet default' file.
node default {
        tag ("fly-default")
        include puppet_tagged
}

node "coco" inherits basenode   {
        include puppet_tagged
        include fly-memcached
}

and the file under /tmp/ never gets created!

any hint?

-- 
-ls

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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