Skip to content
Snippets Groups Projects
Commit 9dbea1a1 authored by Klas Arvidsson's avatar Klas Arvidsson
Browse files

aes sc login service

parent eace3c7d
No related branches found
No related tags found
No related merge requests found
class aes::aes_sw { class aes::aes_sw {
package {
[
'a2ps',
'java-11-openjdk-devel',
]:
ensure => installed,
}
user { "examadm" : user { "examadm" :
ensure => present, ensure => present,
managehome => false, managehome => false,
...@@ -8,4 +16,29 @@ class aes::aes_sw { ...@@ -8,4 +16,29 @@ class aes::aes_sw {
shell => '/sbin/nologin', 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",
}
} }
...@@ -7,7 +7,6 @@ class aes { ...@@ -7,7 +7,6 @@ class aes {
package { package {
[ [
'devtoolset-7', 'devtoolset-7',
'java-11-openjdk-devel',
'python36', 'python36',
]: ]:
ensure => installed, ensure => installed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment