From e648eb411330f3865e4fc55eb8548311efaf5cef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= <filip.stromback@liu.se>
Date: Wed, 30 Sep 2020 10:37:26 +0200
Subject: [PATCH] Make sure to put the update_repo file in the filesystem for
 usage in other places.

---
 manifests/init.pp | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/manifests/init.pp b/manifests/init.pp
index 8c63907..737a228 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -32,6 +32,21 @@ class aes {
     content => file("${module_name}/anacrontab"),
   }
 
+  # File for updating repositories.
+  file { '/opt/utils':
+    ensure  => directory,
+    mode    => '0755',
+    owner   => root,
+    group   => root,
+  }
+  file { '/opt/utils/update_repo.sh':
+    ensure  => file,
+    mode    => '0755',
+    owner   => root,
+    group   => root,
+    content => file("${module_name}/update_repo.sh"),
+  }
+
   ::users::liu_user { 'klaar36':
     commonname => 'Klas Arvidsson',
     shell      => '/bin/bash',
-- 
GitLab