Skip to content

Commit

Permalink
Move lint control statements out of documentation (#172)
Browse files Browse the repository at this point in the history
* Move lint control statements out of documentation

Otherwise the lint control statements end up in REFERENCE.md.

* Regenerate REFERENCE.md
  • Loading branch information
ekohl authored Jan 14, 2021
1 parent a07560b commit 5de1526
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ Data type: `Systemd::LogindSettings`

Config Hash that is used to configure settings in logind.conf

##### `loginctl_users`

Data type: `Hash`

Config Hash that is used to generate instances of our type
`loginctl_user`.

Default value: `{}`

##### `dropin_files`

Data type: `Hash`
Expand Down Expand Up @@ -912,7 +921,7 @@ Alias of `Struct[{

The Systemd::JournaldSettings::Ensure data type.

Alias of `Struct[{'ensure' => Enum['present','absent']}]`
Alias of `Struct[{ 'ensure' => Enum['present','absent'] }]`

### `Systemd::LogindSettings`

Expand Down Expand Up @@ -949,7 +958,7 @@ Alias of `Struct[{

The Systemd::LogindSettings::Ensure data type.

Alias of `Struct[{'ensure' => Enum['present','absent']}]`
Alias of `Struct[{ 'ensure' => Enum['present','absent'] }]`

### `Systemd::ServiceLimits`

Expand Down
4 changes: 2 additions & 2 deletions types/journaldsettings.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Matches Systemd journald config Struct
# lint:ignore:140chars
type Systemd::JournaldSettings = Struct[
# lint:ignore:140chars
{
Optional['Storage'] => Variant[Enum['volatile','persistent','auto','none'],Systemd::JournaldSettings::Ensure],
Optional['Compress'] => Variant[Enum['yes','no'], Pattern[/^[0-9]+(K|M|G)?$/],Systemd::JournaldSettings::Ensure],
Expand Down Expand Up @@ -33,5 +33,5 @@
Optional['TTYPath'] => Variant[Stdlib::Absolutepath,Systemd::JournaldSettings::Ensure],
Optional['LineMax'] => Variant[Pattern[/^[0-9]+(K|M|G|T)?$/],Systemd::JournaldSettings::Ensure],
}
# lint:endignore
]
# lint:endignore
4 changes: 2 additions & 2 deletions types/logindsettings.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Matches Systemd Login Manager Struct
# lint:ignore:140chars
type Systemd::LogindSettings = Struct[
# lint:ignore:140chars
{
Optional['HandleHibernateKey'] => Variant[Enum['ignore','poweroff','reboot','halt','kexec','suspend','hibernate','hybrid-sleep','suspend-then-hibernate','lock'],Systemd::LogindSettings::Ensure],
Optional['HandleLidSwitch'] => Variant[Enum['ignore','poweroff','reboot','halt','kexec','suspend','hibernate','hybrid-sleep','suspend-then-hibernate','lock'],Systemd::LogindSettings::Ensure],
Expand All @@ -27,5 +27,5 @@
Optional['SuspendKeyIgnoreInhibited'] => Variant[Enum['yes','no'],Systemd::LogindSettings::Ensure],
Optional['UserTasksMax'] => Variant[Integer,Pattern['^(infinity|(\d+(K|M|G|T|P|E|%)?))$'],Systemd::LogindSettings::Ensure]
}
# lint:endignore
]
# lint:endignore

0 comments on commit 5de1526

Please sign in to comment.