On 05/05/14 14:12, Felix Frank wrote:
On 04/28/2014 08:24 AM, Lito K wrote:
I was wondering if someone can give me a hint how to solve this
dependency cycle issue.
Every resource is synced and/or refreshed at a set time during catalog
evaluation. You cannot have multiple refreshes of the same resource.
Therefor, the usual workaround is to model either action via exec
instead of the proper service resource, e.g.
1. war-file deployment
2. exec tomcat-start
3. config-file management
4. service refresh
By the way, are you certain that the war-file will be completely
extracted when the tomcat start routine hands the control back? I would
assume the such things go on in the background, and that puppet would
race with tomcat. If so, the config-file may in fact not yet be in place
when the file resource is getting synced.
HTH,
Felix
I create an rpm, where I unpack the war to the right location, and
deploy it that way.
And then you just have a simple package - file(s) - service pattern.
(using tomcat6)
Makes life much easier ...
hth
Greats
johan
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013/2014 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
Next Events:
Linux Training | https://www.open-future.be/linux-training-5-till-9th-may
Puppet Introduction Course |
https://www.open-future.be/puppet-introduction-course-12th-may
Puppet Fundamentals Training |
https://www.open-future.be/puppet-fundamentals-training-13-till-15th-may
Zabbix Certified Specialist |
https://www.open-future.be/zabbix-certified-specialist-training-19-till-21th-may
Zabbix Certified Professional |
https://www.open-future.be/zabbix-certified-professional-training-22-till-23rd-may
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/5367940B.1010508%40open-future.be.
For more options, visit https://groups.google.com/d/optout.