i expect the file /tmp/conftest content will be "mymaster" not default "HM" 
on node bm ,but fail,anyone can help?
 
here my init.pp
 
class hadoop {
        require hadoop::params
         file { "/tmp/conftest":
                ensure  => 'file',
                content => "$hadoop::params::master",
        }
}
here my node.pp
 
node 'default' {
        include hadoop
}
node 'bm' inherits 'default' {
        $hadoop::params::master = 'mymaster'
}
 
here is my params.pp
 
class hadoop::params {
           $master = $::hostname ? {
                default => 'HM',
        }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to