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",
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
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
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
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