aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manifests/nodes/armada.pp1
-rw-r--r--manifests/nodes/armagnac.pp1
-rw-r--r--manifests/nodes/armorique.pp1
-rw-r--r--modules/serial_console/manifests/init.pp1
-rw-r--r--modules/serial_console/manifests/serial_console.pp8
5 files changed, 12 insertions, 0 deletions
diff --git a/manifests/nodes/armada.pp b/manifests/nodes/armada.pp
index d4f7bd8a..2b85e28a 100644
--- a/manifests/nodes/armada.pp
+++ b/manifests/nodes/armada.pp
@@ -2,6 +2,7 @@ node armada {
# Location: Scaleway (Iliad/Online datacenter)
include common::default_mageia_server
timezone::timezone { 'Europe/Paris': }
+ serial_console::serial_console { 'ttyS0': }
include mga_buildsystem::buildnode
}
diff --git a/manifests/nodes/armagnac.pp b/manifests/nodes/armagnac.pp
index 2dc82f0d..27fa26fc 100644
--- a/manifests/nodes/armagnac.pp
+++ b/manifests/nodes/armagnac.pp
@@ -2,6 +2,7 @@ node armagnac {
# Location: Scaleway (Iliad/Online datacenter)
include common::default_mageia_server
timezone::timezone { 'Europe/Paris': }
+ serial_console::serial_console { 'ttyS0': }
include mga_buildsystem::buildnode
}
diff --git a/manifests/nodes/armorique.pp b/manifests/nodes/armorique.pp
index 0272cd61..0a50f9b6 100644
--- a/manifests/nodes/armorique.pp
+++ b/manifests/nodes/armorique.pp
@@ -2,6 +2,7 @@ node armorique {
# Location: Scaleway (Iliad/Online datacenter)
include common::default_mageia_server
timezone::timezone { 'Europe/Paris': }
+ serial_console::serial_console { 'ttyS0': }
include mga_buildsystem::buildnode
}
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,
+ }
+}