diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base_installation/manifests/packages.pp | 3 | ||||
-rw-r--r-- | modules/base_installation/manifests/services.pp | 21 |
2 files changed, 19 insertions, 5 deletions
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 { | |||
7 | 7 | ||
8 | # Puppet dependencies | 8 | # Puppet dependencies |
9 | ensure_packages(['git', 'puppet']) | 9 | ensure_packages(['git', 'puppet']) |
10 | |||
11 | # To run jobs | ||
12 | ensure_packages(['at']) | ||
10 | } | 13 | } |
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 @@ | |||
1 | class base_installation::services inherits base_installation { | 1 | class base_installation::services inherits base_installation { |
2 | 2 | ||
3 | if (empty($facts["in_chroot"])) { | ||
4 | $ensure = "running" | ||
5 | } else { | ||
6 | $ensure = undef | ||
7 | } | ||
8 | |||
3 | service { "sshd": | 9 | service { "sshd": |
4 | #ensure => "running", | 10 | ensure => $ensure, |
5 | enable => true, | 11 | enable => true, |
6 | } | 12 | } |
7 | 13 | ||
14 | service { "atd": | ||
15 | ensure => $ensure, | ||
16 | enable => true | ||
17 | } | ||
18 | |||
8 | service { "systemd-networkd": | 19 | service { "systemd-networkd": |
9 | #ensure => "running", | 20 | ensure => $ensure, |
10 | enable => true, | 21 | enable => true, |
11 | } | 22 | } |
12 | 23 | ||
13 | service { "systemd-resolved": | 24 | service { "systemd-resolved": |
14 | #ensure => "running", | 25 | ensure => $ensure, |
15 | enable => true, | 26 | enable => true, |
16 | } | 27 | } |
17 | 28 | ||
18 | service { "systemd-timesyncd": | 29 | service { "systemd-timesyncd": |
19 | #ensure => "running", | 30 | ensure => $ensure, |
20 | enable => true | 31 | enable => true |
21 | } | 32 | } |
22 | 33 | ||
23 | service { "cronie": | 34 | service { "cronie": |
24 | #ensure => "running", | 35 | ensure => $ensure, |
25 | enable => true, | 36 | enable => true, |
26 | } | 37 | } |
27 | 38 | ||