From 9dbea1a10aec44fbe865ff3b08b586ea3aa47f89 Mon Sep 17 00:00:00 2001 From: Klas Arvidsson <klas.arvidsson@liu.se> Date: Thu, 2 Jan 2020 22:55:28 +0100 Subject: [PATCH] aes sc login service --- manifests/aes_sw.pp | 33 +++++++++++++++++++++++++++++++++ manifests/init.pp | 1 - 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/manifests/aes_sw.pp b/manifests/aes_sw.pp index 9071cb6..3023650 100644 --- a/manifests/aes_sw.pp +++ b/manifests/aes_sw.pp @@ -1,5 +1,13 @@ class aes::aes_sw { + package { + [ + 'a2ps', + 'java-11-openjdk-devel', + ]: + ensure => installed, + } + user { "examadm" : ensure => present, managehome => false, @@ -8,4 +16,29 @@ class aes::aes_sw { shell => '/sbin/nologin', } + file { "/etc/systemd/system/aes_login.service": + ensure => present, + owner => root, + group => root, + mode => '0644', + content => @(LOGINSERVICE) + [Unit] + Description=AES Login server + After=network.target + + [Service] + Type=simple + User=examadm + WorkingDirectory=/home/examadm/Version-3.1/exam + ExecStart=/usr/bin/python3 /home/examadm/Version-3.1/pub/bin/examiner/find_pnr_and_otp_from_liuid.py + + [Install] + WantedBy=multi-user.target + | LOGINSERVICE + } + + service { "aes_login" : + ensure => "running", + } + } diff --git a/manifests/init.pp b/manifests/init.pp index 058eb02..96355b3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,7 +7,6 @@ class aes { package { [ 'devtoolset-7', - 'java-11-openjdk-devel', 'python36', ]: ensure => installed, -- GitLab