diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-05-03 15:58:58 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-05-03 15:58:58 +0200 |
commit | 4b4b4fea14363f6a7e7d1c8761d4557053fd6364 (patch) | |
tree | 27410138084a6e225e1c80c95a4c4f6fe77838a2 /manifests/networkd_instance.pp | |
parent | Fix repack function. (diff) | |
download | networking-4b4b4fea14363f6a7e7d1c8761d4557053fd6364.tar.gz networking-4b4b4fea14363f6a7e7d1c8761d4557053fd6364.tar.xz |
work
Diffstat (limited to 'manifests/networkd_instance.pp')
-rw-r--r-- | manifests/networkd_instance.pp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/manifests/networkd_instance.pp b/manifests/networkd_instance.pp index 07465b6..651f8ce 100644 --- a/manifests/networkd_instance.pp +++ b/manifests/networkd_instance.pp @@ -9,11 +9,26 @@ define networking::networkd_instance ( String $file = "${path}/${real_filename}", ) { - include ::networking::networkd + require ::networking::networkd file { $file: ensure => $ensure, + owner => 'systemd-network', 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), }), notify => if $networking::networkd::notify_ { Exec['reload networkd'] } else { [] }, |