Skip to content

Commit

Permalink
default to file for file resource ensure
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 2, 2022
1 parent 328af84 commit 9b09761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/udev/rule.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions spec/defines/udev_rules_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]',
Expand Down Expand Up @@ -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]'],
Expand Down

0 comments on commit 9b09761

Please sign in to comment.