Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
puppet-backupninja
Commits
7d044de8
Commit
7d044de8
authored
May 12, 2015
by
Jerome Charaoui
Browse files
Move nagios::service::passive to handler classes so that local backups may also be monitored
parent
baead38b
Changes
4
Hide whitespace changes
Inline
Side-by-side
manifests/duplicity.pp
View file @
7d044de8
...
...
@@ -138,5 +138,10 @@ define backupninja::duplicity( $order = 90,
mode
=>
0600
,
require
=>
File
[
"
${backupninja::configdir}
"
]
}
if
$backupninja::manage_nagios
{
nagios::service::passive
{
$nagios_description
:
}
}
}
manifests/rdiff.pp
View file @
7d044de8
...
...
@@ -80,7 +80,6 @@ define backupninja::rdiff( $order = 90,
backuptag
=>
$backuptag
,
backupkeys
=>
$backupkeystore
,
keytype
=>
$backupkeytype
,
nagios_description
=>
$nagios_description
}
backupninja::key
{
"
${user}
-
${name}
"
:
...
...
@@ -101,5 +100,10 @@ define backupninja::rdiff( $order = 90,
mode
=>
0600
,
require
=>
File
[
"
${backupninja::configdir}
"
]
}
if
$backupninja::manage_nagios
{
nagios::service::passive
{
$nagios_description
:
}
}
}
manifests/rsync.pp
View file @
7d044de8
...
...
@@ -101,7 +101,6 @@ define backupninja::rsync( $order = 90,
backuptag
=>
$backuptag
,
keytype
=>
$backupkeytype
,
backupkeys
=>
$backupkeystore
,
nagios_description
=>
$nagios_description
}
backupninja::key
{
"
${user}
-
${name}
"
:
...
...
@@ -121,4 +120,9 @@ define backupninja::rsync( $order = 90,
mode
=>
0600
,
require
=>
File
[
"
${backupninja::configdir}
"
]
}
if
$backupninja::manage_nagios
{
nagios::service::passive
{
$nagios_description
:
}
}
}
manifests/server.pp
View file @
7d044de8
...
...
@@ -68,14 +68,8 @@ class backupninja::server (
$uid
=
false
,
$gid
=
"backupninjas"
,
$backuptag
=
"backupninja-
${::fqdn}
"
,
$nagios_description
=
'backups'
)
{
if
$backupninja::manage_nagios
{
# configure a passive service check for backups
nagios::service::passive
{
$nagios_description
:
}
}
if
!
defined
(
Backupninja_server_realize
[
"
${::fqdn}
@
${host}
"
])
{
@@
backupninja_server_realize
{
"
${::fqdn}
@
${host}
"
:
host
=>
$::fqdn
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment