Skip to content

Commit c95c2d2

Browse files
authored
Merge pull request #435 from jkroepke/jammy
2 parents 7ce1375 + e65a465 commit c95c2d2

File tree

7 files changed

+15
-10
lines changed

7 files changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ jobs:
8181
value: ubuntu1804-64vpnserver.ma{hostname=vpnserver}-ubuntu1804-64vpnclienta.a{hostname=vpnclienta}
8282
- name: Ubuntu 20.04
8383
value: ubuntu2004-64vpnserver.ma{hostname=vpnserver}-ubuntu2004-64vpnclienta.a{hostname=vpnclienta}
84+
- name: Ubuntu 22.04
85+
value: ubuntu2204-64vpnserver.ma{hostname=vpnserver}-ubuntu2204-64vpnclienta.a{hostname=vpnclienta}
8486
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
8587
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
8688
steps:

data/family/Debian/22.04.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
openvpn::default_easyrsa_ver: '3.0'

lib/facter/easyrsa.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
binaryv3 = '/usr/share/easy-rsa/3/easyrsa'
1515
when %r{Ubuntu|Debian}
1616
case operatingsystemrelease
17-
when %r{9|10|11|18.04|20.04}
17+
when %r{9|10|11|18.04|20.04|22.04}
1818
binaryv2 = '/usr/share/easy-rsa/pkitool'
1919
binaryv3 = '/usr/share/easy-rsa/easyrsa'
2020
else

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"operatingsystem": "Ubuntu",
1414
"operatingsystemrelease": [
1515
"18.04",
16-
"20.04"
16+
"20.04",
17+
"22.04"
1718
]
1819
},
1920
{

spec/acceptance/openvpn_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
server_directory = '/etc/openvpn'
2424
client_directory = '/etc/openvpn'
2525
client_service = 'openvpn'
26-
if fact('os.release.major') =~ %r{10|11|20.04}
26+
if fact('os.release.major') =~ %r{10|11|20.04|22.04}
2727
server_crt = "#{server_directory}/test_openvpn_server/easy-rsa/keys/issued/server.crt"
2828
key_path = "#{server_directory}/test_openvpn_server/easy-rsa/keys/private"
2929
crt_path = "#{server_directory}/test_openvpn_server/easy-rsa/keys/issued"

spec/defines/openvpn_ca_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
# Execs to working with certificates
118118

119-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
119+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
120120
it { is_expected.to contain_exec('generate dh param test_server').with_creates("#{server_directory}/test_server/easy-rsa/keys/dh.pem") }
121121
else
122122
it { is_expected.to contain_exec('generate dh param test_server').with_creates("#{server_directory}/test_server/easy-rsa/keys/dh2048.pem") }
@@ -126,7 +126,7 @@
126126
it { is_expected.to contain_exec('create crl.pem on test_server') }
127127
it { is_expected.not_to contain_exec('update crl.pem on test_server') }
128128

129-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
129+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
130130
it { is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export EASYRSA_CA_EXPIRE=3650$}) }
131131
it { is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export EASYRSA_CERT_EXPIRE=3650$}) }
132132
it { is_expected.not_to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export EASYRSA_REQ_CN"$}) }
@@ -161,7 +161,7 @@
161161
}
162162
end
163163

164-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
164+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
165165
it { is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export EASYRSA_DN="cn_only"$}) }
166166
it { is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export EASYRSA_CA_EXPIRE=365$}) }
167167
it { is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export EASYRSA_CERT_EXPIRE=365$}) }
@@ -176,7 +176,7 @@
176176
it { is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/vars").with_content(%r{^export KEY_OU="NSA"$}) }
177177
end
178178

179-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
179+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
180180
it { is_expected.to contain_exec('generate dh param test_server').with_creates("#{server_directory}/test_server/easy-rsa/keys/dh.pem") }
181181
else
182182
it { is_expected.to contain_exec('generate dh param test_server').with_creates("#{server_directory}/test_server/easy-rsa/keys/dh2048.pem") }
@@ -194,7 +194,7 @@
194194
}
195195
end
196196

197-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
197+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
198198
it {
199199
is_expected.to contain_file("#{server_directory}/test_server/easy-rsa/openssl.cnf").with(
200200
'ensure' => 'link',

spec/defines/openvpn_client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
case facts[:os]['family']
4343
when 'Ubuntu', 'Debian'
44-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
44+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
4545
context 'system with easyrsa3' do
4646
it {
4747
is_expected.to contain_file("#{server_directory}/test_server/download-configs/test_client/keys/test_client/test_client.crt").with(
@@ -265,7 +265,7 @@
265265

266266
case facts[:os]['family']
267267
when 'Ubuntu', 'Debian'
268-
if facts[:os]['release']['major'] =~ %r{10|11|20.04}
268+
if facts[:os]['release']['major'] =~ %r{10|11|20.04|22.04}
269269
context 'system with easyrsa3' do
270270
it {
271271
is_expected.to contain_file("#{server_directory}/test_server/download-configs/test_client/keys/test_client/test_client.crt").with(

0 commit comments

Comments
 (0)