Skip to content

Commit

Permalink
(profile::core::openvpn) add openvpn installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Jul 5, 2024
1 parent 3db0b40 commit d4a6483
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions site/profile/manifests/core/openvpn.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class profile::core::openvpn(
String[1] $version,
) {
include yum::plugin::versionlock

yumrepo { 'as-repo-rhel9':
ensure => 'present',
name => 'openvpn-access-server',
descr => 'OpenVPN Access Server',
baseurl => 'http://as-repository.openvpn.net/as/yum/rhel9/',
gpgkey => 'https://as-repository.openvpn.net/as-repo-public.gpg',
gpgcheck => '1',
enabled => '1',
}

package { 'openvpn-as':
ensure => $version,
require => Yumrepo['as-repo-rhel9'],
notify => Yum::Versionlock['openvpn-as'],
}

yum::versionlock { 'openvpn-as':
ensure => present,
version => $version,
release => '1.el9',
arch => 'x86_64',
}
}

0 comments on commit d4a6483

Please sign in to comment.