Hi,
I have a weird dependency cycle issue. This is just a test module which I
created while trying to solve this issue:
modules/testmod/manifests/init.pp:
class testmod {
package { 'nginx': ensure => installed }
service { 'nginx':
ensure => running,
enable => true,
require => Package['nginx']
}
}
class testmod::nginxtest {
file { '/tmp/nginx.test':
ensure => present,
notify => Service['nginx'];
}
}
manifests/test-node.pp:
node 'test-node.site' {
class { 'testmod': }
class { 'testmod::nginxtest':
require => Class['testmod']
}
}
When I apply this on node test-node.site I get:
Error: Could not apply complete catalog: Found 1 dependency cycle:
==> test-node: (File[/tmp/nginx.test] => Service[nginx] => Class[Testmod] =>
Class[Testmod::Nginxtest] => File[/tmp/nginx.test])
==> test-node: Try the '--graph' option and opening the resulting '.dot' file
in OmniGraffle or GraphViz
Could you please help me figure out why this is happening ? It seems there is
nothing in test mod whih requires testmod::nginxtest .
Thanks in advance.
--
Best regards,
Sergey Arlashin
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/BA65EC71-6CB1-4448-99F0-D25680533960%40gmail.com.
For more options, visit https://groups.google.com/d/optout.