Skip to content

Commit a332eaa

Browse files
committed
add Stdlib::Syslogfacility type
1 parent b0dd4c1 commit a332eaa

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,10 @@ Match an IPv6 address which may contain `::` used to compress zeros as documente
670670
Match an IPv6 address in the CIDR format. It will only match if the address contains an address prefix (for example, it will match 'FF01:0:0:0:0:0:0:101/32', 'FF01::101/60', '::/0',
671671
but not 'FF01:0:0:0:0:0:0:101', 'FF01::101', '::').
672672

673+
#### `Stdlib::Syslogfacility`
674+
675+
An enum that defines all syslog facilities defined in [RFC5424](https://tools.ietf.org/html/rfc5424). This is based on work in the [voxpupuli/nrpe](https://github.com/voxpupuli/puppet-nrpe/commit/5700fd4f5bfc3e237195c8833039f9ed1045cd6b) module.
676+
673677
<a id="facts"></a>
674678
### Facts
675679

types/syslogfacility.pp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
type Stdlib::Syslogfacility = Enum[
2+
'user',
3+
'mail',
4+
'daemon',
5+
'auth',
6+
'syslog',
7+
'lpr',
8+
'news',
9+
'uucp',
10+
'cron',
11+
'authpriv',
12+
'ftp',
13+
'ntp',
14+
'security',
15+
'console',
16+
'solaris-cron',
17+
'local0',
18+
'local1',
19+
'local2',
20+
'local3',
21+
'local4',
22+
'local5',
23+
'local6',
24+
'local7',
25+
'kern'
26+
]

0 commit comments

Comments
 (0)