summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schlüter <bschlueter@posteo.de>2018-12-11 15:57:04 +0100
committerBenjamin Schlüter <bschlueter@posteo.de>2018-12-11 15:57:04 +0100
commit89071a883300665e2b9a0b407e545b8ccd651485 (patch)
tree4d70919ef6862123934869e3721780885b862fbf
parent03df051f9cb3d862857b642dea11df5040f9f0ef (diff)
downloadpuppet.KATH-89071a883300665e2b9a0b407e545b8ccd651485.zip
puppet.KATH-89071a883300665e2b9a0b407e545b8ccd651485.tar.gz
puppet.KATH-89071a883300665e2b9a0b407e545b8ccd651485.tar.bz2
Add class lsb_release_with_version.
-rw-r--r--code/environments/production/manifests/site.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp
index 61ca583..87afe3c 100644
--- a/code/environments/production/manifests/site.pp
+++ b/code/environments/production/manifests/site.pp
@@ -53,6 +53,17 @@ class ssh_pubkeys_backupserver {
}
}
+class lsb_release_with_version {
+ file { '/etc/lsb-release':
+ ensure => present,
+ }
+ file_line { 'lsb-release-with-version':
+ path => '/etc/lsb-release',
+ line => "DISTRIB_DESCRIPTION=Debian Edu / Skolelinux ${::operatingsystemrelease}",
+ match => "^DISTRIB_DESCRIPTION=DebianEdu/Skolelinux$",
+ }
+}
+
class anacron_on_battery {
file_line { 'anacron-on-battery':
path => '/etc/default/anacron',
@@ -158,6 +169,7 @@ class fsautoresizetab_change_usr {
# class { 'ssh_pubkeys_firedadmins': }
# class { 'login_manager': }
# class { 'itzks-systems-common': }
+# class { 'lsb_release_with_version': }
#
# # settings appropriate for workstation hosts
# class { 'apt::unattended_upgrades':
@@ -187,6 +199,7 @@ class fsautoresizetab_change_usr {
# class { 'ssh_pubkeys_backupserver': }
# class { 'itzks_systems_workstation': }
# class { 'itzks_systems_common': }
+# class { 'lsb_release_with_version': }
#}
node "disklserver.intern" {
@@ -201,6 +214,7 @@ node "disklserver.intern" {
key => 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDiLGbx/U9slB9db8PAy8FTRo7/avVvLJUOZzkoBxZa5Edeo+74ezoU2Kv1OxcRJRnSGBe41XDcpLxDS04JMA5xBddUfdq5c+Y1A2SYChUPK1fkrGoKfmGC60dFmEqAQZ33dJhN9rxzQvuvxlmexX8x2TYJC8/jATa+6QuO4chHAFvGo9RLs8hzet5y06fammJDkf0yD6R32GT7q4XMNXilKQ564D1yBJygE6vZx/W3V3l8/QMr6m1lYTTk+W+29IkoxvQBZ6YXKFdnuTVkSYyanafjZwznTFSuBtBZKcgLXFFmyplcB4QlZGvdrrsEJazwwj+pnJeGx0HwV8ePbKxN',
user => 'root',
}
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -221,6 +235,7 @@ node "tjener.intern" {
class { 'ssh_pubkeys_backupserver': }
class { 'itzks_systems_mainserver': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -241,6 +256,7 @@ node "filter.intern" {
class { 'ssh_pubkeys_backupserver': }
class { 'itzks_systems_filter': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -261,6 +277,7 @@ node "contentserver.intern" {
class { 'ssh_pubkeys_firedadmins': }
class { 'ssh_pubkeys_backupserver': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -279,6 +296,7 @@ node "devserver.intern" {
class { 'ssh_pubkeys_firedadmins': }
class { 'ssh_pubkeys_backupserver': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -297,6 +315,7 @@ node "bibserv.intern" {
class { 'ssh_pubkeys_firedadmins': }
class { 'ssh_pubkeys_backupserver': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -322,6 +341,7 @@ node /^mw.*\.intern$/ {
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -343,6 +363,7 @@ node /^nbw.*\.intern$/ {
class { 'login_manager': }
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -364,6 +385,7 @@ node /^net.*\.intern$/ {
class { 'login_manager': }
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -385,6 +407,7 @@ node /^snb.*\.intern$/ {
class { 'login_manager': }
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -406,6 +429,7 @@ node /^t410.*\.intern$/ {
class { 'login_manager': }
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -427,6 +451,7 @@ node /^t61.*\.intern$/ {
class { 'login_manager': }
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -448,6 +473,7 @@ node /^tp.*\.intern$/ {
class { 'login_manager': }
class { 'itzks_systems_workstation': }
class { 'itzks_systems_common': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,
@@ -467,6 +493,7 @@ node /^tp.*\.intern$/ {
node "default" {
class { 'ssh_pubkeys_admins': }
class { 'ssh_pubkeys_firedadmins': }
+ class { 'lsb_release_with_version': }
class { 'unattended_upgrades':
enable => 1,
origins => $apt_origins,