Hi, I'm gettinng a dependency cycle when using PE 2.7, puppetlabs::mrepo, 
"role classes" and hiera :

I'm trying to mirror RHN repos :

# ROLE CLASS

> class site::yum_repository{ 
>
> $repos = hiera('site::yum_repository::repos') 
> create_resources(mrepo::repo::rhn, $repos) 
> } 
>

# HIERA DEFAULTS

>      mrepo::params::src_root    : '/srv/mrepo' 
>   mrepo::params::www_root    : '/srv/www/mrepo' 
>   mrepo::params::user        : 'apache' 
>   mrepo::params::group       : 'apache' 
>   mrepo::params::mailto      : 'UNSET' 
>   mrepo::params::source      : 'package' 
>   mrepo::params::selinux     : false 
>   mrepo::params::rhn         : true 
>   mrepo::params::rhn_username: 'user' 
>   mrepo::params::rhn_password: 'pass' 
>


# NODE-SPECIFIC HIERA VALUES

> mrepo::params::src_root    : '/srv/mrepo' 
> mrepo::params::www_root    : '/srv/www/mrepo' 
> mrepo::params::user        : 'apache' 
> mrepo::params::group       : 'apache' 
> mrepo::params::source      : 'package' 
> mrepo::params::rhn         : true 
> mrepo::params::rhn_username: 'mytrueaccount' 
> mrepo::params::rhn_password: 'mytruepassword' 
> mrepo::params::selinux     : false 
>
> # Repositories yumrepo 
> site::yum_repository::repos: 
>   "rhel6-x86_64": 
>     ensure     : present 
>     update     : 'now' 
>     arch       : 'x86_64' 
>     release    : '6' 
>     rhnrelease : '6Server' 
>     repotitle  : 'RHEL 6.3 64 Bits' 
>     urls       : 
>       rhn-tools : 'rhns:///rhn-tools-rhel-$arch-server-6' 


And I use the dashboard as an ENC to attach the  site::yum_repository class 
to the node puppet-node.

When I'm trying to run a *puppet agent --test* I got the following output :

*err: Could not apply complete catalog: Found 1 dependency cycle:*
*(File[/srv/www/mrepo] => File[10-mrepo.conf] => Service[httpd] => 
Class[Apache] => File[/srv/www/mrepo])*
*Cycle graph written to /var/opt/lib/pe-puppet/state/graphs/cycles.dot.*

Any lead on what's wrong in my manifests or on how to debug the dependency 
cycle ?

Thanks for your help,

Benoit BARTHELEMY

-- 
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/-/zOj3_eIidJIJ.
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