File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
test/integration/default/controls Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
cfgfile =
9
9
case os [ :name ]
10
+ when 'debian' then
11
+ '/etc/openvpn/server/myserver1.conf'
10
12
when 'fedora' then
11
13
'/etc/openvpn/server/myserver1.conf'
14
+ when 'ubuntu' then
15
+ '/etc/openvpn/server/myserver1.conf'
12
16
else
13
17
'/etc/openvpn/myserver1.conf'
14
18
end
23
27
its ( 'content' ) { should include 'user' }
24
28
end
25
29
26
- describe command ( ' ls -l /etc/openvpn/myserver1.conf' ) do
30
+ describe command ( " ls -l #{ cfgfile } " ) do
27
31
its ( 'stdout' ) { should include " #{ user } #{ group } " }
28
32
end
29
33
end
33
37
34
38
cfgfile =
35
39
case os [ :name ]
40
+ when 'debian' then
41
+ '/etc/openvpn/client/myclient1.conf'
36
42
when 'fedora' then
37
43
'/etc/openvpn/client/myclient1.conf'
44
+ when 'ubuntu' then
45
+ '/etc/openvpn/client/myclient1.conf'
38
46
else
39
47
'/etc/openvpn/myclient1.conf'
40
48
end
49
57
its ( 'content' ) { should include 'user' }
50
58
end
51
59
52
- describe command ( ' ls -l /etc/openvpn/myclient1.conf' ) do
60
+ describe command ( " ls -l #{ cfgfile } " ) do
53
61
its ( 'stdout' ) { should include " #{ user } #{ group } " }
54
62
end
55
63
end
Original file line number Diff line number Diff line change 15
15
16
16
prefix =
17
17
case os [ :name ]
18
+ when 'debian' then
19
+ "openvpn-#{ role } "
18
20
when 'fedora' then
19
21
"openvpn-#{ role } "
22
+ when 'ubuntu' then
23
+ "openvpn-#{ role } "
20
24
else
21
25
'openvpn'
22
26
end
You can’t perform that action at this time.
0 commit comments