Hi,

I'm running into some trouble when trying to access some variables which 
actually are a class parameter.

The following works OK:

node "common" {
 $var='foo'
}

node "gratia-base" inherits common {

  class {
        'gratia':
                dbhost => 'server.mysite.net',
  }

}

node "node1" inherits gratia-base  {

  validate_re($::gratia::dbhost, '.mysite.net')

}



But if I move the 'common' node definition to a different .pp file, puppet 
fails to read the value of $::gratia::dbhost.

The way I've the nodes files structured is:

manifests/nodes.pp
  import "nodes.d/*.pp"

manifests/nodes.d/common.pp
    node common {....}

manifests/nodes.d/gratia.pp
   *The code I show before*


Do you know why this is happening and/or how to prevent it?


Thanks,
 Gerard

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to