diff --git a/manifests/params.pp b/manifests/params.pp index f30ef4c..79ab767 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -9,7 +9,7 @@ 'debian': { $udev_package = 'udev' $udevlogpriority = 'udevadm control --log-priority' - $udevtrigger = 'udevadm trigger' + $udevtrigger = 'udevadm trigger --action=change' } 'redhat': { if $::operatingsystem == 'Fedora' { @@ -30,12 +30,12 @@ } '6': { $udev_package = 'udev' - $udevtrigger = 'udevadm trigger' + $udevtrigger = 'udevadm trigger --action=change' $udevlogpriority = 'udevadm control --log-priority' } '7': { $udev_package = 'systemd' - $udevtrigger = 'udevadm trigger' + $udevtrigger = 'udevadm trigger --action=change' $udevlogpriority = 'udevadm control --log-priority' } default: { diff --git a/spec/classes/udevadm/trigger_spec.rb b/spec/classes/udevadm/trigger_spec.rb index 040f63e..49bc2af 100644 --- a/spec/classes/udevadm/trigger_spec.rb +++ b/spec/classes/udevadm/trigger_spec.rb @@ -11,7 +11,7 @@ it { should contain_class('udev::udevadm::trigger') } it do - should contain_exec('udevadm trigger').with({ + should contain_exec('udevadm trigger --action=change').with({ :refreshonly => true, :path => ['/sbin'], })