Skip to content

Commit 39e1f59

Browse files
kenyonTheMeier
authored andcommitted
puppet-lint fix: indentation
1 parent 5a93063 commit 39e1f59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1863
-1827
lines changed

REFERENCE.md

Lines changed: 902 additions & 901 deletions
Large diffs are not rendered by default.

manifests/dropin_file.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@
4949
$full_filename = "${path}/${unit}.d/${filename}"
5050

5151
if $ensure != 'absent' {
52-
ensure_resource('file', dirname($full_filename), {
52+
ensure_resource('file', dirname($full_filename),
53+
{
5354
ensure => directory,
5455
owner => 'root',
5556
group => 'root',
5657
recurse => $systemd::purge_dropin_dirs,
5758
purge => $systemd::purge_dropin_dirs,
5859
selinux_ignore_defaults => $selinux_ignore_defaults,
59-
})
60+
},
61+
)
6062
}
6163

6264
file { $full_filename:

manifests/manage_dropin.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@
149149
show_diff => $show_diff,
150150
notify_service => $notify_service,
151151
daemon_reload => $daemon_reload,
152-
content => epp('systemd/unit_file.epp', {
152+
content => epp('systemd/unit_file.epp',
153+
{
153154
'unit_entry' => $unit_entry,
154155
'slice_entry' => $slice_entry,
155156
'service_entry' => $service_entry,
@@ -159,6 +160,7 @@
159160
'socket_entry' => $socket_entry,
160161
'mount_entry' => $mount_entry,
161162
'swap_entry' => $swap_entry,
162-
}),
163+
},
164+
),
163165
}
164166
}

manifests/manage_unit.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@
222222
service_parameters => $service_parameters,
223223
daemon_reload => $daemon_reload,
224224
service_restart => $service_restart,
225-
content => epp('systemd/unit_file.epp', {
225+
content => epp('systemd/unit_file.epp',
226+
{
226227
'unit_entry' => $unit_entry,
227228
'slice_entry' => $slice_entry,
228229
'service_entry' => $service_entry,
@@ -232,6 +233,7 @@
232233
'socket_entry' => $socket_entry,
233234
'mount_entry' => $mount_entry,
234235
'swap_entry' => $swap_entry,
235-
}),
236+
},
237+
),
236238
}
237239
}

manifests/networkd/interface.pp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
#
8888
# Creates a dummy interface, on the file system, two files
8989
# are created therefore.
90-
#
90+
#
9191
define systemd::networkd::interface (
9292
Systemd::Interface $interface,
9393
Stdlib::Absolutepath $path = '/etc/systemd/network',
@@ -107,28 +107,34 @@
107107
if 'link' in $interface.keys() {
108108
systemd::network { "${_filename}.link":
109109
path => $path,
110-
content => epp('systemd/network.epp', {
110+
content => epp('systemd/network.epp',
111+
{
111112
fname => "${_filename}.link",
112113
config => deep_merge($link_profile, $interface['link']),
113-
}),
114+
},
115+
),
114116
}
115117
}
116118
if 'netdev' in $interface.keys() {
117119
systemd::network { "${_filename}.netdev":
118120
path => $path,
119-
content => epp('systemd/network.epp', {
121+
content => epp('systemd/network.epp',
122+
{
120123
fname => "${_filename}.netdev",
121124
config => deep_merge($netdev_profile, $interface['netdev']),
122-
}),
125+
},
126+
),
123127
}
124128
}
125129
if 'network' in $interface.keys() {
126130
systemd::network { "${_filename}.network":
127131
path => $path,
128-
content => epp('systemd/network.epp', {
132+
content => epp('systemd/network.epp',
133+
{
129134
fname => "${_filename}.network",
130135
config => deep_merge($network_profile, $interface['network']),
131-
}),
136+
},
137+
),
132138
}
133139
}
134140
}

manifests/udevd.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
owner => 'root',
2121
group => 'root',
2222
mode => '0444',
23-
content => epp("${module_name}/udev_conf.epp", {
23+
content => epp("${module_name}/udev_conf.epp",
24+
{
2425
'udev_log' => $systemd::udev_log,
2526
'udev_children_max' => $systemd::udev_children_max,
2627
'udev_exec_delay' => $systemd::udev_exec_delay,
2728
'udev_event_timeout' => $systemd::udev_event_timeout,
2829
'udev_resolve_names' => $systemd::udev_resolve_names,
2930
'udev_timeout_signal' => $systemd::udev_timeout_signal,
30-
}),
31+
},
32+
),
3133
notify => Service['systemd-udevd'],
3234
}
3335

