diff options
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: |