diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-12 07:17:35 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-12 07:20:21 +0100 |
commit | bf755c2d855e031e86880e2c821f8e6a1ccac9ba (patch) | |
tree | f8b179fce8d8d1c4c072977f8bdc9c5b7c36fdf7 /manifests | |
parent | Add profile non-laptop. (diff) | |
download | profiles-bf755c2d855e031e86880e2c821f8e6a1ccac9ba.tar.gz profiles-bf755c2d855e031e86880e2c821f8e6a1ccac9ba.tar.xz |
Rewrote profiles::remarkable
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/remarkable.pp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/manifests/remarkable.pp b/manifests/remarkable.pp index d88486f..3f9f73e 100644 --- a/manifests/remarkable.pp +++ b/manifests/remarkable.pp @@ -1,29 +1,21 @@ -define profiles::remarkable ( - String $prefix = '10.11.99', - String $addr = '2', +class profiles::remarkable ( + String $iface = 'usb0', ) { file_line { 'remarkable usb': ensure => present, path => '/etc/hosts', - line => "${prefix}.1 remarkable.usb", + line => '10.11.99.1 remarkable.usb remarkable', } - file_line { 'remarkable usb self': - ensure => present, - path => '/etc/hosts', - line => "${prefix}.${addr} host.usb", - } - - # TODO Shouldn't we just use DHCP as intended here? networking::networkd_instance { 'remarkable-usb': content => { 'Match' => { - 'Name' => 'enp3s0f0u4', + 'Name' => $iface, }, 'Network' => { 'Description' => 'Remarkable USB connection', - 'Address' => "${prefix}.${addr}/29", + 'DHCP' => 'ipv4', }, }, } |