As usual, I'm confused about scope in puppet. This puppet 2.7.1.

In my classes below, the bottom class, company::web::content, requires
the file resource '/usr/local/company'. However, that resource is
defined two includes back in the class company::common. I always
thought this wasn't supposed to work, and that you could only access
the immediate scope, not the scope of stuff beyond this. It does work
however. Is it supposed to. Why?


class company::common {
    file {
        '/usr/local/company':
        ....
    }
}


class company::web::common {
    include company::common
}


class company::web::content {
    include company::web::common

    file {
        '/usr/local/company/www':
            require => File['/usr/local/company']
    }
}

Doug.

-- 
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