diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-19 15:43:47 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-19 15:43:47 -0300 |
commit | fc12d08832c27849b3be7034972be05c8def51f5 (patch) | |
tree | aaab45838fa5b138ffd3d789e72399409b025eee /manifests/subsystem | |
parent | f4d75f5e67f1dc42709abfc4abdf8b9f05638162 (diff) | |
download | puppet-nodo-fc12d08832c27849b3be7034972be05c8def51f5.tar.gz puppet-nodo-fc12d08832c27849b3be7034972be05c8def51f5.tar.bz2 |
Adds ensurable and additional notification to nodo::subsystem::apt::repo
Diffstat (limited to 'manifests/subsystem')
-rw-r--r-- | manifests/subsystem/apt/repo.pp | 6 |
1 files changed, 4 insertions, 2 deletions
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", |