Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 01c48b2

Browse files
committed
Use new Hash style for ssh_keygen in dirvish
1 parent 72772b3 commit 01c48b2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

modules/dirvish/manifests/client.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
) {
88

99
# Read the dirvish key from the puppetmaster
10-
$pub_key = ssh_keygen('dirvish_key','public')
10+
$pub_key = ssh_keygen({name => 'dirvish_key', public => 'true'})
1111

1212
file_line { 'dirvish_ssh_pubkey':
1313
ensure => present,

modules/dirvish/manifests/install.pp

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121

2222
# Read the dirvish SSH key (and create it if necessary)
2323

24-
$pub_key = ssh_keygen('dirvish_key','public')
25-
$priv_key = ssh_keygen('dirvish_key','private')
24+
# Generate RSA keys reliably
25+
$pub_key = ssh_keygen({name => 'dirvish_key', public => 'true'})
26+
$priv_key = ssh_keygen({name => 'dirvish_key'})
2627

2728
file { "${::dirvish::backup_location}/ssh/dirvish_key":
2829
owner => 'root',

0 commit comments

Comments
 (0)