aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/files
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2017-08-24 02:22:17 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2017-08-29 22:46:14 +0200
commit7fed35a408b9ec37454169425823785b5fc8978b (patch)
tree28371d43ac304f99fb0a5305124858db69ef2137 /modules/base_installation/files
parentba2cf1b5d938810077b0fd73844faf432e8e8f9d (diff)
downloadPuppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.gz
Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.zst
Puppet-7fed35a408b9ec37454169425823785b5fc8978b.zip
Refactor base installation module
Diffstat (limited to 'modules/base_installation/files')
-rw-r--r--modules/base_installation/files/cronie/puppet-post-merge15
-rw-r--r--modules/base_installation/files/kernel_modules/pcspkr_no_autoload.conf1
-rw-r--r--modules/base_installation/files/package_managers/mirrorlist2
-rw-r--r--modules/base_installation/files/services/en-dhcp.network8
-rw-r--r--modules/base_installation/files/services/getty_conf_override.conf2
5 files changed, 28 insertions, 0 deletions
diff --git a/modules/base_installation/files/cronie/puppet-post-merge b/modules/base_installation/files/cronie/puppet-post-merge
new file mode 100644
index 0000000..ac5e3ff
--- /dev/null
+++ b/modules/base_installation/files/cronie/puppet-post-merge
@@ -0,0 +1,15 @@
1#!/bin/bash
2## Run Puppet locally using puppet apply
3git submodule update --init
4/usr/bin/puppet apply `pwd`/manifests/site.pp
5
6## Log status of the Puppet run
7if [ $? -eq 0 ]
8then
9 /usr/bin/logger -i "Puppet has run successfully" -t "puppet-run"
10 exit 0
11else
12 /usr/bin/logger -i "Puppet has ran into an error, please run Puppet manually" -t "puppet-run"
13 exit 1
14fi
15
diff --git a/modules/base_installation/files/kernel_modules/pcspkr_no_autoload.conf b/modules/base_installation/files/kernel_modules/pcspkr_no_autoload.conf
new file mode 100644
index 0000000..b46792e
--- /dev/null
+++ b/modules/base_installation/files/kernel_modules/pcspkr_no_autoload.conf
@@ -0,0 +1 @@
blacklist pcspkr
diff --git a/modules/base_installation/files/package_managers/mirrorlist b/modules/base_installation/files/package_managers/mirrorlist
new file mode 100644
index 0000000..2ffca7c
--- /dev/null
+++ b/modules/base_installation/files/package_managers/mirrorlist
@@ -0,0 +1,2 @@
1Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
2Server = http://mir.archlinux.fr/$repo/os/$arch
diff --git a/modules/base_installation/files/services/en-dhcp.network b/modules/base_installation/files/services/en-dhcp.network
new file mode 100644
index 0000000..6eef0e9
--- /dev/null
+++ b/modules/base_installation/files/services/en-dhcp.network
@@ -0,0 +1,8 @@
1[Match]
2Name=en*
3
4[Network]
5DHCP=yes
6
7[DHCP]
8UseMTU=true
diff --git a/modules/base_installation/files/services/getty_conf_override.conf b/modules/base_installation/files/services/getty_conf_override.conf
new file mode 100644
index 0000000..52671c7
--- /dev/null
+++ b/modules/base_installation/files/services/getty_conf_override.conf
@@ -0,0 +1,2 @@
1[Service]
2TTYVTDisallocate=no