Mercurial > repos > other > Puppet
comparison manifests/templates.pp @ 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 |
comparison
equal
deleted
inserted
replaced
446:ba3c446d5a47 | 447:1a9de0661666 |
---|---|
31 version: 5 | 31 version: 5 |
32 ", | 32 ", |
33 } | 33 } |
34 | 34 |
35 if $operatingsystem == 'Ubuntu' { | 35 if $operatingsystem == 'Ubuntu' { |
36 package { 'locales': | |
37 ensure => present | |
38 } -> | |
36 file { '/etc/locale.gen': | 39 file { '/etc/locale.gen': |
37 ensure => present, | 40 ensure => present, |
38 content => "en_GB.UTF-8 UTF-8", | 41 content => "en_GB.UTF-8 UTF-8", |
39 notify => Exec['Regen locales'] | 42 notify => Exec['Regen locales'] |
40 } | 43 } |
288 $dev = 'present' | 291 $dev = 'present' |
289 } | 292 } |
290 else { | 293 else { |
291 # Other distros can take the default devel status | 294 # Other distros can take the default devel status |
292 $dev = $::python::params::dev | 295 $dev = $::python::params::dev |
296 # CentOS-like distros have PKI by default. Others need it creating. | |
297 file { '/etc/pki/': | |
298 ensure => directory, | |
299 } | |
293 | 300 |
294 apt::source { | 301 apt::source { |
295 'ibboard': | 302 'ibboard': |
296 location => 'http://download.opensuse.org/repositories/home:/IBBoard:/server/xUbuntu_22.04/', | 303 location => 'http://download.opensuse.org/repositories/home:/IBBoard:/server/xUbuntu_22.04/', |
297 release => '/', | 304 release => '/', |
984 minute => 0, | 991 minute => 0, |
985 } | 992 } |
986 } | 993 } |
987 | 994 |
988 class cronjobs { | 995 class cronjobs { |
996 package { 'cron': | |
997 ensure => installed, | |
998 name => $operatingsystem == 'Ubuntu' ? { true => 'cron', default => 'cronie' } | |
999 } | |
989 # Add Mutt for scripts that send emails, but stop it clogging the disk by keeping copies of emails | 1000 # Add Mutt for scripts that send emails, but stop it clogging the disk by keeping copies of emails |
990 package { 'mutt': | 1001 package { 'mutt': |
991 ensure => installed, | 1002 ensure => installed, |
992 } | 1003 } |
993 file { '/etc/Muttrc.local': | 1004 file { '/etc/Muttrc.local': |