is_ip_address
Deprecated. Will be removed in a future version of stdlib. See validate_legacy
.
Returns true
if the string passed to this function is a valid IP address.
Type: rvalue.
`
--
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 it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3275659c-d7c0-487f-979b-8e62da5a3cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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?
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/76c27569-da23-48cb-b05f-81929f144425%40googlegroups.com.
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”] =~ Stdlib::Compat::Ipv4 {fail(“meh”)}Though I would say your class should have a ip parameter and callers should supply the value and you should if but perhaps default so the fact this will help with tests etc
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0C3BE96D-360D-4BF5-A55B-C489F2077BB1%40devco.net.