Grid環境構築用のChefリポジトリです。
Révision | e9d1dce43b16e2e4f7e095a36a7595d9eb5a9308 (tree) |
---|---|
l'heure | 2017-02-15 22:36:47 |
Auteur | whitestar <whitestar@gaea...> |
Commiter | whitestar |
Bug fix: SSH keys directory volume mount configurations.
@@ -1,6 +1,10 @@ | ||
1 | 1 | concourse-ci CHANGELOG |
2 | 2 | ====================== |
3 | 3 | |
4 | +0.1.4 | |
5 | +----- | |
6 | +- Bug fix: SSH keys directory volume mount configurations. | |
7 | + | |
4 | 8 | 0.1.3 |
5 | 9 | ----- |
6 | 10 | - moves secrets from the `docker-compose.yml` file to the `.env` file. |
@@ -72,7 +72,7 @@ run_list( | ||
72 | 72 | 'recipe[concourse-ci::docker-compose]', |
73 | 73 | ) |
74 | 74 | |
75 | -image = 'concourse/concourse:2.6.0' | |
75 | +image = 'concourse/concourse:2.7.0' | |
76 | 76 | port = '18080' |
77 | 77 | |
78 | 78 | override_attributes( |
@@ -85,12 +85,20 @@ override_attributes( | ||
85 | 85 | 'ports' => [ |
86 | 86 | "#{port}:8080", |
87 | 87 | ], |
88 | + #'volumes' => [ | |
89 | + # # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
90 | + # #"#{node['concourse-ci']['docker-compose']['web_keys_dir']}:/concourse-keys", | |
91 | + #], | |
88 | 92 | 'environment' => { |
89 | 93 | 'CONCOURSE_EXTERNAL_URL' => "http://192.168.1.3:#{port}", |
90 | 94 | }, |
91 | 95 | }, |
92 | 96 | 'concourse-worker' => { |
93 | 97 | 'image' => image, |
98 | + #'volumes' => [ | |
99 | + # # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
100 | + # #"#{node['concourse-ci']['docker-compose']['worker_keys_dir']}:/concourse-keys", | |
101 | + #], | |
94 | 102 | }, |
95 | 103 | }, |
96 | 104 | }, |
@@ -140,14 +148,19 @@ override_attributes( | ||
140 | 148 | #'CONCOURSE_TLS_CERT' => '/root/server.crt', |
141 | 149 | #'CONCOURSE_TLS_KEY' => '/root/server.key', |
142 | 150 | }, |
143 | - 'volumes' => [ | |
144 | - # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
145 | - #"#{server_cert_path(node['concourse-ci']['ssl_cert']['common_name'])}:/root/server.crt:ro", | |
146 | - #"#{server_key_path(node['concourse-ci']['ssl_cert']['common_name'])}:/root/server.key:ro", | |
147 | - ], | |
151 | + #'volumes' => [ | |
152 | + # # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
153 | + # #"#{node['concourse-ci']['docker-compose']['web_keys_dir']}:/concourse-keys", | |
154 | + # #"#{server_cert_path(node['concourse-ci']['ssl_cert']['common_name'])}:/root/server.crt:ro", | |
155 | + # #"#{server_key_path(node['concourse-ci']['ssl_cert']['common_name'])}:/root/server.key:ro", | |
156 | + #], | |
148 | 157 | }, |
149 | 158 | 'concourse-worker' => { |
150 | 159 | 'image' => image, |
160 | + #'volumes' => [ | |
161 | + # # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
162 | + # #"#{node['concourse-ci']['docker-compose']['worker_keys_dir']}:/concourse-keys", | |
163 | + #], | |
151 | 164 | }, |
152 | 165 | }, |
153 | 166 | }, |
@@ -83,7 +83,8 @@ version_1_config = { | ||
83 | 83 | #'8443:8443', # https |
84 | 84 | ], |
85 | 85 | 'volumes' => [ |
86 | - "#{node['concourse-ci']['docker-compose']['web_keys_dir']}:/concourse-keys", | |
86 | + # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
87 | + #"#{node['concourse-ci']['docker-compose']['web_keys_dir']}:/concourse-keys", | |
87 | 88 | ], |
88 | 89 | 'environment' => { |
89 | 90 | #'CONCOURSE_TLS_BIND_PORT' => '8443', # activate HTTPS |
@@ -106,7 +107,8 @@ version_1_config = { | ||
106 | 107 | ], |
107 | 108 | 'command' => 'worker', |
108 | 109 | 'volumes' => [ |
109 | - "#{node['concourse-ci']['docker-compose']['worker_keys_dir']}:/concourse-keys", | |
110 | + # These volumes will be set by the concourse-ci::docker-compose recipe automatically. | |
111 | + #"#{node['concourse-ci']['docker-compose']['worker_keys_dir']}:/concourse-keys", | |
110 | 112 | ], |
111 | 113 | 'environment' => { |
112 | 114 | 'CONCOURSE_TSA_HOST' => 'concourse-web', |
@@ -5,10 +5,17 @@ maintainer_email '' | ||
5 | 5 | license 'Apache 2.0' |
6 | 6 | description 'Installs/Configures Concourse CI by Docker Compose' |
7 | 7 | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) |
8 | -version '0.1.3' | |
8 | +version '0.1.4' | |
9 | 9 | source_url 'http://scm.osdn.jp/gitroot/metasearch/grid-chef-repo.git' |
10 | 10 | issues_url 'https://osdn.jp/projects/metasearch/ticket' |
11 | 11 | |
12 | +supports 'ubuntu', '>= 14.04' | |
13 | +=begin | |
14 | +%w( centos redhat ).each do |os| | |
15 | + supports os, '>= 8.0' | |
16 | +end | |
17 | +=end | |
18 | + | |
12 | 19 | depends 'docker-grid', '>= 0.2.7' |
13 | 20 | depends 'platform_utils', '>= 0.4.3' |
14 | 21 | depends 'ssl_cert', '>= 0.3.7' |
@@ -150,6 +150,8 @@ web_vols = config_srvs['concourse-web']['volumes'].to_a | ||
150 | 150 | web_ports = config_srvs['concourse-web']['ports'] |
151 | 151 | override_config_srvs['concourse-web']['ports'] = ['8080:8080'] if web_ports.empty? |
152 | 152 | |
153 | +web_vols.push("#{node['concourse-ci']['docker-compose']['web_keys_dir']}:/concourse-keys") | |
154 | + | |
153 | 155 | web_password_reset = node['concourse-ci']['docker-compose']['web_password_reset'] |
154 | 156 | basic_auth_passwd = nil |
155 | 157 | web_password_vault_item = node['concourse-ci']['docker-compose']['web_password_vault_item'] |
@@ -201,6 +203,12 @@ force_override_config_srvs['concourse-web']['environment'] = web_envs unless web | ||
201 | 203 | # reset vlumes array. |
202 | 204 | override_config_srvs['concourse-web']['volumes'] = web_vols unless web_vols.empty? |
203 | 205 | |
206 | +# Worker | |
207 | +worker_vols = config_srvs['concourse-worker']['volumes'].to_a | |
208 | +worker_vols.push("#{node['concourse-ci']['docker-compose']['worker_keys_dir']}:/concourse-keys") | |
209 | +# reset vlumes array. | |
210 | +override_config_srvs['concourse-worker']['volumes'] = worker_vols unless worker_vols.empty? | |
211 | + | |
204 | 212 | template env_file do |
205 | 213 | source 'opt/docker-compose/app/concourse/.env' |
206 | 214 | owner 'root' |