26 lines
697 B
Ruby
26 lines
697 B
Ruby
#
|
|
# Cookbook Name:: kosmos-parity
|
|
# Recipe:: default
|
|
#
|
|
# Copyright 2017, Kosmos
|
|
#
|
|
# All rights reserved - Do Not Redistribute
|
|
#
|
|
|
|
include_recipe 'kosmos-parity::user'
|
|
|
|
parity_version = node['kosmos-parity']['version']
|
|
parity_package_path = "#{Chef::Config[:file_cache_path]}/parity_#{parity_version}_amd64.deb"
|
|
remote_file parity_package_path do
|
|
source "https://d1h4xl4cr1h0mo.cloudfront.net/v#{parity_version}/x86_64-unknown-linux-gnu/parity_#{parity_version}_amd64.deb"
|
|
checksum node['kosmos-parity']['checksum']
|
|
mode 0750
|
|
notifies :install, "dpkg_package[parity]", :immediately
|
|
end
|
|
|
|
dpkg_package "parity" do
|
|
source parity_package_path
|
|
end
|
|
|
|
include_recipe "kosmos-parity::backup"
|