summaryrefslogtreecommitdiff
path: root/modules/pacman/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/pacman/manifests/init.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/pacman/manifests/init.pp b/modules/pacman/manifests/init.pp
new file mode 100644
index 0000000..eadc1c2
--- /dev/null
+++ b/modules/pacman/manifests/init.pp
@@ -0,0 +1,20 @@
+class pacman (
+ String $hooks_path = '/etc/pacman.d/hooks-puppet',
+ String $conf_path = '/etc/pacman.conf',
+) {
+
+ # TODO ability to set multiple settings
+ ini_setting { 'Pacman HookDir':
+ path => $conf_path,
+ section => 'options',
+ setting => 'HookDir',
+ value => $hooks_path,
+
+ }
+
+ file { $hooks_path:
+ ensure => directory,
+ recurse => true,
+ purge => true,
+ }
+}