From 48f15fb381adfa2e75ffda099f54088edec9f7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 29 Mar 2018 20:34:04 +0200 Subject: Add at daemon, and ensure running service --- modules/base_installation/manifests/packages.pp | 3 +++ modules/base_installation/manifests/services.pp | 21 ++++++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/base_installation/manifests/packages.pp b/modules/base_installation/manifests/packages.pp index b0824ad..b0c976f 100644 --- a/modules/base_installation/manifests/packages.pp +++ b/modules/base_installation/manifests/packages.pp @@ -7,4 +7,7 @@ class base_installation::packages inherits base_installation { # Puppet dependencies ensure_packages(['git', 'puppet']) + + # To run jobs + ensure_packages(['at']) } diff --git a/modules/base_installation/manifests/services.pp b/modules/base_installation/manifests/services.pp index 067a8f2..57fbfc3 100644 --- a/modules/base_installation/manifests/services.pp +++ b/modules/base_installation/manifests/services.pp @@ -1,27 +1,38 @@ class base_installation::services inherits base_installation { + if (empty($facts["in_chroot"])) { + $ensure = "running" + } else { + $ensure = undef + } + service { "sshd": - #ensure => "running", + ensure => $ensure, enable => true, } + service { "atd": + ensure => $ensure, + enable => true + } + service { "systemd-networkd": - #ensure => "running", + ensure => $ensure, enable => true, } service { "systemd-resolved": - #ensure => "running", + ensure => $ensure, enable => true, } service { "systemd-timesyncd": - #ensure => "running", + ensure => $ensure, enable => true } service { "cronie": - #ensure => "running", + ensure => $ensure, enable => true, } -- cgit v1.2.3