From: Silvio Rhatto Date: Tue, 19 Jun 2018 18:43:47 +0000 (-0300) Subject: Adds ensurable and additional notification to nodo::subsystem::apt::repo X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fc12d08832c27849b3be7034972be05c8def51f5;p=puppet-nodo.git Adds ensurable and additional notification to nodo::subsystem::apt::repo --- diff --git a/manifests/subsystem/apt/repo.pp b/manifests/subsystem/apt/repo.pp index b83f043..bb4d781 100644 --- a/manifests/subsystem/apt/repo.pp +++ b/manifests/subsystem/apt/repo.pp @@ -1,17 +1,19 @@ class nodo::subsystem::apt::repo( $definition, $key_source, + $ensure = present, ) { file { "/etc/apt/trusted.gpg.d/${name}.gpg": - ensure => present, + ensure => $ensure, owner => "root", group => "root", mode => "0644", source => $source, + notify => Exec["apt-repo-auto-update-${name}"], } file { "/etc/apt/sources.list.d/${name}.list": - ensure => present, + ensure => $ensure, owner => "root", group => "root", mode => "0644",