class base_installation::cronie inherits base_installation {
ensure_packages(['cronie'])
+ Package["cronie"] -> Cron::Job <| |>
+ Package["cronie"] -> Cron::Job::Multiple <| |>
+ Package["cronie"] -> Cron::Daily <| |>
+
unless empty($base_installation::puppet_code_path) {
file { 'post-hook':
ensure => file,
# }
file_line { "/etc/default/grub#GRUB_CMDLINE_LINUX":
- path => "/etc/default/grub",
- line => 'GRUB_CMDLINE_LINUX=" console=tty0 console=ttyS0,115200"',
- match => '^GRUB_CMDLINE_LINUX='
+ path => "/etc/default/grub",
+ line => 'GRUB_CMDLINE_LINUX=" console=tty0 console=ttyS0,115200"',
+ match => '^GRUB_CMDLINE_LINUX=',
+ require => Package["grub"],
}
# exec { 'update GRUB config':
}
service { "sshd":
- ensure => $ensure,
- enable => true,
+ ensure => $ensure,
+ enable => true,
+ require => Package["openssh"],
}
service { "atd":
- ensure => $ensure,
- enable => true
+ ensure => $ensure,
+ enable => true,
+ require => Package["at"],
}
service { "systemd-networkd":
}
service { "cronie":
- ensure => $ensure,
- enable => true,
+ ensure => $ensure,
+ enable => true,
+ require => Package["cronie"],
}
file { '/etc/systemd/system/getty@tty1.service.d/':
class base_installation::ssh inherits base_installation {
class { 'ssh::server':
storeconfigs_enabled => false,
- options => {
+ options => {
'AcceptEnv' => undef,
'X11Forwarding' => 'yes',
'PrintMotd' => 'no',
'ChallengeResponseAuthentication' => 'no',
'Subsystem' => 'sftp /usr/lib/openssh/sftp-server',
- }
+ },
+ require => Package["openssh"]
}
contain "ssh::server"
sudo::conf { 'wheel':
priority => 10,
- content => "%wheel ALL=(ALL) ALL"
+ content => "%wheel ALL=(ALL) ALL",
+ require => Package["sudo"],
}
contain "sudo"