• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: コミット

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


コミットメタ情報

リビジョンc7505fa40b59faf381f69d4a1fd1a6b2b9df4179 (tree)
日時2018-09-09 13:50:08
作者whitestar <whitestar@user...>
コミッターwhitestar

ログメッセージ

refactors pipeline definitions.

変更サマリ

差分

--- a/cookbooks/00cookbook/Rakefile
+++ b/cookbooks/00cookbook/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/apt_utils/Rakefile
+++ b/cookbooks/apt_utils/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/apt_utils/concourse.yml
+++ b/cookbooks/apt_utils/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p apt_utils-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p apt_utils-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/athenz/Rakefile
+++ b/cookbooks/athenz/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/athenz/concourse.yml
+++ b/cookbooks/athenz/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p athenz-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p athenz-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/chef_utils/Rakefile
+++ b/cookbooks/chef_utils/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/chef_utils/concourse.yml
+++ b/cookbooks/chef_utils/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p chef_utils-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p chef_utils-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/concourse-ci/Rakefile
+++ b/cookbooks/concourse-ci/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/concourse-ci/concourse.yml
+++ b/cookbooks/concourse-ci/concourse.yml
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
--- a/cookbooks/etcd-grid/Rakefile
+++ b/cookbooks/etcd-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/etcd-grid/concourse.yml
+++ b/cookbooks/etcd-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p etcd-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p etcd-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/gitlab-grid/Rakefile
+++ b/cookbooks/gitlab-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/gitlab-grid/concourse.yml
+++ b/cookbooks/gitlab-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p gitlab-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p gitlab-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/hc-vault/Rakefile
+++ b/cookbooks/hc-vault/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/hc-vault/concourse.yml
+++ b/cookbooks/hc-vault/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p hc-vault-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p hc-vault-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/hypercontainer/Rakefile
+++ b/cookbooks/hypercontainer/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/hypercontainer/concourse.yml
+++ b/cookbooks/hypercontainer/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p hypercontainer-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p hypercontainer-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/jenkins-grid/Rakefile
+++ b/cookbooks/jenkins-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/jenkins-grid/concourse.yml
+++ b/cookbooks/jenkins-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p jenkins-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p jenkins-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/libvirt-grid/Rakefile
+++ b/cookbooks/libvirt-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/libvirt-grid/concourse.yml
+++ b/cookbooks/libvirt-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p libvirt-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p libvirt-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/lxcs/Rakefile
+++ b/cookbooks/lxcs/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/lxcs/concourse.yml
+++ b/cookbooks/lxcs/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p lxcs-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p lxcs-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/minio-grid/Rakefile
+++ b/cookbooks/minio-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/minio-grid/concourse.yml
+++ b/cookbooks/minio-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p minio-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p minio-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/nagios-grid/Rakefile
+++ b/cookbooks/nagios-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/nagios-grid/concourse.yml
+++ b/cookbooks/nagios-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p nagios-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
2+# $ fly -t $CC_TARGET sp -p nagios-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
33 resources:
44 - name: src-git
55 type: git
@@ -52,5 +52,6 @@ jobs:
5252 - -c
5353 - |
5454 cd ./src-git/cookbooks/((cookbook-name))
55+ bundle config --local silence_root_warning 1
5556 bundle install
5657 rake
--- a/cookbooks/nexus-grid/Rakefile
+++ b/cookbooks/nexus-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/nexus-grid/concourse.yml
+++ b/cookbooks/nexus-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p nexus-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p nexus-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/nodejs_utils/Rakefile
+++ b/cookbooks/nodejs_utils/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/nodejs_utils/concourse.yml
+++ b/cookbooks/nodejs_utils/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p nodejs_utils-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p nodejs_utils-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/openldap-grid/Rakefile
+++ b/cookbooks/openldap-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/samba-grid/Rakefile
+++ b/cookbooks/samba-grid/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/samba-grid/concourse.yml
+++ b/cookbooks/samba-grid/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p samba-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
2+# $ fly -t $CC_TARGET sp -p samba-grid-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
33 resources:
44 - name: src-git
55 type: git
@@ -52,5 +52,6 @@ jobs:
5252 - -c
5353 - |
5454 cd ./src-git/cookbooks/((cookbook-name))
55+ bundle config --local silence_root_warning 1
5556 bundle install
5657 rake
--- a/cookbooks/spinnaker/Rakefile
+++ b/cookbooks/spinnaker/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/spinnaker/concourse.yml
+++ b/cookbooks/spinnaker/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p spinnaker-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p spinnaker-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
--- a/cookbooks/squid-proxy/Rakefile
+++ b/cookbooks/squid-proxy/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/squid-proxy/concourse.yml
+++ b/cookbooks/squid-proxy/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p squid-proxy-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
2+# $ fly -t $CC_TARGET sp -p squid-proxy-cookbook -c concourse.yml -l fly-vars.yml -l ~/credentials.yml
33 resources:
44 - name: src-git
55 type: git
@@ -19,7 +19,7 @@ resources:
1919 ca_certs:
2020 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2121 cert: ((docker-reg-ca-cert))
22- check_every: 12h # default: 1m
22+ check_every: 6h # default: 1m
2323
2424 jobs:
2525 - name: build-cookbook
@@ -60,5 +60,6 @@ jobs:
6060 - -c
6161 - |
6262 cd ./src-git/cookbooks/((cookbook-name))
63+ bundle config --local silence_root_warning 1
6364 bundle install
6465 rake
--- a/cookbooks/ssl_cert/Rakefile
+++ b/cookbooks/ssl_cert/Rakefile
@@ -3,6 +3,14 @@ require 'rubocop/rake_task'
33 require 'foodcritic'
44 require 'stove/rake_task'
55
6+task :'set-pipeline' do
7+ sh [
8+ "fly -t $CC_TARGET sp -p #{File.basename(Dir.pwd)}-cookbook -c concourse.yml",
9+ '-l fly-vars.yml -l ~/sec/credentials-prod.yml'
10+ ].join(' ')
11+end
12+task :sp => 'set-pipeline'
13+
614 namespace :style do
715 desc 'Run Ruby style checks'
816 RuboCop::RakeTask.new(:ruby) do |t|
--- a/cookbooks/ssl_cert/concourse.yml
+++ b/cookbooks/ssl_cert/concourse.yml
@@ -1,5 +1,5 @@
11 ---
2-# $ fly -t target sp -p ssl_cert-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
2+# $ fly -t $CC_TARGET sp -p ssl_cert-cookbook -c concourse.yml -l fly-vars.yml -l ~/sec/credentials-prod.yml
33 resources:
44 - name: src-git
55 type: git
@@ -21,7 +21,7 @@ resources:
2121 ca_certs:
2222 - domain: ((registry-mirror-domain)) # e.g. registry.docker.example.com:5000
2323 cert: ((docker-reg-ca-cert))
24- check_every: 12h # default: 1m
24+ check_every: 6h # default: 1m
2525
2626 jobs:
2727 - name: test-cookbook
@@ -59,6 +59,7 @@ jobs:
5959 - -c
6060 - |
6161 cd ./src-git/cookbooks/((cookbook-name))
62+ bundle config --local silence_root_warning 1
6263 bundle install
6364 rake
6465 - name: publish-cookbook
@@ -89,6 +90,7 @@ jobs:
8990 echo '{"username":"((chef-username))","key":"/root/chef-client-key.pem"}' > /root/.stove
9091 echo "$chef_client_key" > /root/chef-client-key.pem
9192 cd ./src-git/cookbooks/((cookbook-name))
93+ bundle config --local silence_root_warning 1
9294 bundle install
9395 rake publish
9496 - put: src-git
@@ -97,4 +99,4 @@ jobs:
9799 tag_prefix: ((cookbook-name))-
98100 tag: src-git/cookbooks/((cookbook-name))/version
99101 only_tag: true
100- annotate: ../src-git/cookbooks/((cookbook-name))/version
102+ annotate: src-git/cookbooks/((cookbook-name))/version
旧リポジトリブラウザで表示