diff --git a/manifests/init.pp b/manifests/init.pp index 010e14998d7b29fa5b921416fe79640e43ba8acd..bfcfc6eebb5c4442859a8d14e8d66eec0d36c6a0 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 0000000000000000000000000000000000000000..418dbb9e54b78a2534a02621106c2344aa8f79aa --- /dev/null +++ b/templates/example.erb @@ -0,0 +1 @@ +Example content, rev2