types/interface.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# network interface definition
2-
type Systemd::Interface = Struct[{
2+
type Systemd::Interface = Struct[
3+
{
34
filename => Optional[String[1]],
45
network => Optional[Systemd::Interface::Network],
56
netdev => Optional[Systemd::Interface::Netdev],
67
link => Optional[Systemd::Interface::Link],
7-
}]
8+
}
9+
]

types/interface/link.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# @summary Network device configuration(Link)
22
# @see https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html
33
type Systemd::Interface::Link = Struct[{
4-
'Match' => Optional[Systemd::Interface::Link::Match],
5-
'Link' => Optional[Systemd::Interface::Link::Link],
6-
'SR-IOV' => Optional[Systemd::Interface::Link::Sr_iov],
4+
'Match' => Optional[Systemd::Interface::Link::Match],
5+
'Link' => Optional[Systemd::Interface::Link::Link],
6+
'SR-IOV' => Optional[Systemd::Interface::Link::Sr_iov],
77
}]

types/interface/link/link.pp

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
11
# @summary Network device configuration(Link) Link section definition
22
# @see https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html
33
type Systemd::Interface::Link::Link = Struct[{
4-
'Description' => Optional[String[1]],
5-
'Property' => Optional[String[1]],
6-
'ImportProperty' => Optional[String[1]],
7-
'UnsetProperty' => Optional[String[1]],
8-
'Alias' => Optional[String[1]],
9-
'MACAddressPolicy' => Optional[Enum['persistent', 'random', 'none', '']],
10-
'MACAddress' => Optional[String[1]],
11-
'NamePolicy' => Optional[Enum[
12-
'kernel', 'database', 'onboard', 'slot',
13-
'path', 'mac', 'keep'
14-
]],
15-
'Name' => Optional[String[1]],
16-
'AlternativeNamesPolicy' => Optional[String[1]],
17-
'AlternativeName' => Optional[String[1]],
18-
'TransmitQueues' => Optional[Integer[1,4096]],
19-
'ReceiveQueues' => Optional[Integer[1,4096]],
20-
'TransmitQueueLength' => Optional[Integer[0, 4294967294]],
21-
'MTUBytes' => Optional[Integer[1280]],
22-
'BitsPerSecond' => Optional[String[1]],
23-
'Duplex' => Optional[String[1]],
24-
'AutoNegotiation' => Optional[Enum['yes','no']],
25-
'WakeOnLan' => Optional[Enum[
26-
'phy', 'unicast', 'multicast', 'broadcast',
27-
'arp', 'magic', 'secureon'
28-
]],
29-
'WakeOnLanPassword' => Optional[String[1]],
30-
'Port' => Optional[Enum['tp', 'aui', 'bnc', 'mii', 'fibre']],
31-
'Advertise' => Optional[Variant[
32-
Systemd::Interface::Link::Link_advertise,
33-
Array[Systemd::Interface::Link::Link_advertise]
34-
]],
35-
'ReceiveChecksumOffload' => Optional[Enum['yes','no']],
36-
'TransmitChecksumOffload' => Optional[Enum['yes','no']],
37-
'TCPSegmentationOffload' => Optional[Enum['yes','no']],
38-
'TCP6SegmentationOffload' => Optional[Enum['yes','no']],
39-
'GenericSegmentationOffload' => Optional[Enum['yes','no']],
40-
'GenericReceiveOffload' => Optional[Enum['yes','no']],
41-
'LargeReceiveOffload' => Optional[Enum['yes','no']],
42-
'ReceivePacketSteeringCPUMask' => Optional[String[1]],
43-
'ReceiveVLANCTAGHardwareAcceleration' => Optional[Enum['yes','no']],
44-
'TransmitVLANCTAGHardwareAcceleration'=> Optional[Enum['yes','no']],
45-
'ReceiveVLANCTAGFilter' => Optional[Enum['yes','no']],
46-
'TransmitVLANSTAGHardwareAcceleration'=> Optional[Enum['yes','no']],
47-
'NTupleFilter' => Optional[Enum['yes','no']],
48-
'RxChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
49-
'TxChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
50-
'OtherChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
51-
'CombinedChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
52-
'RxBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
53-
'RxMiniBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
54-
'RxJumboBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
55-
'TxBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
56-
'RxFlowControl' => Optional[Enum['yes','no']],
57-
'TxFlowControl' => Optional[Enum['yes','no']],
58-
'AutoNegotiationFlowControl' => Optional[Enum['yes','no']],
59-
'GenericSegmentOffloadMaxBytes' => Optional[String[1]],
60-
'GenericSegmentOffloadMaxSegments' => Optional[Integer[1, 65535]],
61-
'UseAdaptiveRxCoalesce' => Optional[Enum['yes','no']],
62-
'UseAdaptiveTxCoalesce' => Optional[Enum['yes','no']],
63-
'RxCoalesceSec' => Optional[Integer],
64-
'RxCoalesceIrqSec' => Optional[Integer],
65-
'RxCoalesceLowSec' => Optional[Integer],
66-
'RxCoalesceHighSec' => Optional[Integer],
67-
'TxCoalesceSec' => Optional[Integer],
68-
'TxCoalesceIrqSec' => Optional[Integer],
69-
'TxCoalesceLowSec' => Optional[Integer],
70-
'TxCoalesceHighSec' => Optional[Integer],
71-
'RxMaxCoalescedFrames' => Optional[Integer],
72-
'RxMaxCoalescedIrqFrames' => Optional[Integer],
73-
'RxMaxCoalescedLowFrames' => Optional[Integer],
74-
'RxMaxCoalescedHighFrames' => Optional[Integer],
75-
'TxMaxCoalescedFrames' => Optional[Integer],
76-
'TxMaxCoalescedIrqFrames' => Optional[Integer],
77-
'TxMaxCoalescedLowFrames' => Optional[Integer],
78-
'TxMaxCoalescedHighFrames' => Optional[Integer],
79-
'CoalescePacketRateLow' => Optional[Integer],
80-
'CoalescePacketRateHigh' => Optional[Integer],
81-
'CoalescePacketRateSampleIntervalSec' => Optional[Integer],
82-
'StatisticsBlockCoalesceSec' => Optional[Integer[1]],
83-
'MDI' => Optional[Enum['straight', 'mdi', 'crossover', 'mdi-x', 'mdix', 'auto']],
84-
'SR_IOVVirtualFunctions' => Optional[Integer[0, 2147483647]],
4+
'Description' => Optional[String[1]],
5+
'Property' => Optional[String[1]],
6+
'ImportProperty' => Optional[String[1]],
7+
'UnsetProperty' => Optional[String[1]],
8+
'Alias' => Optional[String[1]],
9+
'MACAddressPolicy' => Optional[Enum['persistent', 'random', 'none', '']],
10+
'MACAddress' => Optional[String[1]],
11+
'NamePolicy' => Optional[Enum[
12+
'kernel', 'database', 'onboard', 'slot',
13+
'path', 'mac', 'keep'
14+
]],
15+
'Name' => Optional[String[1]],
16+
'AlternativeNamesPolicy' => Optional[String[1]],
17+
'AlternativeName' => Optional[String[1]],
18+
'TransmitQueues' => Optional[Integer[1,4096]],
19+
'ReceiveQueues' => Optional[Integer[1,4096]],
20+
'TransmitQueueLength' => Optional[Integer[0, 4294967294]],
21+
'MTUBytes' => Optional[Integer[1280]],
22+
'BitsPerSecond' => Optional[String[1]],
23+
'Duplex' => Optional[String[1]],
24+
'AutoNegotiation' => Optional[Enum['yes','no']],
25+
'WakeOnLan' => Optional[Enum[
26+
'phy', 'unicast', 'multicast', 'broadcast',
27+
'arp', 'magic', 'secureon'
28+
]],
29+
'WakeOnLanPassword' => Optional[String[1]],
30+
'Port' => Optional[Enum['tp', 'aui', 'bnc', 'mii', 'fibre']],
31+
'Advertise' => Optional[Variant[
32+
Systemd::Interface::Link::Link_advertise,
33+
Array[Systemd::Interface::Link::Link_advertise]
34+
]],
35+
'ReceiveChecksumOffload' => Optional[Enum['yes','no']],
36+
'TransmitChecksumOffload' => Optional[Enum['yes','no']],
37+
'TCPSegmentationOffload' => Optional[Enum['yes','no']],
38+
'TCP6SegmentationOffload' => Optional[Enum['yes','no']],
39+
'GenericSegmentationOffload' => Optional[Enum['yes','no']],
40+
'GenericReceiveOffload' => Optional[Enum['yes','no']],
41+
'LargeReceiveOffload' => Optional[Enum['yes','no']],
42+
'ReceivePacketSteeringCPUMask' => Optional[String[1]],
43+
'ReceiveVLANCTAGHardwareAcceleration' => Optional[Enum['yes','no']],
44+
'TransmitVLANCTAGHardwareAcceleration'=> Optional[Enum['yes','no']],
45+
'ReceiveVLANCTAGFilter' => Optional[Enum['yes','no']],
46+
'TransmitVLANSTAGHardwareAcceleration'=> Optional[Enum['yes','no']],
47+
'NTupleFilter' => Optional[Enum['yes','no']],
48+
'RxChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
49+
'TxChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
50+
'OtherChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
51+
'CombinedChannels' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
52+
'RxBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
53+
'RxMiniBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
54+
'RxJumboBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
55+
'TxBufferSize' => Optional[Variant[Enum['max'],Integer[1,4294967295]]],
56+
'RxFlowControl' => Optional[Enum['yes','no']],
57+
'TxFlowControl' => Optional[Enum['yes','no']],
58+
'AutoNegotiationFlowControl' => Optional[Enum['yes','no']],
59+
'GenericSegmentOffloadMaxBytes' => Optional[String[1]],
60+
'GenericSegmentOffloadMaxSegments' => Optional[Integer[1, 65535]],
61+
'UseAdaptiveRxCoalesce' => Optional[Enum['yes','no']],
62+
'UseAdaptiveTxCoalesce' => Optional[Enum['yes','no']],
63+
'RxCoalesceSec' => Optional[Integer],
64+
'RxCoalesceIrqSec' => Optional[Integer],
65+
'RxCoalesceLowSec' => Optional[Integer],
66+
'RxCoalesceHighSec' => Optional[Integer],
67+
'TxCoalesceSec' => Optional[Integer],
68+
'TxCoalesceIrqSec' => Optional[Integer],
69+
'TxCoalesceLowSec' => Optional[Integer],
70+
'TxCoalesceHighSec' => Optional[Integer],
71+
'RxMaxCoalescedFrames' => Optional[Integer],
72+
'RxMaxCoalescedIrqFrames' => Optional[Integer],
73+
'RxMaxCoalescedLowFrames' => Optional[Integer],
74+
'RxMaxCoalescedHighFrames' => Optional[Integer],
75+
'TxMaxCoalescedFrames' => Optional[Integer],
76+
'TxMaxCoalescedIrqFrames' => Optional[Integer],
77+
'TxMaxCoalescedLowFrames' => Optional[Integer],
78+
'TxMaxCoalescedHighFrames' => Optional[Integer],
79+
'CoalescePacketRateLow' => Optional[Integer],
80+
'CoalescePacketRateHigh' => Optional[Integer],
81+
'CoalescePacketRateSampleIntervalSec' => Optional[Integer],
82+
'StatisticsBlockCoalesceSec' => Optional[Integer[1]],
83+
'MDI' => Optional[Enum['straight', 'mdi', 'crossover', 'mdi-x', 'mdix', 'auto']],
84+
'SR_IOVVirtualFunctions' => Optional[Integer[0, 2147483647]],
8585
}]

types/interface/link/match.pp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# @summary Network device configuration(Link) Match section definition
22
# @see https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html
33
type Systemd::Interface::Link::Match = Struct[{
4-
'Name' => Optional[String[1]],
5-
'MACAddress' => Optional[String[1]],
6-
'PermanentMACAddress' => Optional[String[1]],
7-
'Path' => Optional[String[1]],
8-
'Driver' => Optional[String[1]],
9-
'Type' => Optional[String[1]],
10-
'Kind' => Optional[String[1]],
11-
'Property' => Optional[String[1]],
12-
'OriginalName' => Optional[String[1]],
13-
'SSID' => Optional[String[1]],
14-
'BSSID' => Optional[String[1]],
15-
'Host' => Optional[String[1]],
16-
'Virtualization' => Optional[String[1]],
17-
'KernelCommandLine' => Optional[String[1]],
18-
'KernelVersion' => Optional[String[1]],
19-
'Credential' => Optional[String[1]],
20-
'Architecture' => Optional[String[1]],
21-
'Firmware' => Optional[String[1]],
4+
'Name' => Optional[String[1]],
5+
'MACAddress' => Optional[String[1]],
6+
'PermanentMACAddress' => Optional[String[1]],
7+
'Path' => Optional[String[1]],
8+
'Driver' => Optional[String[1]],
9+
'Type' => Optional[String[1]],
10+
'Kind' => Optional[String[1]],
11+
'Property' => Optional[String[1]],
12+
'OriginalName' => Optional[String[1]],
13+
'SSID' => Optional[String[1]],
14+
'BSSID' => Optional[String[1]],
15+
'Host' => Optional[String[1]],
16+
'Virtualization' => Optional[String[1]],
17+
'KernelCommandLine' => Optional[String[1]],
18+
'KernelVersion' => Optional[String[1]],
19+
'Credential' => Optional[String[1]],
20+
'Architecture' => Optional[String[1]],
21+
'Firmware' => Optional[String[1]],
2222
}]

0 commit comments

Comments
 (0)