• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: コミット

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


コミットメタ情報

リビジョン1d24653bcd394ae8eaec17ae5ee3feb0fe3adf66 (tree)
日時2017-09-07 21:55:44
作者whitestar <whitestar@user...>
コミッターwhitestar

ログメッセージ

adds the halyard-on-docker role.

変更サマリ

差分

--- /dev/null
+++ b/nodes/local-halyard-on-docker.json
@@ -0,0 +1,5 @@
1+{
2+ "run_list": [
3+ "role[halyard-on-docker]"
4+ ]
5+}
--- a/roles/devops-suite-on-docker.rb
+++ b/roles/devops-suite-on-docker.rb
@@ -30,6 +30,7 @@ athenz_ui_port = '9043' # default: 9443
3030 concourse_port = '8080'
3131 gitlab_http_port = '80' # default: 80, Note: 8080 already in use.
3232 gitlab_ssh_port = '2022'
33+halyard_port = '8064' # default: 8064
3334 jenkins_port = '9080' # default: 8080
3435 jenkins_agent_port = '50000' # default: 50000
3536 jenkins_home_path = '/opt/docker-compose/app/jenkins/home'
@@ -47,6 +48,7 @@ run_list(
4748 'role[concourse-on-docker]',
4849 'role[gitlab-on-docker]',
4950 'role[gitlab-runner]',
51+ 'role[halyard-on-docker]',
5052 'role[jenkins-on-docker]',
5153 "role[nexus#{nexus_ver}-on-docker]",
5254 'role[screwdriver-on-docker]',
@@ -220,6 +222,21 @@ attrs = {
220222 },
221223 },
222224 },
225+ 'spinnaker' => {
226+ 'halyard-docker-compose' => {
227+ 'config' => {
228+ 'services' => {
229+ 'halyard' => {
230+ 'ports' => [
231+ "#{halyard_port}:8064",
232+ ],
233+ 'environment' => {
234+ },
235+ },
236+ },
237+ },
238+ },
239+ },
223240 'hc-vault' => {
224241 'config' => {
225242 },
@@ -254,6 +271,9 @@ if network_mode_bridge
254271 jenkins_srvs = attrs['jenkins-grid']['docker-compose']['config']['services']
255272 jenkins_srvs['jenkins']['network_mode'] = 'bridge'
256273
274+ halyard_srvs = attrs['spinnaker']['halyard-docker-compose']['config']['services']
275+ halyard_srvs['halyard']['network_mode'] = 'bridge'
276+
257277 nexus_srvs = attrs['nexus-grid']['docker-compose']['config']['services']
258278 nexus_srvs['reverseproxy']['network_mode'] = 'bridge'
259279 nexus_srvs['reverseproxy']['links'] = [
--- a/roles/devops-suite.Berksfile
+++ b/roles/devops-suite.Berksfile
@@ -26,3 +26,4 @@ cookbook 'jenkins-grid', '>= 0.2.8'
2626 cookbook 'nexus-grid', '>= 0.1.4'
2727 cookbook 'platform_utils', '>= 0.4.4'
2828 cookbook 'screwdriver', '>= 0.2.2'
29+cookbook 'spinnaker', '>= 0.1.0'
--- /dev/null
+++ b/roles/halyard-on-docker.rb
@@ -0,0 +1,52 @@
1+#
2+# Copyright 2017, whitestar
3+#
4+# Licensed under the Apache License, Version 2.0 (the "License");
5+# you may not use this file except in compliance with the License.
6+# You may obtain a copy of the License at
7+#
8+# http://www.apache.org/licenses/LICENSE-2.0
9+#
10+# Unless required by applicable law or agreed to in writing, software
11+# distributed under the License is distributed on an "AS IS" BASIS,
12+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+# See the License for the specific language governing permissions and
14+# limitations under the License.
15+#
16+
17+name 'halyard-on-docker'
18+description 'Spinnaker Halyard on Docker'
19+
20+run_list(
21+ 'role[docker]',
22+ 'recipe[spinnaker::halyard-docker-compose]',
23+)
24+
25+#env_run_lists()
26+
27+#default_attributes()
28+
29+override_attributes(
30+ 'docker-grid' => {
31+ 'engine' => {
32+ 'skip_setup' => false,
33+ },
34+ 'compose' => {
35+ 'skip_setup' => false,
36+ },
37+ },
38+ 'spinnaker' => {
39+ 'halyard-docker-compose' => {
40+ 'config' => {
41+ 'services' => {
42+ 'halyard' => {
43+ #'ports' => [
44+ #],
45+ 'environment' => {
46+ },
47+ },
48+ },
49+ },
50+ },
51+ },
52+)
旧リポジトリブラウザで表示