• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: コミット

Grid環境構築用のChefリポジトリです。


コミットメタ情報

リビジョンcf34c4a18d871e30c375499780dca7eae09c8f54 (tree)
日時2018-08-22 18:44:56
作者whitestar <whitestar@user...>
コミッターwhitestar

ログメッセージ

refactoring.

変更サマリ

差分

--- a/cookbooks/docker-grid/recipes/compose.rb
+++ b/cookbooks/docker-grid/recipes/compose.rb
@@ -75,11 +75,14 @@ end
7575
7676 case install_flavor
7777 when 'dockerproject'
78- expected_ver = node['docker-grid']['compose']['release_url'].match(/(\d+\.\d+.\d+)/)[1]
78+ # latest version
79+ # %x(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r .tag_name).chomp
80+ release_url = node['docker-grid']['compose']['release_url']
81+ expected_ver = release_url.match(/(\d+\.\d+.\d+)/)[1]
7982
8083 execute 'install_docker_compose' do
8184 user 'root'
82- command "curl -L \"#{node['docker-grid']['compose']['release_url']}\" -o #{docker_compose_path} && chmod +x #{docker_compose_path}"
85+ command "curl -L \"#{release_url}\" -o #{docker_compose_path} && chmod +x #{docker_compose_path}"
8386 action :run
8487 not_if "#{docker_compose_path} -v | grep #{expected_ver},"
8588 not_if { ::File.exist?(docker_compose_path) } unless auto_upgrade
旧リポジトリブラウザで表示