Skip to content

Commit 360a35c

Browse files
committed
More options
1 parent 53e0c58 commit 360a35c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

manifests/bolt.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
String $ssh_user = 'root',
1616
String $ssh_group = 'root',
17+
String $ssh_key_type = 'rsa',
1718

1819
String $master = '', # lint:ignore:params_empty_string_assignment
1920
Enum['storeconfigs','static'] $keyshare_method = 'storeconfigs',

manifests/bolt/master.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
ensure => $ensure,
119119
key => pick($psick::bolt::bolt_user_pub_key,getvar('facts.bolt_user_key')),
120120
user => $psick::bolt::ssh_user,
121-
type => 'rsa',
121+
type => $psick::bolt::ssh_key_type,
122122
tag => "bolt_master_${psick::bolt::master}_${psick::bolt::bolt_user}",
123123
options => $psick::bolt::ssh_auth_key_options,
124124
}

manifests/bolt/node.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@
7878
}
7979
if $psick::bolt::keyshare_method == 'static' {
8080

81-
ssh_authorized_key { "bolt_user_${psick::bolt::ssh_user}_rsa-${psick::bolt::bolt_user_pub_key}":
81+
ssh_authorized_key { "bolt_user_${psick::bolt::ssh_user}_rsa-${psick::bolt::master}":
8282
ensure => $ensure,
8383
key => $psick::bolt::bolt_user_pub_key,
8484
user => $psick::bolt::ssh_user,
85-
type => 'rsa',
85+
type => $psick::bolt::ssh_key_type,
8686
options => $psick::bolt::ssh_auth_key_options,
8787
}
8888
}

0 commit comments

Comments
 (0)