FAQ
Is it possible that the registry_key type, like dirs and subdirs, has an
implied dependency? Sorry, not in a position to test at the moment and I've
actually not used that type in a while.

On Tue, Apr 2, 2013 at 12:09 PM, wrote:

Hi All,

I am new to Puppet and have a question on dependency cycle.

I am currently applying my resource directly using the command prompt on
Windows 'puppet apply --noop init.pp'.

When I try to test it, I encounter a dependency cycle error.
Error: Could not apply complete catalog: Found 1 dependency cycle:
(Registry_key[delete_hklm_test_foo1_key_step_1_2] =>
Registry_key[delete_hklm_test_key_step_1_3] =>
Registry_key[delete_hklm_test_foo2_key_step_1_1] =>
Registry_key[delete_hklm_test_foo1_key_step_1_2])
Try the '--graph' option and opening the resulting '.dot' file in
OmniGraffle or GraphViz

My init.pp is like this.

include deletion_key_only
class deletion_key_only {
registry_key { 'delete_hklm_test_foo2_key_step_1_1':
ensure => absent,
purge_values => false,
path => 'hklm\software\Test\foo2',
}
registry_key { 'delete_hklm_test_foo1_key_step_1_2':
ensure => absent,
purge_values => false,
path => 'hklm\software\Test\foo1',
require => Registry_Key['delete_hklm_test_foo2_key_step_1_1'],
}
registry_key { 'delete_hklm_test_key_step_1_3':
ensure => absent,
purge_values => false,
path => 'hklm\software\Test',
require => Registry_Key['delete_hklm_test_foo1_key_step_1_2'],
}
}

I am not sure why I hit a dependency cycle error because I thought I have
the dependency lay out correctly on my manifest where
'delete_hklm_test_foo2_key_step_1_1' will go first, then
'delete_hklm_test_foo1_key_step_1_2' and family
'delete_hklm_test_key_step_1_3'.

Can anyone please explain why I am encountering a dependency cycle error?

Thanks!

David

--
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+unsubscribe@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.



--
---
Nathan Valentine - nathan@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

*Join us at PuppetConf 2013, August 22-23 in San Francisco - *
http://bit.ly/pupconf13

--
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+unsubscribe@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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 5 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedApr 2, '13 at 7:14p
activeJul 18, '13 at 5:58a
posts5
users4
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase