The Puppet Development Kit team is excited to introduce a new RFC-based
open-source planning and design process for the PDK project!
While many changes to the PDK, including bug fixes and documentation
improvements can be implemented and reviewed via the normal GitHub pull
request workflow, some c
Ben Ford wrote:
> What you're looking for is the dig() function.
> https://puppet.com/docs/puppet/latest/function.html#dig
>
> $profiles.dig('vpn', 'openvpn', 'instances', 'client')
>
> On Wed, Jul 11, 2018 at 8:32 AM Helmut Schneider
> wrote:
>
> > Hello all,
> >
> > let's assume the followi
What you're looking for is the dig() function.
https://puppet.com/docs/puppet/latest/function.html#dig
$profiles.dig('vpn', 'openvpn', 'instances', 'client')
On Wed, Jul 11, 2018 at 8:32 AM Helmut Schneider wrote:
> Hello all,
>
> let's assume the following structure in a yaml:
>
> profiles:
>
Hello all,
let's assume the following structure in a yaml:
profiles:
vpn:
openvpn:
instances:
client:
myclient:
remote: 'openvpn_host 1194'
I would now like to check if e.g. "client" exists:
if ($profiles['vpn']['openvpn']['instances']['client