# 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 { }