This is an example I found online that would do what I want: check if a dir
exists and if so, do something:
class foo {
exec { "is foo present":
command => "/bin/true",
onlyif => "/usr/bin/test -d /foo"
}
file { "create a file if dir foo is present":
path => "/path/otherfoo",
I have an older version, however PuppetDB reconnects on the first Agent run so
the first one fails but subsequent runs will succeed.
--
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 i
hi,
i was recently bitten by ordering issues caused by missing contain/anchor
declarations in a PostgreSQL module which should have finished its job before
configuring and starting the PuppetDB which is done by another module.
So here are my questions:
- is it possible to use the contain functio
Puppet Platform 5.4.0 is a feature release that adds agent support for
FIPS-compliant platforms, improves filebucket handling, improves several
Puppet language features and adds new functions and types, improves
PuppetDB performance, and adds new profiling features to Puppet Server. For
details, se
According to the stdlib docs, "is_ip_address" is deprecated. There is no
mention of how to replace it without using "validate_legacy" which itself
will ultimately be deprecated.
Is there a better/proper approach to validating IPv4 and/or IPv6 syntax
with Puppet 5 ?
`
is_ip_address
*Deprecate
Use the Stdlib::Compat::Ipv4, ::Ipv6 and ::Ip_address data types
---
R.I.Pienaar
> On 15 Feb 2018, at 01:41, John Baird wrote:
>
>
> According to the stdlib docs, "is_ip_address" is deprecated. There is no
> mention of how to replace it without using "validate_legacy" which itself
> will u