From 9eb79682499f8a3aa09a5ca64e82025a0bd83a89 Mon Sep 17 00:00:00 2001 From: Ben Morrice Date: Thu, 24 Oct 2024 10:23:05 +0200 Subject: [PATCH] Add a comment referencing where this Enum is defined --- lib/puppet/functions/postgresql/postgresql_password.rb | 2 ++ types/pg_password_encryption.pp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/puppet/functions/postgresql/postgresql_password.rb b/lib/puppet/functions/postgresql/postgresql_password.rb index b03f9279ad..681ea1af4e 100644 --- a/lib/puppet/functions/postgresql/postgresql_password.rb +++ b/lib/puppet/functions/postgresql/postgresql_password.rb @@ -24,6 +24,8 @@ required_param 'Variant[String[1], Integer]', :username required_param 'Variant[String[1], Sensitive[String[1]], Integer]', :password optional_param 'Boolean', :sensitive + # Note that this Enum is also defined in: + # types/pg_password_encryption.pp optional_param 'Optional[Enum["md5", "scram-sha-256"]]', :hash optional_param 'Optional[Variant[String[1], Integer]]', :salt return_type 'Variant[String, Sensitive[String]]' diff --git a/types/pg_password_encryption.pp b/types/pg_password_encryption.pp index b2b5be66e5..7512174a89 100644 --- a/types/pg_password_encryption.pp +++ b/types/pg_password_encryption.pp @@ -1,2 +1,4 @@ # @summary the supported password_encryption +# Note that this Enum is also defined in: +# lib/puppet/functions/postgresql/postgresql_password.rb type Postgresql::Pg_password_encryption = Enum['md5', 'scram-sha-256']