aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/apt/repo.pp6
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",