From 724d165cc93acbebfaf662a80f6bc6bb3c689ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 15 May 2018 22:08:45 +0200 Subject: Revert "Cleanup cryptoportfolio old file" This reverts commit 020e144eb61420a59b1c11db2fcab4a292dbaf5b. --- modules/base_installation/manifests/cleanup.pp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/base_installation/manifests/cleanup.pp b/modules/base_installation/manifests/cleanup.pp index 1b4a9fc..96aaa6b 100644 --- a/modules/base_installation/manifests/cleanup.pp +++ b/modules/base_installation/manifests/cleanup.pp @@ -17,9 +17,4 @@ class base_installation::cleanup inherits base_installation { "py-cryptoportfolio-after": ensure => absent; } - - file { "/home/cryptoportfolio/go/src/immae.eu": - ensure => absent, - force => true, - } } -- cgit v1.2.3 From cc54396280acf37ee5bd5b2ddf75c6cc97ed1c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 15 May 2018 22:11:23 +0200 Subject: Cleanup cryptoportfolio old directories --- modules/role/manifests/cryptoportfolio/front.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/role/manifests/cryptoportfolio/front.pp b/modules/role/manifests/cryptoportfolio/front.pp index cf73a27..0aa419f 100644 --- a/modules/role/manifests/cryptoportfolio/front.pp +++ b/modules/role/manifests/cryptoportfolio/front.pp @@ -33,6 +33,13 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { require => User["$user:"], } + # Cleanup of old directories + file { "${home}/go/src/immae.eu": + ensure => "absent", + force => true, + backup => false, + } + file { "${home}/front": ensure => "link", target => $cf_front_app, -- cgit v1.2.3