Alexandros Kosiaris has submitted this change and it was merged.
Change subject: show what's backed up in motd (rt #469)
......................................................................
show what's backed up in motd (rt #469)
Use a virtual resource so this does not get populated unless
backup::host is also included
Change-Id: Id97bef7c69c5b94f1cbf1f3c3419b3b4ab56ff8b
---
M manifests/backups.pp
1 file changed, 11 insertions(+), 0 deletions(-)
Approvals:
Alexandros Kosiaris: Looks good to me, approved
jenkins-bot: Verified
diff --git a/manifests/backups.pp b/manifests/backups.pp
index cc522a4..1896f2b 100644
--- a/manifests/backups.pp
+++ b/manifests/backups.pp
@@ -10,6 +10,16 @@
fileset => $name,
jobdefaults => $jobdefaults,
}
+
+ $motd_content = "Backed up on this host: $name\n"
+ @file { "/etc/update-motd.d/06-backups-${name}":
+ ensure => 'present',
+ owner => 'root',
+ group => 'root',
+ mode => '0555',
+ content => $motd_content,
+ tag => 'backup-motd',
+ }
}
}
@@ -33,6 +43,7 @@
Bacula::Client::Job <| |> {
require => Class['bacula::client'],
}
+ File <| tag == 'backup-motd' |>
# If the machine includes base::firewall then let internal servers
# connect to us
--
To view, visit https://gerrit.wikimedia.org/r/125971
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id97bef7c69c5b94f1cbf1f3c3419b3b4ab56ff8b
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: Mark Bergsma <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits