changeset 447:1a9de0661666

Add missing package/dir for minimal Ubuntu Minimal is minimal - no locale, no cron, and some dirs do not exist
author IBBoard <dev@ibboard.co.uk>
date Mon, 08 May 2023 19:24:20 +0100
parents ba3c446d5a47
children 460bf6514bd8
files manifests/templates.pp
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Mon May 08 13:47:39 2023 +0100
+++ b/manifests/templates.pp	Mon May 08 19:24:20 2023 +0100
@@ -33,6 +33,9 @@
 	}
 
 	if $operatingsystem == 'Ubuntu' {
+		package { 'locales':
+			ensure => present
+		} ->
 		file { '/etc/locale.gen':
 			ensure => present,
 			content => "en_GB.UTF-8 UTF-8",
@@ -290,6 +293,10 @@
 	else {
 		# Other distros can take the default devel status
 		$dev = $::python::params::dev
+		# CentOS-like distros have PKI by default. Others need it creating.
+		file { '/etc/pki/':
+			ensure => directory,
+		}
 
 		apt::source {
 			'ibboard':
@@ -986,6 +993,10 @@
 }
 
 class cronjobs {
+	package { 'cron':
+		ensure => installed,
+		name => $operatingsystem == 'Ubuntu' ? { true => 'cron', default => 'cronie' }
+	}
 	# Add Mutt for scripts that send emails, but stop it clogging the disk by keeping copies of emails
 	package { 'mutt':
 		ensure => installed,