From: Ismaƫl Bouya Date: Sun, 18 Feb 2018 00:56:39 +0000 (+0100) Subject: Add rules for localhost X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6a9197764f7d6f5bc7f321d45caaf66fd2dd6dd2;hp=ee0a29d96bbc401d97819e5723a083d33c32bb17;p=perso%2FImmae%2FProjets%2FPuppet.git Add rules for localhost --- diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 2755fee..4b03e16 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp @@ -10,5 +10,21 @@ class role::cryptoportfolio { password => postgresql_password('cryptoportfolio', generate_password(24, $password_seed, "postgres_cryptoportfolio")), } + postgresql::server::pg_hba_rule { 'allow localhost TCP access to cryptoportfolio user': + type => 'host', + database => 'cryptoportfolio', + user => 'cryptoportfolio', + address => '127.0.0.1/32', + auth_method => 'md5', + order => "b0", + } + postgresql::server::pg_hba_rule { 'allow localhost ip6 TCP access to cryptoportfolio user': + type => 'host', + database => 'cryptoportfolio', + user => 'cryptoportfolio', + address => '::1/128', + auth_method => 'md5', + order => "b0", + } ensure_packages("go") }