On 09/07/15 02:26, Gerard Kok wrote:
You could create a custom fact that returns the desired state of the
service, based on the existence of the file, and then use the value of
that fact in the service declaration. For example, like so:
The custom fact:
|
Facter.add(:state_of_the_service)do
s
On 09/07/15 01:25, jcbollinger wrote:
On Tuesday, July 7, 2015 at 8:21:48 PM UTC-5, Mark Kirkwood wrote:
I would like to prevent a service starting until a certain file exists.
The wrinkle is that the file is not (directly) created by puppet.
I'm thinking that I want to so
I would like to prevent a service starting until a certain file exists.
The wrinkle is that the file is not (directly) created by puppet.
I'm thinking that I want to somehow 'declare' the file to puppet without
*it* trying to create it, and the use something like:
File["the-file"] -> Service[
Ok - helping myself on this one, I notice that
modules/swift/tests/site.pp is a 'worked' example for this. Excellent
(reads).
On 26/05/15 12:44, Mark Kirkwood wrote:
> Hi,
>
> I'm trying to deploy a proxy and two storage servers (VMs, it's a test
> environment).
Hi,
I'm trying to deploy a proxy and two storage servers (VMs, it's a test
environment). I started following the examples in
https://forge.puppetlabs.com/puppetlabs/swift and made some progress
(see attached):
- on 2 storage servers the swift processes start
- on proxy server they do not sta