This seems a bit better:
define foo(
Enum["present", "absent"] $ensure = "present",
Optional[String]$ssh_authorized_file = undef,
Optional[String]$email = undef,
Optional[Integer] $uid
On 2015-30-07 16:36, R.I.Pienaar wrote:
hello,
I've done a few little things with the type system and really like what it
achieves,
was able to find a few bad data items in my hiera data and it saves on a lot of
the
super annoying validation function calls.
The syntax though is pretty difficu
hello,
I've done a few little things with the type system and really like what it
achieves,
was able to find a few bad data items in my hiera data and it saves on a lot of
the
super annoying validation function calls.
The syntax though is pretty difficult to use, consider:
define foo(