Hello,
I'm trying to establish a simple inheritance

all_hosts > all_redhat  > DNS Master
                                       DNS Slaves
                                       Oracle RAC Nodes
                                       Web Nodes

all_hosts > all_solaris   > Web Nodes
                                       Jboss Nodes

I have classes with defined files and services for each class of
systems.

Here is an example...
cat classes/all/class.pp
    class all_hosts {
        file { "/etc/motd":
                ensure   => present,
                mode     => 644,
                owner    => root,
                group    => root,
                checksum => md5,
                source   => 
"/net/puppetmaster/etc/puppet/manifests/files/all/motd"
        }

cat classes/redhat/all/class.pp
    class all_linux {
        file { "/etc/motd":
                ensure   => present,
                mode     => 644,
                owner    => root,
                group    => root,
                checksum => md5,
                source   => 
"/net/puppetmaster/etc/puppet/manifests/files/all/motd"
        }

cat site.pp
    class all_hosts_redhat {
    #######################################################
    # CLASS DEFINITION
    import "classes/all/class.pp"
    import "classes/redhat/all/class.pp"
    #######################################################
    # NODE DEFINITIONS
    node default {
        include all_hosts

        }

    node /^prac6.akc.org/ {
        include all_linux

        }


I had a heck of a time getting around the "Duplicate Definition"
issue.

Shouldn't file { "/etc/motd" in prac override file { "/etc/motd" in
all_hosts?   When I do a puppetd --test the content of motd flip flops
between the two classes.

Maybe there is a better way to do this and I'm just missing something.

Thanks for the help!
/Chris C

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