From 1037b4401ba38ba5f7be2dfc6966e55470eea257 Mon Sep 17 00:00:00 2001
From: Alexander Olofsson <alexander.olofsson@liu.se>
Date: Fri, 16 Sep 2016 10:04:46 +0200
Subject: [PATCH] Update manifests with old skadereg info

---
 manifests/init.pp     | 19 +++++++++++++++++--
 templates/example.erb |  1 +
 2 files changed, 18 insertions(+), 2 deletions(-)
 create mode 100644 templates/example.erb

diff --git a/manifests/init.pp b/manifests/init.pp
index 010e149..bfcfc6e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -35,12 +35,27 @@
 # Authors
 # -------
 #
-# Author Name <author@domain.com>
+# Andreas Alvarsson <andal699@student.liu.se>
 #
 # Copyright
 # ---------
 #
-# Copyright 2016 Your name here, unless otherwise noted.
+# Copyright 2016 Andreas Alvarsson
 #
 class skadereg {
+  ::users::liu_user { 'andal699':
+    commonname   => 'Andreas Alvarsson',
+    shell  => '/bin/bash',
+    sshkey => 'AAAAB3NzaC1yc2EAAAADAQABAAABAQDBwLJB6f+wJqPl81NwT5NM7ughW6fdk3Jf6W0IWX2Ta7PChjnlBgpNGfec59+iuDBs3V/zFJqwUjIWNG8MshbJPShjhM5CpAf0VSsqd+MRlYtXw1Wtp3uwkbj62n9i8VlP1bKXgbnd4C4qiQ8xNJetMb45Alm3ueeyEHpmQbi4JpFvREaN7hDUfIEITPItgsZtV36Gs1nn+OHdV03wll0AddmD1SiIJPWqtO+RKS58oD3yqagthoLP7QdjB2vptaVhlg+e3SJuOFkC9AgQvzHBPh+NGJSZAe7IQXk3wENYZotEuGOKnQ3cFhMtf3TkoMLfglMtYl3oP1CxcecLkd47',
+  }
+
+  include ::yum::centos_scl
+
+  file { '/tmp/example':
+    ensure  => file,
+    content => template('skadereg/example.erb'),
+    owner   => andal699,
+    group   => andal699,
+    mode    => '0400',
+  }
 }
diff --git a/templates/example.erb b/templates/example.erb
new file mode 100644
index 0000000..418dbb9
--- /dev/null
+++ b/templates/example.erb
@@ -0,0 +1 @@
+Example content, rev2
-- 
GitLab