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
85de5c58
Commit
85de5c58
authored
May 08, 2015
by
Jerome Charaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust $backuptag default value of handlers, removes $real_backuptag
parent
60931e1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
manifests/duplicity.pp
manifests/duplicity.pp
+1
-1
manifests/rdiff.pp
manifests/rdiff.pp
+2
-6
manifests/rsync.pp
manifests/rsync.pp
+2
-7
No files found.
manifests/duplicity.pp
View file @
85de5c58
...
...
@@ -91,7 +91,7 @@ define backupninja::duplicity( $order = 90,
$ssh_dir
=
"
${destdir}
/.ssh"
,
$authorized_keys_file
=
'authorized_keys'
,
$installuser
=
true
,
$backuptag
=
false
,
$backuptag
=
"backupninja-
${::fqdn}
"
,
# key options
$createkey
=
false
,
$keymanage
=
$backupninja::keymanage
)
{
...
...
manifests/rdiff.pp
View file @
85de5c58
...
...
@@ -26,7 +26,7 @@ define backupninja::rdiff(
"/home"
,
"/usr/local/*bin"
,
"/var/lib/dpkg/status*"
],
$vsinclude
=
false
,
$keep
=
30
,
$sshoptions
=
false
,
$options
=
'--force'
,
$ssh_dir_manage
=
true
,
$ssh_dir
=
"
${home}
/.ssh"
,
$authorized_keys_file
=
'authorized_keys'
,
$installuser
=
true
,
$keymanage
=
$backupninja::keymanage
,
$key
=
false
,
$backuptag
=
false
,
$backupkeytype
=
$backupninja::keytype
,
$backupkeystore
=
$backupninja::keystore
,
$backuptag
=
"backupninja-
${::fqdn}
"
,
$backupkeytype
=
$backupninja::keytype
,
$backupkeystore
=
$backupninja::keystore
,
$extras
=
false
,
$nagios_description
=
'backups'
)
{
# install client dependencies
...
...
@@ -37,17 +37,13 @@ define backupninja::rdiff(
case
$type
{
'remote'
:
{
case
$host
{
false
:
{
err
(
"need to define a host for remote backups!"
)
}
}
$real_backuptag
=
$backuptag
?
{
false
=>
"backupninja-
$fqdn
"
,
default
=>
$backuptag
}
backupninja::server::sandbox
{
"
${user}
-
${name}
"
:
user
=>
$user
,
host
=>
$fqdn
,
dir
=>
$home
,
manage_ssh_dir
=>
$ssh_dir_manage
,
ssh_dir
=>
$ssh_dir
,
key
=>
$key
,
authorized_keys_file
=>
$authorized_keys_file
,
installuser
=>
$installuser
,
backuptag
=>
$
real_
backuptag
,
keytype
=>
$backupkeytype
,
backupkeys
=>
$backupkeystore
,
backuptag
=>
$backuptag
,
keytype
=>
$backupkeytype
,
backupkeys
=>
$backupkeystore
,
nagios_description
=>
$nagios_description
}
...
...
manifests/rsync.pp
View file @
85de5c58
...
...
@@ -5,7 +5,7 @@ define backupninja::rsync(
$order
=
90
,
$ensure
=
present
,
$user
=
false
,
$home
=
"/home/
${user}
-
${name}
"
,
$host
=
false
,
$ssh_dir_manage
=
true
,
$ssh_dir
=
"
${home}
/.ssh"
,
$authorized_keys_file
=
'authorized_keys'
,
$installuser
=
true
,
$keymanage
=
$backupninja::keymanage
,
$key
=
false
,
$backuptag
=
false
,
$installuser
=
true
,
$keymanage
=
$backupninja::keymanage
,
$key
=
false
,
$backuptag
=
"backupninja-
${::fqdn}
"
,
$backupkeytype
=
$backupninja::keytype
,
$backupkeystore
=
$backupninja::keystore
,
$extras
=
false
,
$nagios_description
=
'backups'
,
$subfolder
=
'rsync'
,
...
...
@@ -41,11 +41,6 @@ define backupninja::rsync(
'remote'
:
{
case
$host
{
false
:
{
err
(
"need to define a host for remote backups!"
)
}
}
$real_backuptag
=
$backuptag
?
{
false
=>
"backupninja-
$fqdn
"
,
default
=>
$backuptag
,
}
$directory
=
"
${home}
/
${subfolder}
/"
backupninja::server::sandbox
{
"
${user}
-
${name}
"
:
...
...
@@ -57,7 +52,7 @@ define backupninja::rsync(
key
=>
$key
,
authorized_keys_file
=>
$authorized_keys_file
,
installuser
=>
$installuser
,
backuptag
=>
$
real_
backuptag
,
backuptag
=>
$backuptag
,
keytype
=>
$backupkeytype
,
backupkeys
=>
$backupkeystore
,
nagios_description
=>
$nagios_description
...
...
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