Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion manifests/client/user.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
## Get Key for remote backup user
if $push_ssh_key {
$server_user_exploded = "${server_user}@${server}"
$backup_server_ip = inline_template("<% _erbout.concat(Resolv::DNS.open.getaddress('${server}').to_s) %>")
if is_ip_address($server) {
$backup_server_ip = $server
} else {
$backup_server_ip = inline_template("<% _erbout.concat(Resolv::DNS.open.getaddress('${server}').to_s) %>")
}
sshkeys::set_authorized_key { "${server_user_exploded} to ${client_user}":
local_user => $client_user,
remote_user => $server_user_exploded,
Expand Down
4 changes: 4 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"name": "saz/sudo",
"version_requirement": "< 4.0.0"
}
{
"name": "puppetlabs-stdlib",
"version_requirement": "< 2.2.0"
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this json valid? It seems like there should be a comma there.

],
"operatingsystem_support": [
{ "operatingsystem": "Debian", "operatingsystemrelease": ["6", "7"]},
Expand Down