From 49aaf2b16b73e3226946932801d58e769221c9a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= <filip.stromback@liu.se>
Date: Tue, 7 Dec 2021 09:08:09 +0100
Subject: [PATCH] Start important services on boot.

---
 manifests/aes_sw.pp       | 2 ++
 manifests/auth.pp         | 1 +
 manifests/auth_keydb.pp   | 4 +++-
 manifests/broker.pp       | 1 +
 manifests/squid_filter.pp | 1 +
 5 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/manifests/aes_sw.pp b/manifests/aes_sw.pp
index d907ca2..e8c780c 100644
--- a/manifests/aes_sw.pp
+++ b/manifests/aes_sw.pp
@@ -52,6 +52,7 @@ class aes::aes_sw {
   # todo: logrotate
   service { 'aes_login' :
     ensure => 'running',
+    enable => true,
   }
 
   file { '/etc/systemd/system/aes_ms.service':
@@ -89,6 +90,7 @@ class aes::aes_sw {
   # todo: logrotate
   service { 'aes_ms' :
     ensure => 'running',
+    enable => true,
   }
 
   exec { 'script-repo-updated':
diff --git a/manifests/auth.pp b/manifests/auth.pp
index be636f5..564425a 100644
--- a/manifests/auth.pp
+++ b/manifests/auth.pp
@@ -120,5 +120,6 @@ class aes::auth(
 
   service { $auth_service :
     ensure => 'running',
+    enable => true,
   }
 }
diff --git a/manifests/auth_keydb.pp b/manifests/auth_keydb.pp
index 72a808e..fef8c92 100644
--- a/manifests/auth_keydb.pp
+++ b/manifests/auth_keydb.pp
@@ -60,6 +60,7 @@ class aes::auth_keydb {
 
   service { $keydb_service :
     ensure => 'running',
+    enable => true,
   }
 
   # These are temporary until the AdmC database is up and running.
@@ -74,4 +75,5 @@ class aes::auth_keydb {
 
   service { 'aes_temp_userdb' :
     ensure => 'running',
-}}
\ No newline at end of file
+  }
+}
\ No newline at end of file
diff --git a/manifests/broker.pp b/manifests/broker.pp
index 973989b..d01596f 100644
--- a/manifests/broker.pp
+++ b/manifests/broker.pp
@@ -100,5 +100,6 @@ class aes::broker {
 
   service { $broker_service :
     ensure => 'running',
+    enable => true,
   }
 }
diff --git a/manifests/squid_filter.pp b/manifests/squid_filter.pp
index b94f736..bb40123 100644
--- a/manifests/squid_filter.pp
+++ b/manifests/squid_filter.pp
@@ -63,6 +63,7 @@ class aes::squid_filter {
   # todo: logrotate
   service { 'squid' :
     ensure => 'running',
+    enable => true,
   }
 
 }
-- 
GitLab