diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-12 12:04:12 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-12 12:09:28 +0200 |
commit | 4e8486c1a0453209043480eaf8b5769e70864420 (patch) | |
tree | 7d393b0cdaef94ca81856db3883b3baa9c94c539 /modules/role/templates/backup/backup_dirname_head.sh.erb | |
parent | 528b0cf99b8e62789f982970ee3766ec4f54133f (diff) | |
download | Puppet-4e8486c1a0453209043480eaf8b5769e70864420.tar.gz Puppet-4e8486c1a0453209043480eaf8b5769e70864420.tar.zst Puppet-4e8486c1a0453209043480eaf8b5769e70864420.zip |
Add a way to specify a port for backup hosts
Diffstat (limited to 'modules/role/templates/backup/backup_dirname_head.sh.erb')
-rw-r--r-- | modules/role/templates/backup/backup_dirname_head.sh.erb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/role/templates/backup/backup_dirname_head.sh.erb b/modules/role/templates/backup/backup_dirname_head.sh.erb index e20cfd3..15a0448 100644 --- a/modules/role/templates/backup/backup_dirname_head.sh.erb +++ b/modules/role/templates/backup/backup_dirname_head.sh.erb | |||
@@ -1,4 +1,5 @@ | |||
1 | ##### <%= @dirname %> ##### | 1 | ##### <%= @dirname %> ##### |
2 | PORT="<%= @port %>" | ||
2 | DEST="<%= @dest %>" | 3 | DEST="<%= @dest %>" |
3 | BASE="<%= @base %>" | 4 | BASE="<%= @base %>" |
4 | OLD_BAK_BASE=$BASE/older/j | 5 | OLD_BAK_BASE=$BASE/older/j |
@@ -10,6 +11,7 @@ if ! ssh \ | |||
10 | -o PreferredAuthentications=publickey \ | 11 | -o PreferredAuthentications=publickey \ |
11 | -o StrictHostKeyChecking=yes \ | 12 | -o StrictHostKeyChecking=yes \ |
12 | -o ClearAllForwardings=yes \ | 13 | -o ClearAllForwardings=yes \ |
14 | -p $PORT \ | ||
13 | $DEST backup; then | 15 | $DEST backup; then |
14 | echo "Fichier de verrouillage backup sur $DEST ou impossible de se connecter" >&2 | 16 | echo "Fichier de verrouillage backup sur $DEST ou impossible de se connecter" >&2 |
15 | skip=$DEST | 17 | skip=$DEST |