Skip to content

Commit 8c30c2b

Browse files
committed
(openvpnas) openvpnas module install tests
1 parent b4acfd0 commit 8c30c2b

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

Puppetfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ mod 'lsst/java_artisanal', '3.4.1'
3030
mod 'lsst/kubectl', '1.2.0'
3131
mod 'lsst/maven', '3.1.0'
3232
mod 'lsst/nm', '0.3.0'
33+
mod 'lsst/openvpnas', git: 'https://github.com/lsst-it/puppet-openvpnas', ref: '026a9c4'
3334
mod 'lsst/pi', '1.0.0'
3435
mod 'lsst/powertop', '0.1.2'
3536
mod 'lsst/rke', '2.1.0'

hieradata/role/openvpnas.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
classes:
3+
- "profile::core::common"
4+
- "profile::core::openvpnas"
5+
6+
profile::core::openvpnas::version: "3.0.1_84b60e70"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# @summary
2+
# Installs OpenVPN Access Server.
3+
#
4+
# @param version
5+
# Sets version lock for OpenVPN package.
6+
#
7+
# @param bind_pw
8+
# Optional. LDAP bind password for OpenVPN Access Server.
9+
#
10+
class profile::core::openvpnas (
11+
String[1] $version,
12+
Optional[String[1]] $bind_pw = undef,
13+
) {
14+
# include profile::core::letsencrypt
15+
16+
class { 'openvpnas':
17+
# Repository and package management
18+
manage_repo => true,
19+
version => $version,
20+
versionlock_enable => true,
21+
versionlock_release => '1.el9',
22+
23+
# Service management
24+
manage_service => true,
25+
26+
# Configuration
27+
config => {
28+
'auth.ldap.0.add_req' => 'memberOf=cn=vpn,cn=groups,cn=accounts,dc=lsst,dc=cloud',
29+
'auth.module.type' => 'ldap',
30+
'auth.ldap.0.server.0.host' => 'ipa1.cp.lsst.org',
31+
'auth.ldap.0.server.1.host' => 'ipa1.ls.lsst.org',
32+
'auth.ldap.0.bind_dn' => 'uid=svc_openvpnas,cn=users,cn=accounts,dc=lsst,dc=cloud',
33+
'auth.ldap.0.bind_pw' => $bind_pw,
34+
'auth.ldap.0.enable' => 'true',
35+
'auth.ldap.0.users_base_dn' => 'cn=accounts,dc=lsst,dc=cloud',
36+
'auth.ldap.0.use_ssl' => 'never',
37+
'auth.ldap.0.ssl_verify' => 'internal',
38+
'auth.ldap.0.timeout' => '4',
39+
'auth.ldap.0.name' => 'Rubin LDAP Servers',
40+
'auth.ldap.0.uname_attr' => 'uid',
41+
'auth.ldap.0.user_exists_check' => 'true',
42+
'auth.local.0.enable' => 'false',
43+
},
44+
}
45+
}

0 commit comments

Comments
 (0)