diff --git a/nodes/bitcoin-2.json b/nodes/bitcoin-2.json index 5d31c61..d4548b3 100644 --- a/nodes/bitcoin-2.json +++ b/nodes/bitcoin-2.json @@ -70,7 +70,9 @@ "nginx::commons_dir", "nginx::commons_script", "nginx::commons_conf", - "kosmos-nginx::firewall" + "kosmos-nginx::firewall", + "backup::default", + "logrotate::default" ], "platform": "ubuntu", "platform_version": "20.04", diff --git a/site-cookbooks/kosmos-bitcoin/metadata.rb b/site-cookbooks/kosmos-bitcoin/metadata.rb index 3d9ac07..8f58ce4 100644 --- a/site-cookbooks/kosmos-bitcoin/metadata.rb +++ b/site-cookbooks/kosmos-bitcoin/metadata.rb @@ -20,6 +20,7 @@ chef_version '>= 14.0' # source_url 'https://github.com//kosmos-bitcoin' depends 'ark' +depends 'backup' depends 'git' depends 'golang' depends 'kosmos-nginx' diff --git a/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb b/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb index e63fd47..c919ef7 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/lndhub.rb @@ -114,4 +114,7 @@ unless node.chef_environment == "development" nginx_site node[app_name]['domain'] do action :enable end + + node.override["backup"]["archives"]["lndhub"] = ["/var/lib/redis/dump-6379.rdb"] + include_recipe "backup" end