aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2016-02-29 00:30:42 +0100
committerOlivier Blin <dev@blino.org>2016-02-29 00:33:25 +0100
commit34e9567788c82dbbc4c4a2b7e0eae227792ffe7b (patch)
tree85d8d9a8bd15dc434290a9bf71f5a48a87494624 /modules
parent3f2971e27deba8fd5fcf51fa50e3bd3e7acb54c9 (diff)
downloadpuppet-34e9567788c82dbbc4c4a2b7e0eae227792ffe7b.tar
puppet-34e9567788c82dbbc4c4a2b7e0eae227792ffe7b.tar.gz
puppet-34e9567788c82dbbc4c4a2b7e0eae227792ffe7b.tar.bz2
puppet-34e9567788c82dbbc4c4a2b7e0eae227792ffe7b.tar.xz
puppet-34e9567788c82dbbc4c4a2b7e0eae227792ffe7b.zip
nable serial console on ttyS0 for all Scaleway nodes
Add a serial_console puppet module for this. This ensures that a serial getty is started for ttyS0 even if there is no console=ttyS0 argument on kernel command line. Also see http://0pointer.de/blog/projects/serial-console.html
Diffstat (limited to 'modules')
-rw-r--r--modules/serial_console/manifests/init.pp1
-rw-r--r--modules/serial_console/manifests/serial_console.pp8
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/serial_console/manifests/init.pp b/modules/serial_console/manifests/init.pp
new file mode 100644
index 00000000..b6716954
--- /dev/null
+++ b/modules/serial_console/manifests/init.pp
@@ -0,0 +1 @@
+class serial_console {}
diff --git a/modules/serial_console/manifests/serial_console.pp b/modules/serial_console/manifests/serial_console.pp
new file mode 100644
index 00000000..dd68c84c
--- /dev/null
+++ b/modules/serial_console/manifests/serial_console.pp
@@ -0,0 +1,8 @@
+# name: ttyS0
+define serial_console::serial_console() {
+ service { "serial-getty@${name}":
+ provider => systemd,
+ ensure => running,
+ enable => true,
+ }
+}