diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-21 14:44:41 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-02-21 15:32:21 +0100 |
commit | 43c4ee4e2fd1c7ed992a420d6d478375475194dd (patch) | |
tree | 71b5d9f6d10616409606d2126cfafb7491a8353a /modules/role/manifests | |
parent | f099c453f79d1df1b77dd8508345568feef35178 (diff) | |
download | Puppet-43c4ee4e2fd1c7ed992a420d6d478375475194dd.tar.gz Puppet-43c4ee4e2fd1c7ed992a420d6d478375475194dd.tar.zst Puppet-43c4ee4e2fd1c7ed992a420d6d478375475194dd.zip |
Dump cryptoportfolio schema
Diffstat (limited to 'modules/role/manifests')
-rw-r--r-- | modules/role/manifests/cryptoportfolio.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index a1cfde3..9a2bfd2 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp | |||
@@ -206,7 +206,7 @@ class role::cryptoportfolio { | |||
206 | target => $cf_front_app, | 206 | target => $cf_front_app, |
207 | before => File[$cf_front_app], | 207 | before => File[$cf_front_app], |
208 | } ~> | 208 | } ~> |
209 | exec { "remove old directory": | 209 | exec { "remove old ${cf_front_app} directory": |
210 | refreshonly => true, | 210 | refreshonly => true, |
211 | user => $cf_user, | 211 | user => $cf_user, |
212 | command => "/usr/bin/rm -rf ${cf_front_app}", | 212 | command => "/usr/bin/rm -rf ${cf_front_app}", |
@@ -257,6 +257,12 @@ class role::cryptoportfolio { | |||
257 | File["/etc/systemd/system/cryptoportfolio-app.service"], | 257 | File["/etc/systemd/system/cryptoportfolio-app.service"], |
258 | Postgresql::Server::Db[$cf_pg_db] | 258 | Postgresql::Server::Db[$cf_pg_db] |
259 | ], | 259 | ], |
260 | } ~> | ||
261 | exec { "dump $cf_pg_db structure": | ||
262 | refreshonly => true, | ||
263 | user => $::profile::postgresql::pg_user, | ||
264 | group => $::profile::postgresql::pg_user, | ||
265 | command => "/usr/bin/pg_dump --schema-only --clean --no-publications $cf_pg_db > /var/lib/postgres/${cf_pg_db}.schema", | ||
260 | } | 266 | } |
261 | 267 | ||
262 | file { $cf_front_app_api_conf: | 268 | file { $cf_front_app_api_conf: |