Ask Your Question

how to declare defined variables in a class on nodes.pp files p

asked 2015-06-10 02:32:28 -0600

Gauthami.T gravatar image

updated 2015-06-11 15:07:47 -0600

ramindk gravatar image


I have written a Jenkins module which will install jenkins and plugins. I have declared a class jenkins::install and defined a jenkins::plugin function in same init.pp file. as i have to align my multiple modules to run in order. so i have declared stage

stage { 'prereq':}
stage { 'final':}
Stage['main'] -> Stage ['final']

And assign all my classes under prereq stage and my plugins will get executed in my main stage. But along with this i need have 2modules which has to execute after my prereq->main but i get bellow error.

Error: Could not apply complete catalog: Found 1 dependency cycle:
(Augeas[sudonexus] => Class[Nexus::Install_nexus] => Stage[prereq] => Stage[main] =>
Class[Svn::Params] => Class[Svn::Params] => Stage[main] => Stage[final] =>
Class[Jenkins_nexus::Jobs] => File[Job Config File] => Service[jenkins] =>
Class[Jenkins::Install_jenkins] => Stage[prereq])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz

kindly please provide me a solution for the same.

Thanks, Gauthami. T

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-10 15:14:09 -0600

GregLarkin gravatar image

It appears that you have some resources that are applied in different run stages but also have direct dependencies on each other. Run stages can be difficult to use because of the potential for dependency cycles.

Have a look at this piece of documentation and determine if your code is triggering any of the issues described there:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-06-10 02:32:28 -0600

Seen: 181 times

Last updated: Jun 11 '15