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
0b789696
Commit
0b789696
authored
1 year ago
by
Klas Arvidsson
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' into 'production'
Devel See merge request
!44
parents
3dc8e042
cc2e3fc9
No related branches found
No related tags found
2 merge requests
!50
Fix: Puppet Defining "data_provider": "hiera" in metadata.json is deprecated....
,
!44
Devel
Pipeline
#112978
passed
1 year ago
Stage: puppet
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/aes_sw.pp
+14
-11
14 additions, 11 deletions
manifests/aes_sw.pp
scripts/eyaml_encrypt.sh
+2
-0
2 additions, 0 deletions
scripts/eyaml_encrypt.sh
with
16 additions
and
11 deletions
manifests/aes_sw.pp
+
14
−
11
View file @
0b789696
...
...
@@ -88,19 +88,22 @@ class aes::aes_sw {
}
# lint:ignore:140chars
file
{
"
${examadm_home}
/.ssh/authorized_keys"
:
$tal_calendar_cronjob
=
@
(
END
)
<
%
|
String
$env
|
%
>
#!/bin/bash
sudo
-
u
examadm
/
home
/
examadm
/
tal
-
cli
/
source
/
scripts
/
tal
-
export
.
py
--
format
ics
--
lookback
90
--
lookahead
180
|
sudo
-
u
klaar36
ssh
upp
.
ida
.
liu
.
se
"cat >| /projects/upp/www/tal/tal-<%=
$env
%>.ics"
sudo
-
u
examadm
/
home
/
examadm
/
tal
-
cli
/
source
/
scripts
/
tal
-
export
.
py
--
written
--
format
ics
--
lookback
90
--
lookahead
180
|
sudo
-
u
klaar36
ssh
upp
.
ida
.
liu
.
se
"cat >| /projects/upp/www/tal/tal_written-<%=
$env
%>.ics"
|
END
# lint:endignore:140chars
# Push TAL-calendar file to UPP-server (replaces old pull solution)
file
{
'/etc/cron.daily/tal-access'
:
ensure
=>
file
,
mode
=>
'0600'
,
owner
=>
$examadm_user
,
group
=>
$examadm_group
,
# lint:ignore:strict_indent heredoc failing...
content
=>
@
(
SSHPUBKEY
),
command
=
"/home/examadm/tal-cli/source/scripts/tal-export.py --format ics --lookback 90 --lookahead 180"
,
no
-
pty
,
no
-
user
-
rc
,
no
-
port
-
forwarding
,
no
-
agent
-
forwarding
,
no
-
X11
-
forwarding
ssh
-
rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDJW4LP0av20r7lPXNgsftF9oaAXK41AvHyuHwybciZC
/
QBfTcmYif83563cTg0OzR
/
p
+
OSobiDM0odaaFYtP
/
8
xbuVRz87X5bGYm2m8yHHqPxobHkT5g
/
faMkl9Fef
+
Al4EsT5tiaYMOhG2lj8XRYuwAb7qjoz3FFbs8TEPE7Sv
+
4
BUCCH94taCuNYLXSxN1EXvw7VW6Ld5QXRFP53l2QUeTqE9oSii3BVrXlqqrLvNV
/
7
nwdwyse4uhff4QrM9o4oc9FaQr8PLlPGxdlbSfIQJMVzHGpeDu0WLw
+
NqtLO1hsdlvQm7GrT
/
v8N7GJNKlsvhwnwUuMhTrB0yPMbbub1
klaar36
@
upp
command
=
"/home/examadm/tal-cli/source/scripts/tal-export.py --written --format ics --lookback 90 --lookahead 180"
,
no
-
pty
,
no
-
user
-
rc
,
no
-
port
-
forwarding
,
no
-
agent
-
forwarding
,
no
-
X11
-
forwarding
ssh
-
ed25519
AAAAC3NzaC1lZDI1NTE5AAAAILZ8aEAXw0tRcYrk1aqldepuC6tmdUYZuM270QdDF79o
tal
written
exams
to
ics
|
SSHPUBKEY
# lint:endignore:strict_indent
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0700'
,
content
=>
inline_epp
(
$tal_calendar_cronjob
,
{
'env'
=>
$server_facts
[
'environment'
]
}),
}
# lint:endignore:140chars
file
{
'/etc/systemd/system/aes_login.service'
:
ensure
=>
file
,
...
...
This diff is collapsed.
Click to expand it.
scripts/eyaml_encrypt.sh
+
2
−
0
View file @
0b789696
#! /bin/sh -eu
# Either pass -s <string> for a string, or -f <file> for a file.
exec
eyaml encrypt
--pkcs7-public-key
"puppet_public_key.pkcs7.pem"
"
$@
"
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