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, } }