• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: コミット

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


コミットメタ情報

リビジョン37430c1677bac382c302d4cb435f82b6e481c64b (tree)
日時2018-09-12 22:13:18
作者whitestar <whitestar@user...>
コミッターwhitestar

ログメッセージ

refactoring.

変更サマリ

差分

--- a/cookbooks/00cookbook/Rakefile
+++ b/cookbooks/00cookbook/Rakefile
@@ -10,12 +10,18 @@ desc 'Initialize project'
1010 task :init do
1111 next if cookbook_name == tpl_cookbook
1212
13+ ruby [
14+ %(-pne '$_.gsub!(/^cookbook-name: .*$/, "cookbook-name: #{cookbook_name}")'),
15+ '-i fly-vars.local.yml',
16+ ].join(' ')
17+
1318 [
1419 '.foodcritic',
1520 '.rubocop.yml',
1621 'Berksfile',
1722 'concourse.yml',
1823 'fly-vars.yml',
24+ 'fly-vars.local.yml',
1925 'Gemfile',
2026 'Gemfile.lock',
2127 'version',
@@ -31,6 +37,7 @@ task :update do
3137 [
3238 'Rakefile',
3339 'concourse.yml',
40+ 'fly-vars.yml',
3441 'Gemfile',
3542 'Gemfile.lock',
3643 ].each {|conf|
@@ -42,7 +49,7 @@ desc 'fly set-pipeline'
4249 task :'set-pipeline' do
4350 sh [
4451 "fly -t $CC_TARGET sp -p #{cookbook_name}-cookbook -c concourse.yml",
45- '-l fly-vars.yml -l ~/sec/credentials-prod.yml',
52+ '-l fly-vars.yml -l fly-vars.local.yml -l ~/sec/credentials-prod.yml',
4653 ].join(' ')
4754 end
4855 desc 'rake set-pipeline alias'
--- /dev/null
+++ b/cookbooks/00cookbook/fly-vars.local.yml
@@ -0,0 +1,2 @@
1+---
2+cookbook-name: 00cookbook
--- a/cookbooks/00cookbook/fly-vars.yml
+++ b/cookbooks/00cookbook/fly-vars.yml
@@ -1,3 +1,2 @@
11 ---
2-cookbook-name: 00cookbook
32 chefdk-version: 1.6.11
旧リポジトリブラウザで表示