Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread R.I. Pienaar
> On 16 Feb 2018, at 07:02, R.I. Pienaar wrote: > > >> On 15 Feb 2018, at 15:04, John Baird wrote: >> >> Do you have any recommendations for validating a custom top-scope fact? >> Meaning, it's not a module scope, how can I verify a top-scope

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread R.I. Pienaar
> On 15 Feb 2018, at 15:04, John Baird wrote: > > Do you have any recommendations for validating a custom top-scope fact? > Meaning, it's not a module scope, how can I verify a top-scope variable if I > can't put that in the class params? unless $facts[“whatever”] =~

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread John Baird
Do you have any recommendations for validating a custom top-scope fact? Meaning, it's not a module scope, how can I verify a top-scope variable if I can't put that in the class params? On Thursday, February 15, 2018 at 8:01:57 AM UTC-6, R.I. Pienaar wrote: > > > > On Thu, 15 Feb 2018, at

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread John Baird
Ok, that works. I appreciate the response, thanks! On Thursday, February 15, 2018 at 8:01:57 AM UTC-6, R.I. Pienaar wrote: > > > > On Thu, 15 Feb 2018, at 14:50, John Baird wrote: > > R.I, > > > > Can you point me to some docs on exactly how to use those? I have > looked > > and I only

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread R.I.Pienaar
On Thu, 15 Feb 2018, at 14:50, John Baird wrote: > R.I, > > Can you point me to some docs on exactly how to use those? I have looked > and I only see references to using them, but not how to actually use them > within a manifest for validation. Any places you can point me to would be >

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-15 Thread John Baird
R.I, Can you point me to some docs on exactly how to use those? I have looked and I only see references to using them, but not how to actually use them within a manifest for validation. Any places you can point me to would be much appreciated! Also, thanks for all of the useful modules you

Re: [Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-14 Thread R.I. Pienaar
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

[Puppet Users] Puppet 5 Stdlib IP address parsing

2018-02-14 Thread John Baird
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