puppet-systemd
puppet-systemd copied to clipboard
add manage_network to manage networks in code
add manage_network so that one can define networks in code like one can do it with unit_files and manage_unit.
missing:
- maybe more complex types to check the *_entry in manage_network like in manage_unit.
- assert_Type does somehow not work in my local tests (Says its expecting a Resource Statement but got String)
early tests with code like this seem to work
include systemd
systemd::manage_network { 'myhome.network':
match_entry => {
'Name' => 'enp0s8',
},
network_entry => {
'Address' => '10.1.1.1/24',
'Gateway' => '10.1.1.1',
},
address_entry => {
'Address' => '10.1.1.2',
},
}
@rwaffen are you still working on this ?
no, not working on it anymore...