summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-12 07:17:35 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-12 07:20:21 +0100
commitbf755c2d855e031e86880e2c821f8e6a1ccac9ba (patch)
treef8b179fce8d8d1c4c072977f8bdc9c5b7c36fdf7 /manifests
parentAdd profile non-laptop. (diff)
downloadprofiles-bf755c2d855e031e86880e2c821f8e6a1ccac9ba.tar.gz
profiles-bf755c2d855e031e86880e2c821f8e6a1ccac9ba.tar.xz
Rewrote profiles::remarkable
Diffstat (limited to 'manifests')
-rw-r--r--manifests/remarkable.pp18
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',
},
},
}