Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
puppet-backupninja
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
puppet-backupninja
Commits
7d044de8
Commit
7d044de8
authored
May 12, 2015
by
Jerome Charaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
manifests/duplicity.pp
manifests/duplicity.pp
+5
-0
manifests/rdiff.pp
manifests/rdiff.pp
+5
-1
manifests/rsync.pp
manifests/rsync.pp
+5
-1
manifests/server.pp
manifests/server.pp
+0
-6
No files found.
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