FAQ
Hi,

On Sunday, 22 April 2012 02:15:19 UTC+1, Dennis Jacobfeuerborn wrote:

[...]
The twist I need to add though is that I only want to do this if a copy of
that file for the node exists on the server. If this file doesn't
exists then I want puppet to not replace the file on the client and not
restart the service.

Is there a way to accomplish this sort of conditional execution?
Have a look on:
https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functions/exists.rb


Maybe it will be of any use to you in this case.

KW

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/7QWPj4QhYvkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 6 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedApr 22, '12 at 1:15a
activeApr 23, '12 at 4:28p
posts6
users2
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase