On 20 June 2013 14:49, Roman Alekseev wrote:
>
> What about a facter something like this:
>
> # nginx.rb
>
> Facter.add("nginx") do
> setcode do
> Facter::Util::Resolution.exec(**'/usr/bin/dpkg -l | /bin/grep -c
> nginx')
> end
> end
>
>
A fact for something like that seems a bit over th
On 20.06.2013 17:46, Martin Alfke wrote:
this case the file resource will only be managed if the package resource has
been defined.
This does not mean, that the package has been installed successfully!
For this option you have to add
require => Package['nginx'],
to your file resource.
Thank
Hi Roman,
you can check for a defined package resource
if defined(Package['nginx']) {
file { …… }
}
In this case the file resource will only be managed if the package resource has
been defined.
This does not mean, that the package has been installed successfully!
For this option you have to a
Hi Everyone,
Is it possible to use File directive only if some software is installed,
otherwise do nothing?
For example:
file { "/tmp/puppet-nginx-init.sh":
ensure => "present",
owner => "root",
group