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

puppet opendsa corrections after discussion with Filip

parent d7313a03
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDI16_190827/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDE22_190827/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDD86_190827/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/Books/TDDD86[AB]_191219/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/lib/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/JSAV/.* true
^https?://www\.ida\.liu\.se/edu/ugrad/datortenta/OpenDSA/AV/.* true
......
......@@ -12,8 +12,8 @@ class aes::opendsa {
managehome => false,
membership => inclusive,
system => true,
# Do we need login shell
shell => '/sbin/nologin',
# Do we need login shell. YES
shell => '/bin/bash',
}
file { "${opendsa_home}":
......@@ -26,7 +26,7 @@ class aes::opendsa {
file { "${opendsa_home}/.ssh":
ensure => directory,
recurse => true,
# Is modes copied correctly by "recurse" option above? NO
# Is modes copied correctly by "recurse" option above? NO, but works
# chmod 0700 .ssh/id_rsa
# chmod 0744 .ssh/id_rsa.pub .ssh/known_hosts
purge => true,
......@@ -44,14 +44,15 @@ class aes::opendsa {
group => "${opendsa_group}",
}
exec { '/usr/bin/git pull' :
cwd => "${opendsa_home}/OpenDSA",
onlyif => "/bin/test -d ${opendsa_home}/OpenDSA/.git",
user => "${opendsa_user}",
group => "${opendsa_group}",
}
# Will this work? DANGEROUS, need service restart! Not needed.
# exec { '/usr/bin/git pull' :
# cwd => "${opendsa_home}/OpenDSA",
# onlyif => "/bin/test -d ${opendsa_home}/OpenDSA/.git",
# user => "${opendsa_user}",
# group => "${opendsa_group}",
# }
# Install python packets. Can this be run several times safely? (Idempotent?)
# Install python packets. Can this be run several times safely? (Idempotent?) YES
exec { '/usr/bin/python3 -m pip install --user -r OpenDSA/server/requirements.txt' :
cwd => "${opendsa_home}",
user => "${opendsa_user}",
......@@ -81,11 +82,11 @@ class aes::opendsa {
source => "puppet:///modules/${module_name}/opendsa/opendsa.service",
}
# Do we need port 12000 open?
# Do we need port 12000 open? NO
service { "${opendsa_service}" :
ensure => "running",
}
# Ändra TDDD86-raden i config/opendsa till "TDDD86[AB]_191219" ???
# Ändra TDDD86-raden i rules.d/opendsa till "TDDD86[AB]_191219"
}
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