diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-18 01:13:35 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-18 01:13:35 +0100 |
commit | ee0a29d96bbc401d97819e5723a083d33c32bb17 (patch) | |
tree | 22ed4f129b32201e4f3e562d2f23cc45c5df5afb /modules/role | |
parent | 28f9451daeac73f91b031470060c883008b4a363 (diff) | |
parent | 47d7d947ebc0da8bde02515a94d8205df47c944a (diff) | |
download | Puppet-ee0a29d96bbc401d97819e5723a083d33c32bb17.tar.gz Puppet-ee0a29d96bbc401d97819e5723a083d33c32bb17.tar.zst Puppet-ee0a29d96bbc401d97819e5723a083d33c32bb17.zip |
Merge branch 'cryptoportfolio'
Diffstat (limited to 'modules/role')
-rw-r--r-- | modules/role/manifests/cryptoportfolio.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp new file mode 100644 index 0000000..2755fee --- /dev/null +++ b/modules/role/manifests/cryptoportfolio.pp | |||
@@ -0,0 +1,14 @@ | |||
1 | class role::cryptoportfolio { | ||
2 | include "base_installation" | ||
3 | |||
4 | include "profile::postgresql" | ||
5 | |||
6 | $password_seed = lookup("base_installation::puppet_pass_seed") |$key| { {} } | ||
7 | |||
8 | postgresql::server::db { 'cryptoportfolio': | ||
9 | user => 'cryptoportfolio', | ||
10 | password => postgresql_password('cryptoportfolio', generate_password(24, $password_seed, "postgres_cryptoportfolio")), | ||
11 | } | ||
12 | |||
13 | ensure_packages("go") | ||
14 | } | ||