File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 20
20
#
21
21
class systemd (
22
22
Optional[Hash] $service_limits = undef ,
23
- Boolean $manage_resolved = true ,
23
+ Boolean $manage_resolved = false ,
24
24
Variant[Enum[' stopped' ,' running' ],Boolean] $resolved_ensure = ' running' ,
25
- Boolean $manage_networkd = true ,
25
+ Boolean $manage_networkd = false ,
26
26
Variant[Enum[' stopped' ,' running' ],Boolean] $networkd_ensure = ' running' ,
27
27
){
28
28
Original file line number Diff line number Diff line change 9
9
it { is_expected . to compile . with_all_deps }
10
10
it { is_expected . to create_class ( 'systemd' ) }
11
11
it { is_expected . to create_class ( 'systemd::systemctl::daemon_reload' ) }
12
- it { is_expected . to create_service ( 'systemd-resolved' ) . with_ensure ( 'running' ) }
13
- it { is_expected . to create_service ( 'systemd-resolved' ) . with_enable ( true ) }
14
- it { is_expected . to create_service ( 'systemd-networkd' ) . with_ensure ( 'running' ) }
15
- it { is_expected . to create_service ( 'systemd-networkd' ) . with_enable ( true ) }
12
+ it { is_expected . to_not create_service ( 'systemd-resolved' ) }
13
+ it { is_expected . to_not create_service ( 'systemd-networkd' ) }
14
+
15
+ context 'when enabling resolved and networkd' do
16
+ let ( :params ) { {
17
+ :manage_resolved => true ,
18
+ :manage_networkd => true
19
+ } }
20
+
21
+ it { is_expected . to create_service ( 'systemd-resolved' ) . with_ensure ( 'running' ) }
22
+ it { is_expected . to create_service ( 'systemd-resolved' ) . with_enable ( true ) }
23
+ it { is_expected . to create_service ( 'systemd-networkd' ) . with_ensure ( 'running' ) }
24
+ it { is_expected . to create_service ( 'systemd-networkd' ) . with_enable ( true ) }
25
+ end
16
26
end
17
27
end
18
28
end
You can’t perform that action at this time.
0 commit comments