If at first you don succeed...
This commit is contained in:
parent
5be9aedc56
commit
ef7c470244
|
@ -327,16 +327,6 @@ class sunetdrive::script (
|
||||||
warn_criteria => ['exit_status=1','max_age=3d'],
|
warn_criteria => ['exit_status=1','max_age=3d'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
# Not common
|
|
||||||
file { '/root/tasks/backupmultinodedb.sh':
|
|
||||||
ensure => absent,
|
|
||||||
}
|
|
||||||
sunet::scriptherder::cronjob { 'backupmultinodedb':
|
|
||||||
ensure => absent,
|
|
||||||
cmd => 'true',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$singlenodes.each | $singlenode| {
|
$singlenodes.each | $singlenode| {
|
||||||
$multinode = hiera_hash('multinode_mapping')[$singlenode]['server']
|
$multinode = hiera_hash('multinode_mapping')[$singlenode]['server']
|
||||||
$multinodeserver = "${multinode}.${site_name}"
|
$multinodeserver = "${multinode}.${site_name}"
|
||||||
|
@ -387,6 +377,13 @@ class sunetdrive::script (
|
||||||
warn_criteria => ['exit_status=1','max_age=3d'],
|
warn_criteria => ['exit_status=1','max_age=3d'],
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
file { '/root/tasks/backupmultinodedb.sh':
|
||||||
|
ensure => absent,
|
||||||
|
}
|
||||||
|
sunet::scriptherder::cronjob { 'backupmultinodedb':
|
||||||
|
ensure => absent,
|
||||||
|
cmd => 'true',
|
||||||
|
}
|
||||||
sunet::scriptherder::cronjob { 'backupdb':
|
sunet::scriptherder::cronjob { 'backupdb':
|
||||||
cmd => "/root/tasks/backupdb.sh ${backup_server}",
|
cmd => "/root/tasks/backupdb.sh ${backup_server}",
|
||||||
hour => '2',
|
hour => '2',
|
||||||
|
|
Loading…
Reference in a new issue