diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-18 01:56:39 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-18 11:41:38 +0100 |
commit | 6a9197764f7d6f5bc7f321d45caaf66fd2dd6dd2 (patch) | |
tree | 248a7448bc906c569155e3f8399ee4a044181f93 /modules | |
parent | ee0a29d96bbc401d97819e5723a083d33c32bb17 (diff) | |
download | Puppet-6a9197764f7d6f5bc7f321d45caaf66fd2dd6dd2.tar.gz Puppet-6a9197764f7d6f5bc7f321d45caaf66fd2dd6dd2.tar.zst Puppet-6a9197764f7d6f5bc7f321d45caaf66fd2dd6dd2.zip |
Add rules for localhost
Diffstat (limited to 'modules')
-rw-r--r-- | modules/role/manifests/cryptoportfolio.pp | 16 |
1 files changed, 16 insertions, 0 deletions
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 { | |||
10 | password => postgresql_password('cryptoportfolio', generate_password(24, $password_seed, "postgres_cryptoportfolio")), | 10 | password => postgresql_password('cryptoportfolio', generate_password(24, $password_seed, "postgres_cryptoportfolio")), |
11 | } | 11 | } |
12 | 12 | ||
13 | postgresql::server::pg_hba_rule { 'allow localhost TCP access to cryptoportfolio user': | ||
14 | type => 'host', | ||
15 | database => 'cryptoportfolio', | ||
16 | user => 'cryptoportfolio', | ||
17 | address => '127.0.0.1/32', | ||
18 | auth_method => 'md5', | ||
19 | order => "b0", | ||
20 | } | ||
21 | postgresql::server::pg_hba_rule { 'allow localhost ip6 TCP access to cryptoportfolio user': | ||
22 | type => 'host', | ||
23 | database => 'cryptoportfolio', | ||
24 | user => 'cryptoportfolio', | ||
25 | address => '::1/128', | ||
26 | auth_method => 'md5', | ||
27 | order => "b0", | ||
28 | } | ||
13 | ensure_packages("go") | 29 | ensure_packages("go") |
14 | } | 30 | } |