diff options
-rw-r--r-- | manifests/hook.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/hook.pp b/manifests/hook.pp index f8478e6..a9b57ec 100644 --- a/manifests/hook.pp +++ b/manifests/hook.pp @@ -9,6 +9,7 @@ type Pacman::Trigger = Struct[{ }] define pacman::hook ( + Enum['present', 'absent'] $ensure = 'present', Integer $priority = 50, Optional[String] $description = undef, Enum['PreTransation', 'PostTransaction'] $when, @@ -71,7 +72,7 @@ define pacman::hook ( $chksum = $str.md5() file { $chksum: - ensure => 'present', + ensure => $ensure, content => $str, path => "${pacman::hooks_path}/${priority}-${name}.hook", checksum => 'md5', |