target => $cf_front_app,
before => File[$cf_front_app],
} ~>
- exec { "remove old directory":
+ exec { "remove old ${cf_front_app} directory":
refreshonly => true,
user => $cf_user,
command => "/usr/bin/rm -rf ${cf_front_app}",
File["/etc/systemd/system/cryptoportfolio-app.service"],
Postgresql::Server::Db[$cf_pg_db]
],
+ } ~>
+ exec { "dump $cf_pg_db structure":
+ refreshonly => true,
+ user => $::profile::postgresql::pg_user,
+ group => $::profile::postgresql::pg_user,
+ command => "/usr/bin/pg_dump --schema-only --clean --no-publications $cf_pg_db > /var/lib/postgres/${cf_pg_db}.schema",
}
file { $cf_front_app_api_conf: