diff options
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 { [] }, |