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
ab4cf8e2
Commit
ab4cf8e2
authored
1 year ago
by
Klas Arvidsson
Browse files
Options
Downloads
Patches
Plain Diff
Adaptions for RHEL9
parent
a401cadc
No related branches found
No related tags found
2 merge requests
!50
Fix: Puppet Defining "data_provider": "hiera" in metadata.json is deprecated....
,
!40
Merge from devel. Commits related to RHEL9 upgrade and pdk cleanup.
Pipeline
#105329
passed
1 year ago
Stage: puppet
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
manifests/aes_sw.pp
+48
-5
48 additions, 5 deletions
manifests/aes_sw.pp
manifests/broker.pp
+58
-8
58 additions, 8 deletions
manifests/broker.pp
manifests/init.pp
+33
-31
33 additions, 31 deletions
manifests/init.pp
manifests/squid_filter.pp
+42
-0
42 additions, 0 deletions
manifests/squid_filter.pp
with
181 additions
and
44 deletions
manifests/aes_sw.pp
+
48
−
5
View file @
ab4cf8e2
...
...
@@ -8,6 +8,54 @@ class aes::aes_sw {
$examadm_group
=
$examadm_user
$examadm_home
=
"/home/
${examadm_user}
"
case
fact
(
'os.family'
)
{
'RedHat'
:
{
firewalld_custom_service
{
'aes-server'
:
description
=>
'Authentic Examination System server'
,
ports
=>
[
{
port
=>
'23431'
,
protocol
=>
'tcp'
},
{
port
=>
'23816'
,
protocol
=>
'tcp'
},
{
port
=>
'23817'
,
protocol
=>
'tcp'
},
],
}
@
firewalld_rich_rule
{
default
:
service
=>
'aes-server'
,
log
=>
false
;
'Accept aes-server in LiU networks without logging IPv4'
:
zone
=>
'liu'
,
family
=>
'ipv4'
,
action
=>
'accept'
;
'Accept aes-server in LiU networks without logging IPv6'
:
zone
=>
'liu'
,
family
=>
'ipv6'
,
action
=>
'accept'
;
}
}
'CentOS'
:
{
::
server_firewall::rules_file
{
'45-permit_aes_sw.rules'
:
# lint:ignore:strict_indent heredoc failing...
content
=>
@
(
EOF
),
service
sclogin
is
tcp
/
23431
service
aesmsi
is
tcp
/
23816
service
aesmso
is
tcp
/
23817
policy
chain
INPUT
is
accept
service
:
sclogin
from
class
:
liu
-
nets
accept
service
:
aesmsi
from
class
:
liu
-
nets
accept
service
:
aesmso
from
class
:
liu
-
nets
end
policy
|
-
EOF
# lint:endignore:strict_indent
}
}
default
:
{
fail
(
"
${module_name}
- Not supported for family
$
{fact('os.family')}."
)
}
}
package
{
[
'enscript'
,
# present in pars_pwd_list.py, but pars_pwd_list.py old and unused?
...
...
@@ -147,9 +195,4 @@ class aes::aes_sw {
owner
=>
$examadm_user
,
group
=>
$examadm_group
,
}
schedule
{
'everyday'
:
period
=>
daily
,
range
=>
'01:00 - 04:00'
,
}
}
This diff is collapsed.
Click to expand it.
manifests/broker.pp
+
58
−
8
View file @
ab4cf8e2
...
...
@@ -11,14 +11,64 @@ class aes::broker {
$broker_home
=
"/srv/
${broker_user}
"
$broker_service
=
'aes_broker'
# Sadly, it does not seem like we can not only install asio, so we need
# to install the Boost as a whole.
package
{
[
'boost169'
,
'boost169-devel'
,
]:
ensure
=>
installed
,
case
fact
(
'os.family'
)
{
'RedHat'
:
{
package
{
[
'boost'
,
'boost-devel'
,
]:
ensure
=>
installed
,
}
firewalld_custom_service
{
'aes-broker'
:
description
=>
'Authentic Examination System server'
,
ports
=>
[
{
port
=>
'31337'
,
protocol
=>
'tcp'
},
],
}
@
firewalld_rich_rule
{
default
:
service
=>
'aes-broker'
,
log
=>
false
;
'Accept aes-broker in LiU networks without logging IPv4'
:
zone
=>
'liu'
,
family
=>
'ipv4'
,
action
=>
'accept'
;
'Accept aes-broker in LiU networks without logging IPv6'
:
zone
=>
'liu'
,
family
=>
'ipv6'
,
action
=>
'accept'
;
}
}
'CentOS'
:
{
# Sadly, it does not seem like we can not only install asio, so we need
# to install the Boost as a whole.
package
{
[
'boost169'
,
'boost169-devel'
,
]:
ensure
=>
installed
,
}
::
server_firewall::rules_file
{
'45-permit_aes_broker.rules'
:
# lint:ignore:strict_indent heredoc failing...
content
=>
@
(
EOF
),
service
aesbroker
is
tcp
/
31337
policy
chain
INPUT
is
accept
service
:
aesbroker
from
class
:
liu
-
nets
end
policy
|
-
EOF
# lint:endignore:strict_indent
}
}
default
:
{
fail
(
"
${module_name}
- Not supported for family
$
{fact('os.family')}."
)
}
}
# Figure out which certificate to use based on the hostname.
...
...
This diff is collapsed.
Click to expand it.
manifests/init.pp
+
33
−
31
View file @
ab4cf8e2
...
...
@@ -14,18 +14,40 @@ class aes {
include
aes::broker
include
aes::auth
include
aes::auth_keydb
include
liurepo::centos_sclo_rh
package
{
[
'devtoolset-7'
,
'gcc'
,
'gcc-c++'
,
'libaio'
,
'python36'
,
]:
ensure
=>
installed
,
require
=>
Class
[
'liurepo::centos_sclo_rh'
],
case
fact
(
'os.family'
)
{
'RedHat'
:
{
# TODO: Move this to the subclass that actually require it?
package
{
[
'gcc-toolset-12'
,
'gcc'
,
'gcc-c++'
,
'libaio'
,
'python3'
,
]:
ensure
=>
installed
,
require
=>
Class
[
'liurepo::centos_sclo_rh'
],
}
}
'CentOS'
:
{
include
liurepo::centos_sclo_rh
# TODO: Move this to the subclass that actually require it?
package
{
[
'devtoolset-7'
,
'gcc'
,
'gcc-c++'
,
'libaio'
,
'python36'
,
]:
ensure
=>
installed
,
require
=>
Class
[
'liurepo::centos_sclo_rh'
],
}
}
default
:
{
fail
(
"
${module_name}
- Not supported for family
$
{fact('os.family')}."
)
}
}
file
{
'/etc/sudoers.d/aes'
:
...
...
@@ -111,24 +133,4 @@ class aes {
shell
=>
'/bin/bash'
,
sshkey
=>
'AAAAB3NzaC1yc2EAAAADAQABAAABAQCsUKr53aCwErzsdhD/5oEQ4gWW51NgXa70Ow20Fnv/pyKAepDsIMCOB6kf1aET8LOlnq8Wyu0/52GGB38mO6cUzi7MLeWj7bg1Npq7b5/Uoaquq/dginoVQDc5RuJfmoy7PwmjKep/J2OIkCs8kD4sKbqN3ArCW555hgBvlGCdHxER1x2c5wGc2iuMCcbsfonOfORIxzCoiF4igfmuA1wpFZgyjBLuHn/SOtp85pD3nR0JSiaJWcMLB7IkWzXxvbpUWhDf7/gE4mwCDkOajY8zdG+aLkAZI0J1TJUGq50zji4OouwxxPW2JhpVl1KbRPqec+pVtdQIZstgUg3YbJGl'
,
# lint:ignore:140chars
}
::
server_firewall::rules_file
{
'45-permit_squid.rules'
:
# lint:ignore:strict_indent heredoc failing...
content
=>
@
(
EOF
),
service
squid
is
tcp
/
3128
service
sclogin
is
tcp
/
23431
service
aesmsi
is
tcp
/
23816
service
aesmso
is
tcp
/
23817
service
aesbroker
is
tcp
/
31337
policy
chain
INPUT
is
accept
service
:
squid
from
class
:
liu
-
nets
accept
service
:
sclogin
from
class
:
liu
-
nets
accept
service
:
aesmsi
from
class
:
liu
-
nets
accept
service
:
aesmso
from
class
:
liu
-
nets
accept
service
:
aesbroker
from
class
:
liu
-
nets
end
policy
|
-
EOF
# lint:endignore:strict_indent
}
}
This diff is collapsed.
Click to expand it.
manifests/squid_filter.pp
+
42
−
0
View file @
ab4cf8e2
...
...
@@ -5,6 +5,48 @@
#
#
class
aes::squid_filter
{
case
fact
(
'os.family'
)
{
'RedHat'
:
{
firewalld_custom_service
{
'squid'
:
description
=>
'Squid proxy for filtered internet access'
,
ports
=>
[
{
port
=>
'3128'
,
protocol
=>
'tcp'
},
],
}
@
firewalld_rich_rule
{
default
:
service
=>
'squid'
,
log
=>
false
;
'Accept squid in LiU networks without logging IPv4'
:
zone
=>
'liu'
,
family
=>
'ipv4'
,
action
=>
'accept'
;
'Accept squid in LiU networks without logging IPv6'
:
zone
=>
'liu'
,
family
=>
'ipv6'
,
action
=>
'accept'
;
}
}
'CentOS'
:
{
::
server_firewall::rules_file
{
'45-permit_squid.rules'
:
# lint:ignore:strict_indent heredoc failing...
content
=>
@
(
EOF
),
service
squid
is
tcp
/
3128
policy
chain
INPUT
is
accept
service
:
squid
from
class
:
liu
-
nets
end
policy
|
-
EOF
# lint:endignore:strict_indent
}
}
default
:
{
fail
(
"
${module_name}
- Not supported for family
$
{fact('os.family')}."
)
}
}
package
{
'squid'
:
ensure
=>
'present'
,
}
...
...
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