A resource in class of post stage is getting executed before main stage.

16 views
Skip to first unread message

Afroz Hussain

unread,
Aug 31, 2016, 12:38:11 PM8/31/16
to Puppet Users
Hi All,

I have a class with stage='post-10' that mean that has to executed after main stage but a resource of that class getting executed twice that is before main and after.

example code as shown:

appneta::nodejs (
  $stage = "post-10",
  )
  {
  
    exec { 'install_agent':
    } ->
     Appneta::Updatejs<| tag == 'run_first' |>
  }


Getting cyclic graph error as:

Exec[install_agent] => Appneta::Updatejs[artifact1] => Stage[main] => Stage[post-10] => Class[Appneta::Nodejs] => Exec[install_agent])

Any help will be appreciated!!

Thanks,
Afroz


Lowe Schmidt

unread,
Aug 31, 2016, 1:30:48 PM8/31/16
to puppet...@googlegroups.com
Can you please show us the code for the class appneta::updatejs

--
Lowe Schmidt | +46 723 867 157

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/05dcdc96-c2d8-4ae7-ba84-415399151295%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages