aboutsummaryrefslogtreecommitdiff
path: root/modules/role
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-17 19:31:35 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-18 01:12:24 +0100
commit57ae81eaeb85a2892f1afe07ea5be1917f64d065 (patch)
tree5551bf297aa0ae8978bda4720197c70abcee0314 /modules/role
parent28f9451daeac73f91b031470060c883008b4a363 (diff)
downloadPuppet-57ae81eaeb85a2892f1afe07ea5be1917f64d065.tar.gz
Puppet-57ae81eaeb85a2892f1afe07ea5be1917f64d065.tar.zst
Puppet-57ae81eaeb85a2892f1afe07ea5be1917f64d065.zip
Add postgresql module and cryptoportfolio role
Diffstat (limited to 'modules/role')
-rw-r--r--modules/role/manifests/cryptoportfolio.pp14
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 @@
1class 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}