On Fri, Jan 27, 2012 at 3:17 PM, jblaine <cjbla...@gmail.com> wrote:

> Indeed.
>
> Trashing the entire defined resource idea 30 mins ago, and
> simply trying:
>
> class ldapclient::config {
>     case $sys_sshortai {
>         'RH6': {
>             file { '/etc/openldap/ldap.conf':
>                 mode => '444',
>                 source => "${ldapclient::params::fileroot}/${name}",
>                 owner  => $ldapclient::params::ldapclient_user,
>                 require => Class['ldapclient::install'],
>             }
>             file { '/etc/nslcd.conf':
>                 mode => '444',
>                 source => "${ldapclient::params::fileroot}/${name}",
>                 owner  => $ldapclient::params::ldapclient_user,
>                 require => Class['ldapclient::install'],
>                 notify => Class['ldapclient::service'],
>             }
>         }
>     }
> }
>
> is giving me:
>
> err: /Stage[main]/Ldapclient::Config/File[/etc/nslcd.conf]: Could not
> evaluate: Could not retrieve information from environment production
> source(s) puppet:///modules/ldapclient/files/RH6/ldapclient::config at
> /etc/puppetlabs/puppet/modules/ldapclient/manifests/config.pp:30
> err: /Stage[main]/Ldapclient::Config/File[/etc/openldap/ldap.conf]: Could
> not evaluate: Could not retrieve information from environment production
> source(s) puppet:///modules/ldapclient/files/RH6/ldapclient::config at
> /etc/puppetlabs/puppet/modules/ldapclient/manifests/config.pp:23
>

In the link Den provided, you'll want to check the puppet:/// syntax.  You
don't want to include the 'files' directory in the puppet:/// reference.
 You'll want to use puppet:///modules/ldapclient/RH6/config_file for a file
located in  $modulepath/ldapclient/files/RH6/config_file.  By default,
using puppet:///, it looks to the files directory, so you don't need to
pass it.


>
> This is maddening.  What do those errors even mean?  So vague :(
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/ZwWSDMnrqesJ.
>
> 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.
>



-- 

Gary Larizza
Professional Services Engineer
Puppet Labs

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