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/manifests | |
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/manifests')
-rw-r--r-- | modules/role/manifests/backup.pp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/role/manifests/backup.pp b/modules/role/manifests/backup.pp index 6b8d00c..bdc35d5 100644 --- a/modules/role/manifests/backup.pp +++ b/modules/role/manifests/backup.pp | |||
@@ -70,6 +70,7 @@ class role::backup ( | |||
70 | $dirname = $infos["name"] | 70 | $dirname = $infos["name"] |
71 | $login = $infos["login"] | 71 | $login = $infos["login"] |
72 | $host = $infos["host"] | 72 | $host = $infos["host"] |
73 | $port = if $infos.dig("port") { $infos.dig("port") } else { 22 } | ||
73 | $dest = "$login@$host" | 74 | $dest = "$login@$host" |
74 | $base = "$mountpoint/$dirname" | 75 | $base = "$mountpoint/$dirname" |
75 | $nbr = $infos["nbr"] | 76 | $nbr = $infos["nbr"] |