You can create some sort of a trigger file. Like this:
file { "/some/folder/file_trigger"
ensure => present,
content => "version01",
…
}
Add "refreshonly => true" to your resources. Then subscribe your resources to
this file. Once the file is changed, your code will be executed.
--
Best regards,
Sergey Arlashin
On Nov 20, 2013, at 6:18 PM, Aravind Valluru <[email protected]>
wrote:
> Hi,
>
> I have created a puppet module that performs below steps:
>
> 1. stop application service
> 2. take backup of existing application
> 3. download application artifact
> 4. install the application
> 5. some configuration stuff
> 6. start the application service
>
> Since the agent will poll the master every 30mins all these steps are
> executed every 30mins which I do not want.
> I want to enforce the puppet module execution only upon module change. Can I
> possibly do that?
> If not how can resolve this situation?
>
> Thanks
> Aravind
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/32dc1990-2593-4817-8841-30ab1cab55e0%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/24A5F54F-71F2-499B-A943-7138D5580FB6%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.