Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
aes
Commits
e61a6cf2
Commit
e61a6cf2
authored
5 years ago
by
Klas Arvidsson
Browse files
Options
Downloads
Patches
Plain Diff
puppet opendsa corrections after discussion with Filip
parent
d7313a03
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/squid/helpers/rules.d/opendsa.rules
+1
-1
1 addition, 1 deletion
files/squid/helpers/rules.d/opendsa.rules
manifests/opendsa.pp
+13
-12
13 additions, 12 deletions
manifests/opendsa.pp
with
14 additions
and
13 deletions
files/squid/helpers/rules.d/opendsa.rules
+
1
−
1
View file @
e61a6cf2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
manifests/opendsa.pp
+
13
−
12
View file @
e61a6cf2
...
...
@@ -12,8 +12,8 @@ class aes::opendsa {
managehome
=>
false
,
membership
=>
inclusive
,
system
=>
true
,
# Do we need login shell
shell
=>
'/
s
bin/
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"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment