Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
James T. Lee
Dotfiles
Commits
1042df79
Commit
1042df79
authored
Jul 30, 2021
by
James T. Lee
Browse files
Move puppet libraries into module for Puppet 7 compat
parent
d8c34007
Changes
278
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
70 additions
and
0 deletions
+70
-0
lib/puppet/stdlib/types/ip/address/v6/nosubnet/alternative.pp
...puppet/stdlib/types/ip/address/v6/nosubnet/alternative.pp
+11
-0
lib/puppet/stdlib/types/ip/address/v6/nosubnet/compressed.pp
lib/puppet/stdlib/types/ip/address/v6/nosubnet/compressed.pp
+10
-0
lib/puppet/stdlib/types/ip/address/v6/nosubnet/full.pp
lib/puppet/stdlib/types/ip/address/v6/nosubnet/full.pp
+1
-0
lib/puppet/stdlib/types/mac.pp
lib/puppet/stdlib/types/mac.pp
+5
-0
lib/puppet/stdlib/types/objectstore.pp
lib/puppet/stdlib/types/objectstore.pp
+4
-0
lib/puppet/stdlib/types/objectstore/gsuri.pp
lib/puppet/stdlib/types/objectstore/gsuri.pp
+1
-0
lib/puppet/stdlib/types/objectstore/s3uri.pp
lib/puppet/stdlib/types/objectstore/s3uri.pp
+1
-0
lib/puppet/stdlib/types/port.pp
lib/puppet/stdlib/types/port.pp
+1
-0
lib/puppet/stdlib/types/port/dynamic.pp
lib/puppet/stdlib/types/port/dynamic.pp
+1
-0
lib/puppet/stdlib/types/port/ephemeral.pp
lib/puppet/stdlib/types/port/ephemeral.pp
+1
-0
lib/puppet/stdlib/types/port/privileged.pp
lib/puppet/stdlib/types/port/privileged.pp
+1
-0
lib/puppet/stdlib/types/port/registered.pp
lib/puppet/stdlib/types/port/registered.pp
+1
-0
lib/puppet/stdlib/types/port/unprivileged.pp
lib/puppet/stdlib/types/port/unprivileged.pp
+1
-0
lib/puppet/stdlib/types/port/user.pp
lib/puppet/stdlib/types/port/user.pp
+1
-0
lib/puppet/stdlib/types/syslogfacility.pp
lib/puppet/stdlib/types/syslogfacility.pp
+26
-0
lib/puppet/stdlib/types/unixpath.pp
lib/puppet/stdlib/types/unixpath.pp
+2
-0
lib/puppet/stdlib/types/windowspath.pp
lib/puppet/stdlib/types/windowspath.pp
+1
-0
lib/puppet/stdlib/types/yes_no.pp
lib/puppet/stdlib/types/yes_no.pp
+1
-0
No files found.
lib/puppet/stdlib/types/ip/address/v6/nosubnet/alternative.pp
0 → 100644
View file @
1042df79
# lint:ignore:140chars
type
Stdlib
::
IP
::
Address
::
V6
::
Nosubnet
::
Alternative
=
Pattern
[
/
\
A
([[:
xdigit
:]]{
1
,
4
}:){
6
}([
0
-
9
]|[
1
-
9
][
0
-
9
]|
1
[
0
-
9
]{
2
}|
2
[
0
-
4
][
0
-
9
]|
25
[
0
-
5
])(
\
.
([
0
-
9
]|[
1
-
9
][
0
-
9
]|
1
[
0
-
9
]{
2
}|
2
[
0
-
4
][
0
-
9
]|
25
[
0
-
5
])){
3
}
\
z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
5
}
:
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])(
\.
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])){
3
}
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
4
}(
:
[
[:xdigit:
]
]
{
1,4
}){
0,1
}
:
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])(
\.
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])){
3
}
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
3
}(
:
[
[:xdigit:
]
]
{
1,4
}){
0,2
}
:
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])(
\.
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])){
3
}
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
2
}(
:
[
[:xdigit:
]
]
{
1,4
}){
0,3
}
:
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])(
\.
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])){
3
}
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
1
}(
:
[
[:xdigit:
]
]
{
1,4
}){
0,4
}
:
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])(
\.
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])){
3
}
\z
/
,
/
\A
:
(
:
[
[:xdigit:
]
]
{
1,4
}){
0,5
}
:
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])(
\.
([
0
-
9
]
|
[
1
-
9
][
0
-
9
]
|1
[
0
-
9
]{
2
}
|2
[
0
-
4
][
0
-
9
]
|25
[
0
-
5
])){
3
}
\z
/
,
]
# lint:endignore
lib/puppet/stdlib/types/ip/address/v6/nosubnet/compressed.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
IP
::
Address
::
V6
::
Nosubnet
::
Compressed
=
Pattern
[
/
\
A
:(:|(:[[:
xdigit
:]]{
1
,
4
}){
1
,
7
})
\
z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
1
}(
:|
(
:
[
[:xdigit:
]
]
{
1,4
}){
1,6
})
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
2
}(
:|
(
:
[
[:xdigit:
]
]
{
1,4
}){
1,5
})
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
3
}(
:|
(
:
[
[:xdigit:
]
]
{
1,4
}){
1,4
})
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
4
}(
:|
(
:
[
[:xdigit:
]
]
{
1,4
}){
1,3
})
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
5
}(
:|
(
:
[
[:xdigit:
]
]
{
1,4
}){
1,2
})
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
6
}(
:|
(
:
[
[:xdigit:
]
]
{
1,4
}){
1,1
})
\z
/
,
/
\A
([
[:xdigit:
]
]
{
1,4
}
:
){
7
}
:
\z
/
,
]
lib/puppet/stdlib/types/ip/address/v6/nosubnet/full.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
IP
::
Address
::
V6
::
Nosubnet
::
Full
=
Pattern
[
/
\
A
[[:
xdigit
:]]{
1
,
4
}(:[[:
xdigit
:]]{
1
,
4
}){
7
}
\
z
/
]
lib/puppet/stdlib/types/mac.pp
0 → 100644
View file @
1042df79
# A type for a MAC address
type
Stdlib
::
MAC
=
Pattern
[
/
\
A
([
0
-
9
A
-
Fa
-
f
]{
2
}[:
-
]){
5
}([
0
-
9
A
-
Fa
-
f
]{
2
})
\
z
/
,
/
\A
([
0
-
9A
-
Fa
-
f
]{
2
}[
:-
]){
19
}([
0
-
9A
-
Fa
-
f
]{
2
})
\z
/
,
]
lib/puppet/stdlib/types/objectstore.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
ObjectStore
=
Variant
[
Stdlib
::
ObjectStore
::
GSUri
,
Stdlib
::
ObjectStore
::
S3Uri
,
]
lib/puppet/stdlib/types/objectstore/gsuri.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
ObjectStore
::
GSUri
=
Pattern
[
/
\
Ags
:
\
/
\
/.*
\
z
/
]
lib/puppet/stdlib/types/objectstore/s3uri.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
ObjectStore
::
S3Uri
=
Pattern
[
/
\
As3
:
\
/
\
/.*
\
z
/
]
lib/puppet/stdlib/types/port.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
=
Integer
[
0
,
65535
]
lib/puppet/stdlib/types/port/dynamic.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
::
Dynamic
=
Integer
[
49152
,
65535
]
lib/puppet/stdlib/types/port/ephemeral.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
::
Ephemeral
=
Stdlib
::
Port
::
Dynamic
lib/puppet/stdlib/types/port/privileged.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
::
Privileged
=
Integer
[
1
,
1023
]
lib/puppet/stdlib/types/port/registered.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
::
Registered
=
Stdlib
::
Port
::
User
lib/puppet/stdlib/types/port/unprivileged.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
::
Unprivileged
=
Integer
[
1024
,
65535
]
lib/puppet/stdlib/types/port/user.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Port
::
User
=
Integer
[
1024
,
49151
]
lib/puppet/stdlib/types/syslogfacility.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Syslogfacility
=
Enum
[
'kern'
,
'user'
,
'mail'
,
'daemon'
,
'auth'
,
'syslog'
,
'lpr'
,
'news'
,
'uucp'
,
'cron'
,
'authpriv'
,
'ftp'
,
'ntp'
,
'security'
,
'console'
,
'solaris-cron'
,
'local0'
,
'local1'
,
'local2'
,
'local3'
,
'local4'
,
'local5'
,
'local6'
,
'local7'
,
]
lib/puppet/stdlib/types/unixpath.pp
0 → 100644
View file @
1042df79
# this regex rejects any path component that does not start with "/" or is NUL
type
Stdlib
::
Unixpath
=
Pattern
[
/
\
A
\
/
([
^\
n
\
/
\
0
]
+
\
/*
)
*
\
z
/
]
lib/puppet/stdlib/types/windowspath.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Windowspath
=
Pattern
[
/
\
A
(([
a
-
zA
-
Z
]:[
\\\
/
])|([
\\\
/
][
\\\
/
][
^\\\
/
]
+
[
\\\
/
][
^\\\
/
]
+
)|([
\\\
/
][
\\\
/
]
\?
[
\\\
/
][
^\\\
/
]
+
))
.*
\
z
/
]
lib/puppet/stdlib/types/yes_no.pp
0 → 100644
View file @
1042df79
type
Stdlib
::
Yes_no
=
Pattern
[
/
\
A
(
?
i
:(
yes
|
no
))
\
z
/
]
Prev
1
…
10
11
12
13
14
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment