Update restore scripts
This commit is contained in:
parent
261bb179f4
commit
978fce9e08
2 changed files with 25 additions and 2 deletions
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/expect
|
||||
set nodename [lindex $argv 0]
|
||||
|
||||
spawn dsmc cancel restore -asnodename=$nodename
|
||||
|
||||
expect -exact "Which session to Cancel ? (1 - 1 or Quit): " {
|
||||
send -- "1\r"
|
||||
expect eof
|
||||
}
|
|
@ -21,11 +21,25 @@ class net::baas2_restoretest(
|
|||
group => 'root',
|
||||
}
|
||||
|
||||
file { '/opt/baas2/run-restore.expect':
|
||||
file { '/opt/baas2/run-successful-restore.expect':
|
||||
ensure => 'file',
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
content => file('net/baas2_restoretest/run-restore.expect')
|
||||
content => file('net/baas2_restoretest/run-successful-restore.expect')
|
||||
}
|
||||
|
||||
file { '/opt/baas2/cancel-restore.expect':
|
||||
ensure => 'file',
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
content => file('net/baas2_restoretest/cancel-restore.expect')
|
||||
}
|
||||
|
||||
file { '/opt/baas2/run-failed-restore.expect':
|
||||
ensure => 'file',
|
||||
mode => '0755',
|
||||
owner => 'root',
|
||||
content => file('net/baas2_restoretest/run-failed-restore.expect')
|
||||
}
|
||||
|
||||
file { '/opt/baas2/validate-backup-files':
|
||||
|
|
Loading…
Add table
Reference in a new issue