Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
chris
puppet-backupninja
Commits
acb2e81d
Commit
acb2e81d
authored
Aug 16, 2010
by
Silvio Rhatto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes
parent
3eed9efd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
manifests/rsync.pp
manifests/rsync.pp
+6
-6
templates/rsync.conf.erb
templates/rsync.conf.erb
+3
-3
No files found.
manifests/rsync.pp
View file @
acb2e81d
...
...
@@ -9,7 +9,7 @@ define backupninja::rsync(
$nagios2_description
=
'backups'
,
$subfolder
=
'rsync'
,
$log
=
false
,
$partition
=
false
,
$fscheck
=
false
,
$read_only
=
false
,
$mountpoint
=
false
,
$backupdir
=
false
,
$format
=
false
,
$days
=
'5'
,
$mountpoint
=
false
,
$backupdir
=
false
,
$format
=
false
,
$days
=
false
,
$keepdaily
=
false
,
$keepweekly
=
false
,
$keepmonthly
=
false
,
$lockfile
=
false
,
$nicelevel
=
0
,
$enable_mv_timestamp_bug
=
false
,
$tmp
=
false
,
$multiconnection
=
false
,
...
...
@@ -31,17 +31,17 @@ define backupninja::rsync(
{
include
backupninja::client::rsync
# Right now just local origin
and
remote destination is supported.
$from
=
local
$dest
=
remote
# Right now just local origin
with
remote destination is supported.
$from
=
'
local
'
$dest
=
'
remote
'
case
$dest
{
'remote'
:
{
case
$host
{
false
:
{
err
(
"need to define a host for remote backups!"
)
}
}
$real_backuptag
=
$backuptag
?
{
false
=>
"backupninja-
$fqdn
"
,
default
=>
$backuptag
false
=>
"backupninja-
$fqdn
"
,
default
=>
$backuptag
,
}
$real_home
=
$home
?
{
...
...
templates/rsync.conf.erb
View file @
acb2e81d
...
...
@@ -20,7 +20,7 @@ end -%>
end
-%>
[dest]
<%-
%w{dest
,
testconnect
,
ssh
,
protocol
,
numericids
,
compress
,
host
,
port
,
user
,
id_file
,
bandwidthlimit
,
remote_rsync
,
batch
,
batchbase
,
fakesuper}
.
each
do
|
v
|
<%-
%w{dest testconnect ssh protocol numericids compress host port user id_file bandwidthlimit remote_rsync batch batchbase fakesuper}
.
each
do
|
v
|
if
has_variable?
(
v
)
and
instance_variable_get
(
"@
#{
v
}
"
).
to_s
!=
"false"
-%>
<%=
v
+
' = '
+
instance_variable_get
(
"@
#{
v
}
"
).
to_s
%>
<%-
...
...
@@ -28,7 +28,7 @@ end -%>
end
-%>
[services]
<%-
%w{initscripts
,
service}
.
each
do
|
v
|
<%-
%w{initscripts service}
.
each
do
|
v
|
if
has_variable?
(
v
)
and
instance_variable_get
(
"@
#{
v
}
"
).
to_s
!=
"false"
-%>
<%=
v
+
' = '
+
instance_variable_get
(
"@
#{
v
}
"
).
to_s
%>
<%-
...
...
@@ -36,7 +36,7 @@ end -%>
end
-%>
[system]
<%-
%w{rm
,
cp
,
touch
,
mv fsck}
.
each
do
|
v
|
<%-
%w{rm cp touch mv fsck}
.
each
do
|
v
|
if
has_variable?
(
v
)
and
instance_variable_get
(
"@
#{
v
}
"
).
to_s
!=
"false"
-%>
<%=
v
+
' = '
+
instance_variable_get
(
"@
#{
v
}
"
).
to_s
%>
<%-
...
...
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