Re: [Puppet Users] Re: How to make service start depend on a file existing

2015-07-09 Thread Mark Kirkwood
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

Re: [Puppet Users] Re: How to make service start depend on a file existing

2015-07-09 Thread Mark Kirkwood
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

[Puppet Users] How to make service start depend on a file existing

2015-07-07 Thread Mark Kirkwood
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[

Re: [Puppet Users] [Swift] Ring sync with separate proxy and storage servers

2015-05-27 Thread Mark Kirkwood
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).

[Puppet Users] [Swift] Ring sync with separate proxy and storage servers

2015-05-25 Thread Mark Kirkwood
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