• R/O
  • HTTP
  • SSH
  • HTTPS

grid-chef-repo: Commit

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


Commit MetaInfo

Revision8c8fa1c6c9bab9dbcc484631ac1064bb56739474 (tree)
Time2017-08-13 21:17:47
Authorwhitestar <whitestar@user...>
Commiterwhitestar

Log Message

improves devops-suite roles.

Change Summary

Incremental Difference

--- a/roles/concourse-on-docker.rb
+++ b/roles/concourse-on-docker.rb
@@ -62,6 +62,7 @@ override_attributes(
6262 #"#{port}:8443", # for https
6363 #],
6464 'environment' => {
65+ #'CONCOURSE_RESOURCE_CHECKING_INTERVAL' => '1m',
6566 # If you sepecify no value, Chef will sets "http://#{node['ipaddress']}:8080".
6667 #'CONCOURSE_EXTERNAL_URL' => "http://192.168.1.3:#{port}", # or "https://192.168.1.3:#{port}"
6768 #'CONCOURSE_TLS_BIND_PORT' => '8443', # activate HTTPS
--- a/roles/devops-suite-on-docker.rb
+++ b/roles/devops-suite-on-docker.rb
@@ -87,6 +87,7 @@ attrs = {
8787 "#{concourse_port}:8080",
8888 ],
8989 'environment' => {
90+ #'CONCOURSE_RESOURCE_CHECKING_INTERVAL' => '1m',
9091 # If you sepecify no value, Chef will sets "http://#{node['ipaddress']}:8080".
9192 #'CONCOURSE_EXTERNAL_URL' => "http://#{node['ipaddress']}:#{concourse_port}",
9293 },
--- a/roles/devops-suite.Berksfile
+++ b/roles/devops-suite.Berksfile
@@ -22,3 +22,4 @@ cookbook 'docker-grid'
2222 cookbook 'gitlab-grid'
2323 cookbook 'jenkins-grid'
2424 cookbook 'nexus-grid'
25+cookbook 'platform_utils'
\ No newline at end of file
--- a/roles/gitlab-on-docker.rb
+++ b/roles/gitlab-on-docker.rb
@@ -24,6 +24,7 @@ description 'GitLab on Docker'
2424 run_list(
2525 'role[docker]',
2626 'recipe[gitlab-grid::docker-compose]',
27+ 'recipe[platform_utils::sysctl]',
2728 )
2829
2930 #env_run_lists()
@@ -61,4 +62,16 @@ override_attributes(
6162 },
6263 },
6364 },
65+ 'platform_utils' => {
66+ 'sysctl' => {
67+ 'configs' => {
68+ '80-gitlab' => {
69+ 'action' => :create,
70+ 'params' => {
71+ 'vm.swappiness' => '10', # default: '60'
72+ },
73+ },
74+ },
75+ },
76+ },
6477 )
Show on old repository browser