Move bitcoind datadir from host to VM storage

This commit is contained in:
Râu Cao
2022-10-27 11:50:44 +02:00
parent 756382ec9f
commit dec3efc339
2 changed files with 1 additions and 22 deletions

View File

@@ -3,27 +3,6 @@
# Recipe:: source
#
# TODO move to custom kosmos cookbook before publishing bitcoin cookbook
systemd_unit "mnt-data-bitcoin.mount" do
content({
Unit: {
Description: 'Bitcoin Core data directory',
},
Mount: {
What: '/var/lib/vmshare-bitcoin',
Where: '/mnt/data/bitcoin',
Type: '9p',
Options: 'trans=virtio,version=9p2000.L'
},
Install: {
WantedBy: 'multi-user.target'
}
})
verify false
triggers_reload true
action [:create, :enable, :start]
end
build_essential
include_recipe 'ark'