Move the binary URL to an attribute
This commit is contained in:
@@ -32,7 +32,6 @@ working_directory = "/var/lib/gitea"
|
||||
git_home_directory = "/home/git"
|
||||
config_directory = "/etc/gitea"
|
||||
gitea_binary_path = "/usr/local/bin/gitea"
|
||||
gitea_version = node['kosmos_gitea']['version']
|
||||
gitea_data_bag_item = data_bag_item("credentials", "gitea")
|
||||
smtp_credentials = data_bag_item("credentials", "smtp")
|
||||
jwt_secret = gitea_data_bag_item["jwt_secret"]
|
||||
@@ -107,7 +106,7 @@ template "#{config_directory}/app.ini" do
|
||||
end
|
||||
|
||||
remote_file gitea_binary_path do
|
||||
source "https://dl.gitea.io/gitea/#{gitea_version}/gitea-#{gitea_version}-linux-amd64"
|
||||
source node['kosmos_gitea']['binary_url']
|
||||
checksum node['kosmos_gitea']['binary_checksum']
|
||||
mode "0755"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user