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
Incidents
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
c0e70d61
Commit
c0e70d61
authored
Jun 05, 2010
by
Silvio Rhatto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checking for backupninja_server_realize definition / comments
parent
24f12a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
manifests/server.pp
manifests/server.pp
+7
-3
No files found.
manifests/server.pp
View file @
c0e70d61
# this define realizes all needed resources for a hosted backup
define
backupninja_server_realize
(
$host
)
{
User
<
<|
tag
==
"backupninja-
$host
"
|>
>
File
<
<|
tag
==
"backupninja-
$host
"
|>
>
...
...
@@ -110,9 +111,12 @@ class backupninja::server {
nagios2::passive_service
{
"backups-
${name}
"
:
nagios2_host_name
=>
$real_host
,
nagios2_description
=>
$real_nagios2_description
,
servicegroups
=>
"backups"
}
}
@@
backupninja_server_realize
{
"
${fqdn}
-
${real_host}
"
:
host
=>
$fqdn
,
tag
=>
$real_host
,
if
!
defined
(
Backupninja_server_realize
[
"
${fqdn}
-
${real_host}
"
])
{
# this defines just maps that $real_host host backups for $fdqn
@@
backupninja_server_realize
{
"
${fqdn}
-
${real_host}
"
:
host
=>
$fqdn
,
tag
=>
$real_host
,
}
}
if
!
defined
(
File
[
"
$real_dir
"
])
{
...
...
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