diff --git a/types/dns/fqdn.pp b/types/dns/fqdn.pp new file mode 100644 index 000000000..16d6a5c3c --- /dev/null +++ b/types/dns/fqdn.pp @@ -0,0 +1 @@ +type Stdlib::DNS::Fqdn = Stdlib::DNS::IANA::Fqdn::ASCII diff --git a/types/dns/iana/fqdn.pp b/types/dns/iana/fqdn.pp new file mode 100644 index 000000000..c610b714e --- /dev/null +++ b/types/dns/iana/fqdn.pp @@ -0,0 +1 @@ +type Stdlib::DNS::IANA::Fqdn = Pattern[/\A((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)*[[:alpha:]]+)\z/] diff --git a/types/dns/iana/fqdn/ascii.pp b/types/dns/iana/fqdn/ascii.pp new file mode 100644 index 000000000..bb5c64537 --- /dev/null +++ b/types/dns/iana/fqdn/ascii.pp @@ -0,0 +1 @@ +type Stdlib::DNS::IANA::Fqdn::ASCII = Pattern[/\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[a-z0-9]*[a-z]+[a-z0-9]*)\z/] diff --git a/types/dns/punycode.pp b/types/dns/punycode.pp new file mode 100644 index 000000000..1668e874d --- /dev/null +++ b/types/dns/punycode.pp @@ -0,0 +1 @@ +type Stdlib::DNS::Punycpde = Pattern[/xn--[a-z0-9]+/] diff --git a/types/dns/rfc/fqdn.pp b/types/dns/rfc/fqdn.pp new file mode 100644 index 000000000..6a925bbfc --- /dev/null +++ b/types/dns/rfc/fqdn.pp @@ -0,0 +1,2 @@ +type Stdlib::DNS::Rfc::Fqdn = Pattern[/\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])\z/] + diff --git a/types/fqdn.pp b/types/fqdn.pp index c2fbe09ae..0002dee7c 100644 --- a/types/fqdn.pp +++ b/types/fqdn.pp @@ -1,2 +1,2 @@ # @summary Validate a Fully Qualified Domain Name -type Stdlib::Fqdn = Pattern[/\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])\z/] +type Stdlib::Fqdn = Stdlib::DNS::Fqdn