[Puppet Users] Re: scheduling refresh event BEFORE dependent object

2014-08-05 Thread Dimitris Stafylarakis
schedules is good enough for my case, as new versions of the package come out on a regular basis. So thanks a log for your help :) cheers On Tuesday, July 29, 2014 5:18:22 PM UTC+2, jcbollinger wrote: On Monday, July 28, 2014 8:56:08 AM UTC-5, Dimitris Stafylarakis wrote: Hi people, thanks

[Puppet Users] Re: scheduling refresh event BEFORE dependent object

2014-07-28 Thread Dimitris Stafylarakis
difficult to determine a priori which resources will be refreshed, I was just asking in case someone found a smart solution to this already. For now, I have to resolve to running updates on every puppet run. Thanks anyway cheers, Dimitris On Friday, July 25, 2014 5:20:48 PM UTC+2, jcbollinger

[Puppet Users] scheduling refresh event BEFORE dependent object

2014-07-24 Thread Dimitris Stafylarakis
the change in the dependent resource (e.g. change a configuration file for apache and then reload the service). I'd like to know if it's possible to schedule the exec resource BEFORE the change (e.g. run apt-get update before upgrading a package). Any insights? Thanks in advance Best regards, Dimitris

Re: [Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-07 Thread dimitris . stafylarakis
I think custom facts would be fine for the case of JAVA_HOME of the OP. However, feeding data to the resource will not work for the self.instances method unfortunately. Custom facts won't work either, as facts are only determined prior to the catalog compilation. At that point, the installation

[Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread dimitris . stafylarakis
I've been struggling with this for a while as well. My problem is that I want a specific environment variable set for resources not managed through Exec. Specifically I need an installation path for a custom type/provider I've tried setting variables in /etc/environment but as John points

Re: [Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2014-02-06 Thread dimitris . stafylarakis
I'm not sure I understand you properly, so please clarify if that's the case. I am in control of the environment, i.e. I can set a static path. But I'd like it to be able to set it as a parameter, in case the installation path changes. To make a more specific case, I want my provider to know

[Puppet Users] Class definitions under node default do not propagate in puppet-agents

2013-04-30 Thread Dimitris
In site.pp when i declare a class under node 'puppetagent.*' changes are propagated correctly. When the same class is declared under node default i have no effect on changes. node default { # This is where you can declare classes for all nodes. # Example: # class { 'my_class': } class