Move the version and checksum to attributes
This commit is contained in:
parent
2cd85afb28
commit
39f23dd373
|
@ -0,0 +1,2 @@
|
|||
node.default["kosmos-ejabberd"]["version"] = "19.02"
|
||||
node.default["kosmos-ejabberd"]["checksum"] = "aea550c58e61eab04ca9beb8896d8b04f4a79321c21dee160a67ad6787236f51"
|
|
@ -12,12 +12,13 @@ cookbook_file "#{Chef::Config[:file_cache_path]}/pg.new.sql" do
|
|||
mode "0664"
|
||||
end
|
||||
|
||||
ejabberd_version = "19.02"
|
||||
ejabberd_version = node["kosmos-ejabberd"]["version"]
|
||||
package_checksum = node["kosmos-ejabberd"]["checksum"]
|
||||
package_path = "#{Chef::Config['file_cache_path']}/ejabberd_#{ejabberd_version}-0_amd64.deb"
|
||||
|
||||
remote_file package_path do
|
||||
source "https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/#{ejabberd_version}/ejabberd_#{ejabberd_version}-0_amd64.deb"
|
||||
checksum "aea550c58e61eab04ca9beb8896d8b04f4a79321c21dee160a67ad6787236f51"
|
||||
checksum package_checksum
|
||||
notifies :install, "dpkg_package[ejabberd]", :immediately
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue