summaryrefslogtreecommitdiff
path: root/manifests/networkd_instance.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/networkd_instance.pp')
-rw-r--r--manifests/networkd_instance.pp31
1 files changed, 15 insertions, 16 deletions
diff --git a/manifests/networkd_instance.pp b/manifests/networkd_instance.pp
index 8a2693d..cbad0a2 100644
--- a/manifests/networkd_instance.pp
+++ b/manifests/networkd_instance.pp
@@ -9,27 +9,26 @@ define networking::networkd_instance (
String $file = "${path}/${real_filename}",
Optional[String] $mode = undef,
) {
-
file { $file:
ensure => $ensure,
owner => 'systemd-network',
mode => $mode,
content => epp('networking/unit_file.epp', {
- # Keys are unit file sections
- # Values are list of section content, so
- # {
- # 'Section' => [
- # {
- # 'key': 'value',
- # 'mvalued': ['v1', 'v2'],
- # }
- # ]
- # }
- # [Section]
- # key=value
- # mvalued=v1
- # mvalued=v2
- data => networking::repack($content),
+ # Keys are unit file sections
+ # Values are list of section content, so
+ # {
+ # 'Section' => [
+ # {
+ # 'key': 'value',
+ # 'mvalued': ['v1', 'v2'],
+ # }
+ # ]
+ # }
+ # [Section]
+ # key=value
+ # mvalued=v1
+ # mvalued=v2
+ data => networking::repack($content),
}),
notify => if $networking::networkd::notify_ { Exec['reload networkd'] } else { [] },
}