Move version and checksum to attributes
This commit is contained in:
parent
2f8de91008
commit
462e7ff858
@ -1 +1,3 @@
|
|||||||
node.default['kosmos-parity']['home_path'] = "/home/parity"
|
node.default['kosmos-parity']['home_path'] = "/home/parity"
|
||||||
|
node.default['kosmos-parity']['version'] = "1.6.6"
|
||||||
|
node.default['kosmos-parity']['checksum'] = '99ed4c0bf8cf7e0b143d8901f51c666d743844b0788ab03ccacb1f4538bfd085'
|
||||||
|
@ -19,11 +19,12 @@ user "parity" do
|
|||||||
gid 72748
|
gid 72748
|
||||||
end
|
end
|
||||||
|
|
||||||
parity_version = "1.6.6"
|
parity_version = node['kosmos-parity']['version']
|
||||||
parity_package_path = "#{Chef::Config[:file_cache_path]}/parity_#{parity_version}_amd64.deb"
|
parity_package_path = "#{Chef::Config[:file_cache_path]}/parity_#{parity_version}_amd64.deb"
|
||||||
remote_file parity_package_path do
|
remote_file parity_package_path do
|
||||||
source "https://d1h4xl4cr1h0mo.cloudfront.net/v#{parity_version}/x86_64-unknown-linux-gnu/parity_#{parity_version}_amd64.deb"
|
source "https://d1h4xl4cr1h0mo.cloudfront.net/v#{parity_version}/x86_64-unknown-linux-gnu/parity_#{parity_version}_amd64.deb"
|
||||||
mode 0750
|
checksum node['kosmos-parity']['checksum']
|
||||||
|
mode 0750
|
||||||
notifies :install, "dpkg_package[parity]", :immediately
|
notifies :install, "dpkg_package[parity]", :immediately
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user