puppet-systemd icon indicating copy to clipboard operation
puppet-systemd copied to clipboard

add manage_network to manage networks in code

Open rwaffen opened this issue 2 years ago • 1 comments

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 avatar Apr 25 '23 17:04 rwaffen

@rwaffen are you still working on this ?

trefzer avatar Oct 29 '24 15:10 trefzer

no, not working on it anymore...

rwaffen avatar Feb 04 '25 09:02 rwaffen