From 9b09761c0a1c7205141195a6bf44d1ab50f9e0a0 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 1 Mar 2022 20:00:06 +0100 Subject: [PATCH] default to `file` for file resource ensure --- manifests/udev/rule.pp | 2 +- spec/defines/udev_rules_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/udev/rule.pp b/manifests/udev/rule.pp index 043adaa6..06b65c4a 100644 --- a/manifests/udev/rule.pp +++ b/manifests/udev/rule.pp @@ -24,7 +24,7 @@ # define systemd::udev::rule ( Array $rules = [], - Enum['present', 'absent', 'file'] $ensure = 'present', + Enum['present', 'absent', 'file'] $ensure = 'file', Stdlib::Absolutepath $path = '/etc/udev/rules.d', Variant[Array[String[1]], String[1]] $notify_services = [], Boolean $selinux_ignore_defaults = false, diff --git a/spec/defines/udev_rules_spec.rb b/spec/defines/udev_rules_spec.rb index 1cb3375f..05869522 100644 --- a/spec/defines/udev_rules_spec.rb +++ b/spec/defines/udev_rules_spec.rb @@ -20,7 +20,7 @@ class { 'systemd': manage_udevd => true, manage_journald => false } describe 'with all options (one notify)' do let(:params) do { - ensure: 'present', + ensure: 'file', path: '/etc/udev/rules.d', selinux_ignore_defaults: false, notify_services: 'Service[systemd-udevd]', @@ -54,7 +54,7 @@ class { 'systemd': manage_udevd => true, manage_journald => false } describe 'with all options (array notify)' do let(:params) do { - ensure: 'present', + ensure: 'file', path: '/etc/udev/rules.d', selinux_ignore_defaults: false, notify_services: ['Service[systemd-udevd]', 'Service[foo]'],