- ssh::authorized_key_add { 'staticsync':
- target_user => 'staticsync',
+ ssh::authorized_key_add { "staticsync-${staticsync::user}":
+ target_user => $staticsync::user,
+ key => dig($facts, 'ssh_keys_users', $staticsync::user, 'id_rsa.pub', 'line'),