Validate inputs to generate ssh key

... according to the validations implemented in puppet-ssh_keygen.

Change-Id: Id523d429dd21439f64b31359a916a9dcf572a1bd
This commit is contained in:
Takashi Kajinami 2023-07-17 20:33:53 +09:00
parent 533d9e0d3a
commit 517f14821d

View File

@ -58,10 +58,10 @@ class octavia::worker (
$workers = $facts['os_workers'],
Boolean $manage_nova_flavor = true,
Hash $nova_flavor_config = {},
$key_path = '/etc/octavia/.ssh/octavia_ssh_key',
Stdlib::Absolutepath $key_path = '/etc/octavia/.ssh/octavia_ssh_key',
Boolean $manage_keygen = false,
$ssh_key_type = 'rsa',
$ssh_key_bits = 2048,
Enum['rsa', 'dsa', 'ecdsa', 'ed25519', 'rsa1'] $ssh_key_type = 'rsa',
Integer $ssh_key_bits = 2048,
String[1] $amp_project_name = 'services',
) {