File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ Data type: `Enum['stopped','running']`
192
192
193
193
The state that the `` resolved `` service should be in. When migrating from 'running' to
194
194
'stopped' an attempt will be made to restore a working ` /etc/resolv.conf ` using
195
- ` /run/systemd/resolved /resolv.conf ` .
195
+ ` /run/systemd/resolve /resolv.conf ` .
196
196
197
197
Default value: ` 'running' `
198
198
Original file line number Diff line number Diff line change 27
27
# @param resolved_ensure
28
28
# The state that the ``resolved`` service should be in. When migrating from 'running' to
29
29
# 'stopped' an attempt will be made to restore a working `/etc/resolv.conf` using
30
- # `/run/systemd/resolved /resolv.conf`.
30
+ # `/run/systemd/resolve /resolv.conf`.
31
31
#
32
32
# @param resolved_package
33
33
# The name of a systemd sub package needed for systemd-resolved if one needs to be installed.
Original file line number Diff line number Diff line change 87
87
# /etc/resolv.conf to something that might actually work on
88
88
# reboot.
89
89
exec { 'restore_resolv.conf_if_possible' :
90
- command => ' cp --remove-destination -f /run/systemd/resolve/resolv.conf /etc/resolv.conf' ,
91
- onlyif => ' l="$(readlink /etc/resolv.conf)"; test "$l" = "/run/systemd/resolve/resolv.conf" || test "$l" = "/run/systemd/resolve/stub-resolv.conf' ,
92
- path => $facts [' path' ],
90
+ command => ' cp --remove-destination -f /run/systemd/resolve/resolv.conf /etc/resolv.conf' ,
91
+ onlyif => ' l="$(readlink /etc/resolv.conf)"; test "$l" = "/run/systemd/resolve/resolv.conf" || test "$l" = "/run/systemd/resolve/stub-resolv.conf' ,
92
+ path => $facts [' path' ],
93
+ provider => ' shell' ,
93
94
}
94
95
}
95
96
}
You can’t perform that action at this time.
0 commit comments