From 517f14821db31afffb98442c0cfe85b709f031ab Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 17 Jul 2023 20:33:53 +0900 Subject: [PATCH] Validate inputs to generate ssh key ... according to the validations implemented in puppet-ssh_keygen. Change-Id: Id523d429dd21439f64b31359a916a9dcf572a1bd --- manifests/worker.pp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/manifests/worker.pp b/manifests/worker.pp index 772f011a..7d85d06c 100644 --- a/manifests/worker.pp +++ b/manifests/worker.pp @@ -52,17 +52,17 @@ # Defaults to 'services' # class octavia::worker ( - Boolean $manage_service = true, - Boolean $enabled = true, - $package_ensure = 'present', - $workers = $facts['os_workers'], - Boolean $manage_nova_flavor = true, - Hash $nova_flavor_config = {}, - $key_path = '/etc/octavia/.ssh/octavia_ssh_key', - Boolean $manage_keygen = false, - $ssh_key_type = 'rsa', - $ssh_key_bits = 2048, - String[1] $amp_project_name = 'services', + Boolean $manage_service = true, + Boolean $enabled = true, + $package_ensure = 'present', + $workers = $facts['os_workers'], + Boolean $manage_nova_flavor = true, + Hash $nova_flavor_config = {}, + Stdlib::Absolutepath $key_path = '/etc/octavia/.ssh/octavia_ssh_key', + Boolean $manage_keygen = false, + Enum['rsa', 'dsa', 'ecdsa', 'ed25519', 'rsa1'] $ssh_key_type = 'rsa', + Integer $ssh_key_bits = 2048, + String[1] $amp_project_name = 'services', ) { include octavia::deps