summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 83ccf1b3bacb484bc6cb61c43a85882fb3f68009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# autossh tunnel interface
#
# TODO: User handling should be put somewhere. Here we are duplicating
#       code from backupninja module. Further developments should consider
#       have an unified user handling, maybe at puppet-user.
#
#       For now, it's important to preserve the 'backupninja-' like tag
#       otherwise the behavior of this code will conflict with backupninja
#       and we'll see strange things like exported resources not being
#       realized.

# this define realizes all needed resources for a hosted tunnel
define tunnel_server_realize($host) {
  User               <<| tag == "backupninja-${host}" |>>
  File               <<| tag == "backupninja-${host}" |>>
  Ssh_authorized_key <<| tag == "backupninja-${host}" |>>
}

class tunnel {
}