Work around a bug in Chef's snap_package resource

https://github.com/chef/chef/issues/8827

`snap install` returns 0 when a package is already installed, so no need
for a guard clause
This commit is contained in:
Greg Karékinian 2020-01-22 12:32:38 +01:00 committed by Sebastian Kippe
parent 09527e693b
commit 1b9a4aad17
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -25,9 +25,9 @@
# THE SOFTWARE.
#
package 'snapd'
snap_package 'bitcoin-core'
# FIXME: Switch to the snap_package resource when it gets fixed:
# https://github.com/chef/chef/issues/8827
execute "snap install bitcoin-core"
bitcoin_user = node['bitcoin']['username']
bitcoin_group = node['bitcoin']['usergroup']