daddy 0.5.32 → 0.5.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a1e7094fadb79cb8e63f11b1cf31ae78e3b419c
4
- data.tar.gz: d10a84611f3f60d6bb90670018c9933ac4156e17
3
+ metadata.gz: fc0b0881337726ebc4fe5672bc5a49f255b1bd66
4
+ data.tar.gz: f04c61ce4022d22f5f3aa751a5c95ae055c41ca6
5
5
  SHA512:
6
- metadata.gz: bc2e7404057a351ece154bfe878525b60f83db14f9a84ede472c5da091fb412b0d509d112e0fd696bca23620bfe6e1fba853b8734a96ae5f7b3e6d0ab475a075
7
- data.tar.gz: 841fac960968c721711503588cf914f025dcd405b8eef2c8724e59194ba1a62d94610e22067cac25dfa8ce59658c4db067cdd33f1c4693c14dd40ebaf02dcda9
6
+ metadata.gz: 7b40630689e5f5d61e6a637e33da671eaf254edb832fc69ee53c7060a52834f3308f2605a142b98f5c88ac79bbd47f86b4672e50c01d415b190d1490f1224c83
7
+ data.tar.gz: 6fc8fdfcf3d63b7cc88330f1aa4ed1d7eb78fbcac6f8e615dee4968933afb7047e4194e8a39b9652120a392297b21ace7956922339d89cfe7692b44e7cfe7597
@@ -11,17 +11,20 @@ when /rhel-6\.(.*?)/
11
11
  end
12
12
 
13
13
  when /rhel-7\.(.*?)/
14
- template '/etc/yum.repos.d/docker.repo' do
14
+ %w{ yum-utils device-mapper-persistent-data lvm2 }.each do |name|
15
+ package name do
16
+ user 'root'
17
+ end
18
+ end
19
+
20
+ execute 'yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo' do
15
21
  user 'root'
16
- owner 'root'
17
- group 'root'
18
- mode '644'
22
+ not_if 'test -e /etc/yum.repos.d/docker-ce.repo'
19
23
  end
20
24
 
21
- package 'docker-engine' do
25
+ package 'docker-ce' do
22
26
  user 'root'
23
27
  end
24
-
25
28
  else
26
29
  raise "unsupported operating system: #{os_version}"
27
30
  end
@@ -30,8 +33,9 @@ group 'docker' do
30
33
  user 'root'
31
34
  end
32
35
 
33
- execute "usermod -aG docker #{ENV['USER']}" do
36
+ execute "add user to docker group" do
34
37
  user 'root'
38
+ command "usermod -aG docker #{ENV['USER']}"
35
39
  not_if "groups #{ENV['USER']} | grep -E \"\sdocker\""
36
40
  end
37
41
 
@@ -39,3 +43,12 @@ service 'docker' do
39
43
  action [:enable, :start]
40
44
  user 'root'
41
45
  end
46
+
47
+ local_ruby_block 'post install message' do
48
+ block do
49
+ message = I18n.t('itamae.messages.docker.after_install', :user => ENV['USER'])
50
+ message.split("\n").map {|line| Itamae.logger.info line }
51
+ end
52
+ action :nothing
53
+ subscribes :run, 'execute[add user to docker group]'
54
+ end
@@ -0,0 +1,11 @@
1
+ package 'git' do
2
+ user 'root'
3
+ end
4
+
5
+ execute 'curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash' do
6
+ not_if 'test -e /etc/yum.repos.d/github_git-lfs.repo'
7
+ end
8
+
9
+ package 'git-lfs' do
10
+ user 'root'
11
+ end
@@ -21,12 +21,11 @@ execute 'rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key' do
21
21
  not_if 'test -e /etc/yum.repos.d/jenkins.repo'
22
22
  end
23
23
 
24
- http_request '/etc/yum.repos.d/jenkins.repo' do
24
+ template '/etc/yum.repos.d/jenkins.repo' do
25
25
  user 'root'
26
- owner 'root'
27
26
  group 'root'
27
+ owner 'root'
28
28
  mode '644'
29
- url 'http://pkg.jenkins-ci.org/redhat/jenkins.repo'
30
29
  end
31
30
 
32
31
  package 'jenkins' do
@@ -37,7 +36,7 @@ template '/etc/sysconfig/jenkins' do
37
36
  user 'root'
38
37
  group 'root'
39
38
  owner 'root'
40
- mode '644'
39
+ mode '600'
41
40
  end
42
41
 
43
42
  service 'jenkins' do
@@ -87,8 +86,10 @@ execute 'add public key' do
87
86
  not_if "cat authorized_keys | grep \"`cat id_rsa.pub`\""
88
87
  end
89
88
 
90
- execute '/etc/init.d/jenkins restart' do
89
+ service 'jenkins' do
91
90
  user 'root'
91
+ action :nothing
92
+ subscribes :restart, 'template[/etc/sysconfig/jenkins]'
92
93
  end
93
94
 
94
95
  local_ruby_block 'post install message' do
@@ -96,8 +97,6 @@ local_ruby_block 'post install message' do
96
97
  message = I18n.t('itamae.messages.jenkins.after_install',
97
98
  :jenkins_url => ENV['DAD_JENKINS_URL'],
98
99
  :public_key => `sudo cat /var/lib/jenkins/.ssh/id_rsa.pub`)
99
- message.split("\n").each do |line|
100
- Itamae.logger.info line
101
- end
100
+ message.split("\n").map {|line| Itamae.logger.info line }
102
101
  end
103
102
  end
@@ -17,12 +17,9 @@ end
17
17
  @plugins = [
18
18
  {:name => 'ansicolor', :version => nil},
19
19
  {:name => 'build-pipeline-plugin', :version => nil},
20
- {:name => 'git', :version => nil},
21
- {:name => 'git-client', :version => nil},
22
20
  {:name => 'rake', :version => nil},
23
21
  {:name => 'rubyMetrics', :version => nil},
24
22
  {:name => 'htmlpublisher', :version => nil},
25
- {:name => 'reverse-proxy-auth-plugin', :version => nil},
26
23
  {:name => 'thinBackup', :version => nil}
27
24
  ]
28
25
  @plugins.each do |plugin|
@@ -1,18 +1,11 @@
1
1
  require 'daddy/itamae'
2
2
 
3
- %w{ git }.each do |name|
3
+ %w{
4
+ epel-release
5
+ certbot
6
+ python2-certbot-nginx
7
+ }.each do |name|
4
8
  package name do
5
9
  user 'root'
6
10
  end
7
11
  end
8
-
9
- directory '/opt/letsencrypt' do
10
- user 'root'
11
- owner ENV['USER']
12
- group ENV['USER']
13
- mode '755'
14
- end
15
-
16
- git '/opt/letsencrypt/certbot' do
17
- repository 'https://github.com/certbot/certbot'
18
- end
@@ -0,0 +1,9 @@
1
+ require 'daddy/itamae'
2
+
3
+ template "/etc/nginx/conf.d/servers/gitbucket.conf" do
4
+ user 'root'
5
+ owner 'root'
6
+ group 'root'
7
+ mode '644'
8
+ variables :server_name => ENV['SERVER_NAME'], :port => ENV['PORT']
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'daddy/itamae'
2
+
3
+ template "/etc/nginx/conf.d/servers/jenkins.conf" do
4
+ user 'root'
5
+ owner 'root'
6
+ group 'root'
7
+ mode '644'
8
+ variables :server_name => ENV['SERVER_NAME']
9
+ end
@@ -1,13 +1,14 @@
1
1
  require 'daddy/itamae'
2
2
 
3
3
  dad_nginx_checksum = File.join(File.dirname(__FILE__), 'sha256sum.txt')
4
- dad_nginx_version = '1.13.1'
4
+ dad_nginx_version = '1.13.4'
5
5
 
6
6
  directory 'tmp'
7
7
 
8
8
  # install destination
9
9
  %w{
10
10
  /opt/nginx
11
+ /opt/nginx/cache
11
12
  /opt/nginx/shared
12
13
  /opt/nginx/shared/logs
13
14
  }.each do |name|
@@ -36,7 +37,7 @@ include_recipe 'modules/passenger'
36
37
  execute 'build nginx' do
37
38
  cwd 'tmp'
38
39
  command <<-EOF
39
- rm -Rf nginx-#{dad_nginx_version}
40
+ rm -Rf nginx-#{dad_nginx_version}/
40
41
  tar zxf nginx-#{dad_nginx_version}.tar.gz
41
42
  cd nginx-#{dad_nginx_version}
42
43
  sudo ./configure \
@@ -1,4 +1,4 @@
1
1
  gem_package 'passenger' do
2
2
  user 'root'
3
- version '5.1.4'
3
+ version '5.1.7'
4
4
  end
@@ -1 +1 @@
1
- a5856c72a6609a4dc68c88a7f3c33b79e6693343b62952e021e043fe347b6776 nginx-1.13.1.tar.gz
1
+ de21f3c49ba65c611329d8759a63d72e5fcf719bc6f2a3270e2541348ef1fbba nginx-1.13.4.tar.gz
@@ -0,0 +1,14 @@
1
+ directory 'tmp'
2
+
3
+ execute 'download repo definition' do
4
+ cwd 'tmp'
5
+ command <<-EOF
6
+ curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
7
+ sudo mv bintray-sbt-rpm.repo /etc/yum.repos.d/
8
+ EOF
9
+ not_if 'test -e /etc/yum.repos.d/bintray-sbt-rpm.repo'
10
+ end
11
+
12
+ package 'sbt' do
13
+ user 'root'
14
+ end
data/itamae/locale/en.yml CHANGED
@@ -3,10 +3,14 @@ en:
3
3
  errors:
4
4
  unsupported_os_version: unsupported os version. %{os_version}
5
5
  messages:
6
+ docker:
7
+ after_install: |
8
+ user %{user} is added to group docker.
9
+ please restart os to reflect the change.
6
10
  jenkins:
7
11
  after_install: |
8
12
  installation completed.
9
- access %{jenkins_url} and add first user.
10
- use public key below.
13
+ please access %{jenkins_url} and add first user.
14
+ use public key below for your git repository.
11
15
 
12
16
  %{public_key}
data/itamae/locale/ja.yml CHANGED
@@ -3,10 +3,14 @@ ja:
3
3
  errors:
4
4
  unsupported_os_version: サポートしていないOSバージョンです。%{os_version}
5
5
  messages:
6
+ docker:
7
+ after_install: |
8
+ ユーザ %{user} をグループ docker に追加しました。
9
+ OSを再起動して変更を反映してください。
6
10
  jenkins:
7
11
  after_install: |
8
12
  インストールが完了しました。
9
- %{jenkins_url} にアクセスし、最初のユーザを登録します。
10
- 下記公開鍵を設定します。
13
+ %{jenkins_url} にアクセスし、最初のユーザを登録してください。
14
+ SSH鍵を作成しました。Gitリポジトリに下記公開鍵を設定してください。
11
15
 
12
16
  %{public_key}
@@ -29,6 +29,8 @@ http {
29
29
 
30
30
  #gzip on;
31
31
 
32
+ proxy_cache_path /opt/nginx/cache levels=1:2 keys_zone=cache:512m inactive=1d max_size=60g;
33
+
32
34
  passenger_root <%= `sudo passenger-config about root` %>;
33
35
  passenger_instance_registry_dir /var/run/passenger-instreg;
34
36
 
@@ -0,0 +1,49 @@
1
+ <%-
2
+ @letsencrypt = system("sudo test -e /etc/letsencrypt/live/#{@server_name}/fullchain.pem")
3
+ @selfsigned = system('sudo test -e /etc/pki/tls/certs/localhost.crt')
4
+ @ssl = @letsencrypt || @selfsigned
5
+ -%>
6
+ upstream gitbucket {
7
+ server localhost:<%= @port %>;
8
+ }
9
+
10
+ server {
11
+ listen 80;
12
+ <%- if @ssl -%>
13
+ listen 443 ssl;
14
+ <%- end -%>
15
+ server_name <%= @server_name %>;
16
+ access_log /opt/nginx/shared/logs/<%= @server_name %>_access.log ltsv;
17
+
18
+ <%- if @letsencrypt -%>
19
+ ssl_certificate /etc/letsencrypt/live/<%= @server_name %>/fullchain.pem;
20
+ ssl_certificate_key /etc/letsencrypt/live/<%= @server_name %>/privkey.pem;
21
+ <%- elsif @selfsigned -%>
22
+ ssl_certificate /etc/pki/tls/certs/localhost.crt;
23
+ ssl_certificate_key /etc/pki/tls/private/localhost.key;
24
+ <%- end -%>
25
+
26
+ location / {
27
+ proxy_pass http://localhost:<%= @port %>;
28
+ proxy_redirect http:// https://;
29
+ proxy_set_header Host $host;
30
+ proxy_set_header X-Real-IP $remote_addr;
31
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
32
+ proxy_set_header X-Forwarded-User $remote_user;
33
+ proxy_connect_timeout 150;
34
+ proxy_send_timeout 100;
35
+ proxy_read_timeout 100;
36
+ proxy_buffers 4 32k;
37
+ client_max_body_size 500m; # Big number is we can post big commits.
38
+ client_body_buffer_size 128k;
39
+ }
40
+
41
+ location /assets/ {
42
+ proxy_pass http://localhost:<%= @port %>/assets/;
43
+ proxy_cache cache;
44
+ proxy_cache_key $host$uri$is_args$args;
45
+ proxy_cache_valid 200 301 302 1d;
46
+ expires 1d;
47
+ }
48
+
49
+ }
@@ -0,0 +1,37 @@
1
+ <%-
2
+ @letsencrypt = system("sudo test -e /etc/letsencrypt/live/#{@server_name}/fullchain.pem")
3
+ @selfsigned = system('sudo test -e /etc/pki/tls/certs/localhost.crt')
4
+ @ssl = @letsencrypt || @selfsigned
5
+ -%>
6
+ upstream jenkins {
7
+ server localhost:8080;
8
+ }
9
+
10
+ server {
11
+ listen 80;
12
+ <%- if @ssl -%>
13
+ listen 443 ssl;
14
+ <%- end -%>
15
+ server_name <%= @server_name %>;
16
+ access_log /opt/nginx/shared/logs/<%= @server_name %>_access.log ltsv;
17
+
18
+ <%- if @letsencrypt -%>
19
+ ssl_certificate /etc/letsencrypt/live/<%= @server_name %>/fullchain.pem;
20
+ ssl_certificate_key /etc/letsencrypt/live/<%= @server_name %>/privkey.pem;
21
+ <%- elsif @selfsigned -%>
22
+ ssl_certificate /etc/pki/tls/certs/localhost.crt;
23
+ ssl_certificate_key /etc/pki/tls/private/localhost.key;
24
+ <%- end -%>
25
+
26
+ root /var/cache/jenkins/war;
27
+
28
+ location / {
29
+ proxy_pass http://jenkins;
30
+ proxy_redirect http:// https://;
31
+ proxy_set_header Host $http_host;
32
+ proxy_set_header X-Forwarded-Proto https;
33
+ proxy_set_header X-Real-IP $remote_addr;
34
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
35
+ proxy_set_header X-Forwarded-User $remote_user;
36
+ }
37
+ }
@@ -0,0 +1,5 @@
1
+ [jenkins]
2
+ name=Jenkins
3
+ baseurl=http://pkg.jenkins.io/redhat
4
+ gpgcheck=1
5
+ enabled=0
@@ -1,2 +1,4 @@
1
1
  STDOUT.sync = true
2
2
  Dir.glob(File.join(File.dirname(__FILE__), 'tasks/*.rake')).each { |r| import r }
3
+
4
+ set :passenger_restart_with_sudo, true
@@ -1,4 +1,5 @@
1
1
  require 'i18n'
2
2
  I18n.available_locales = [:en, :ja]
3
3
  I18n.default_locale = ENV['LANG'].start_with?('ja_') ? :ja : :en
4
- I18n.load_path += Dir.glob(File.expand_path('../../../itamae/locale/*.yml', __FILE__))
4
+ I18n.load_path += Dir.glob(File.expand_path('../../../../itamae/locale/*.yml', __FILE__))
5
+ I18n.locale = ENV['LANG'][0..1] if ENV['LANG']
data/lib/daddy/version.rb CHANGED
@@ -1,3 +1,7 @@
1
1
  module Daddy
2
- VERSION = '0.5.32'
2
+ VERSION = [
3
+ VERSION_MAJOR = '0',
4
+ VERSION_MINOR = '5',
5
+ VERSION_REVISION = '33'
6
+ ].join('.')
3
7
  end
@@ -0,0 +1,12 @@
1
+ require_relative 'task_helper'
2
+
3
+ namespace :dad do
4
+ namespace :git do
5
+
6
+ desc I18n.t('git.install')
7
+ task :install do
8
+ run_itamae 'git/install'
9
+ end
10
+
11
+ end
12
+ end
@@ -1,6 +1,8 @@
1
1
  en:
2
2
  docker:
3
3
  install: install Docker
4
+ git:
5
+ install: install Git with git-lfs extention
4
6
  god:
5
7
  install: install God
6
8
  jenkins:
@@ -14,12 +16,17 @@ en:
14
16
  mysql:
15
17
  install: install MySQL/MariaDB
16
18
  nginx:
17
- config: setting Passenger for app to Nginx
19
+ config:
20
+ default: setting Passenger for app to Nginx
21
+ gitbucket: setting GitBucket as reverse proxy
22
+ nginx: setting Jenkins as reverse proxy
18
23
  install: install Nginx
19
24
  obs_studio:
20
25
  install: install OBS-Studio
21
26
  redis:
22
27
  install: install Redis
28
+ sbt:
29
+ install: install sbt
23
30
  trac:
24
31
  install: install Trac
25
32
  unicorn:
@@ -1,6 +1,8 @@
1
1
  ja:
2
2
  docker:
3
3
  install: Docker をインストールします
4
+ git:
5
+ install: Git をインストールします
4
6
  god:
5
7
  install: God をインストールします
6
8
  jenkins:
@@ -14,12 +16,17 @@ ja:
14
16
  mysql:
15
17
  install: MySQL/MariaDBをインストールします
16
18
  nginx:
17
- config: Nginxにアプリの設定ファイルをインストールします
19
+ config:
20
+ default: Nginxにアプリの設定ファイルをインストールします
21
+ gitbucket: NginxにGitBucketのリバースプロキシを設定します
22
+ jenkins: NginxにJenkinsのリバースプロキシを設定します
18
23
  install: Nginxをインストールします
19
24
  obs_studio:
20
25
  install: OBS-Studioをインストールします
21
26
  redis:
22
27
  install: Redisをインストールします
28
+ sbt:
29
+ install: sbt をインストールします
23
30
  trac:
24
31
  install: Tracをインストールします
25
32
  unicorn:
data/lib/tasks/nginx.rake CHANGED
@@ -8,7 +8,7 @@ namespace :dad do
8
8
  run_itamae 'nginx/install'
9
9
  end
10
10
 
11
- desc I18n.t('nginx.config')
11
+ desc I18n.t('nginx.config.default')
12
12
  task :config do
13
13
  ENV['APP_NAME'] ||= app_name
14
14
  ENV['SERVER_NAME'] ||= ask('SERVER_NAME', :default => 'localhost', :required => true)
@@ -17,5 +17,21 @@ namespace :dad do
17
17
  run_itamae 'nginx/config'
18
18
  end
19
19
 
20
+ namespace :config do
21
+
22
+ desc I18n.t('nginx.config.gitbucket')
23
+ task :gitbucket do
24
+ ENV['SERVER_NAME'] ||= ask('SERVER_NAME', :default => 'localhost', :required => true)
25
+ ENV['PORT'] = ask('PORT', :default => '8081', :required => true)
26
+ run_itamae 'nginx/config/gitbucket'
27
+ end
28
+
29
+ desc I18n.t('nginx.config.jenkins')
30
+ task :jenkins do
31
+ ENV['SERVER_NAME'] ||= ask('SERVER_NAME', :default => 'localhost', :required => true)
32
+ run_itamae 'nginx/config/jenkins'
33
+ end
34
+
35
+ end
20
36
  end
21
37
  end
@@ -0,0 +1,12 @@
1
+ require_relative 'task_helper'
2
+
3
+ namespace :dad do
4
+ namespace :sbt do
5
+
6
+ desc I18n.t('sbt.install')
7
+ task :install do
8
+ run_itamae 'sbt/install'
9
+ end
10
+
11
+ end
12
+ end
@@ -1,6 +1,7 @@
1
1
  require 'rake'
2
2
  require 'erb'
3
3
  require 'yaml'
4
+ require 'highline'
4
5
  require File.expand_path('../../daddy/version', __FILE__)
5
6
 
6
7
  require 'i18n'
@@ -11,12 +12,26 @@ def self.daddy_version
11
12
  Daddy::VERSION
12
13
  end
13
14
 
15
+ def self.cli
16
+ @_cli ||= HighLine.new
17
+ end
18
+
14
19
  def self.rails_root
15
20
  ENV['RAILS_ROOT'] || @_rails_root ||= ask('RAILS_ROOT', :default => Dir.pwd)
16
21
  end
17
22
 
18
23
  def self.rails_env(options = {})
19
- ENV['RAILS_ENV'] || @_rails_env ||= ask('RAILS_ENV', :default => options.fetch(:default, 'development'))
24
+ ret = ENV['RAILS_ENV']
25
+ unless ret
26
+ cli.say('RAILS_ENV')
27
+ @_rails_env ||= cli.choose do |menu|
28
+ menu.choice 'production'
29
+ menu.choice 'development'
30
+ menu.choice 'test'
31
+ menu.prompt = 'select number above [2]'
32
+ menu.default = 'development'
33
+ end
34
+ end
20
35
  end
21
36
 
22
37
  def self.app_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.32
4
+ version: 0.5.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2017-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.4.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: highline
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.7'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.7'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: holiday_jp
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -271,6 +285,7 @@ files:
271
285
  - itamae/cookbooks/docker/install.rb
272
286
  - itamae/cookbooks/docker/registry/install.rb
273
287
  - itamae/cookbooks/epel/install.rb
288
+ - itamae/cookbooks/git/install.rb
274
289
  - itamae/cookbooks/god/install.rb
275
290
  - itamae/cookbooks/jenkins/install.rb
276
291
  - itamae/cookbooks/jenkins/plugins/install.rb
@@ -281,6 +296,8 @@ files:
281
296
  - itamae/cookbooks/netdata/install.rb
282
297
  - itamae/cookbooks/netdata/netdata-installer.sh
283
298
  - itamae/cookbooks/nginx/config.rb
299
+ - itamae/cookbooks/nginx/config/gitbucket.rb
300
+ - itamae/cookbooks/nginx/config/jenkins.rb
284
301
  - itamae/cookbooks/nginx/install.rb
285
302
  - itamae/cookbooks/nginx/modules/nginx-rtmp-module.rb
286
303
  - itamae/cookbooks/nginx/modules/passenger.rb
@@ -290,6 +307,7 @@ files:
290
307
  - itamae/cookbooks/obs_studio/install.rb
291
308
  - itamae/cookbooks/phantomjs/install.rb
292
309
  - itamae/cookbooks/redis/install.rb
310
+ - itamae/cookbooks/sbt/install.rb
293
311
  - itamae/cookbooks/trac/install.rb
294
312
  - itamae/cookbooks/unicorn/install.rb
295
313
  - itamae/cookbooks/unicorn/templates/init.d/app.erb
@@ -304,11 +322,13 @@ files:
304
322
  - itamae/templates/etc/my.cnf.d/daddy.cnf.erb
305
323
  - itamae/templates/etc/my.cnf.erb
306
324
  - itamae/templates/etc/nginx/conf.d/default.conf.erb
325
+ - itamae/templates/etc/nginx/conf.d/servers/gitbucket.conf.erb
326
+ - itamae/templates/etc/nginx/conf.d/servers/jenkins.conf.erb
307
327
  - itamae/templates/etc/nginx/nginx.conf.erb
308
328
  - itamae/templates/etc/sysconfig/jenkins.erb
309
329
  - itamae/templates/etc/systemd/system/tracd.service.erb
310
330
  - itamae/templates/etc/vsftpd/vsftpd.conf.erb
311
- - itamae/templates/etc/yum.repos.d/docker.repo.erb
331
+ - itamae/templates/etc/yum.repos.d/jenkins.repo.erb
312
332
  - itamae/templates/etc/yum.repos.d/nginx.repo.erb
313
333
  - itamae/templates/lib/systemd/system/nginx.service.erb
314
334
  - lib/capistrano/daddy.rb
@@ -375,9 +395,9 @@ files:
375
395
  - lib/tasks/fluentd_nginx.conf.erb
376
396
  - lib/tasks/generate/controller.rake
377
397
  - lib/tasks/generate/view.rake
398
+ - lib/tasks/git.rake
378
399
  - lib/tasks/god.rake
379
400
  - lib/tasks/jenkins.rake
380
- - lib/tasks/jenkins/nginx.conf.erb
381
401
  - lib/tasks/kibana.rake
382
402
  - lib/tasks/kibana/config.js.erb
383
403
  - lib/tasks/kibana/configure.sh
@@ -398,6 +418,7 @@ files:
398
418
  - lib/tasks/resque.rake
399
419
  - lib/tasks/resque/app.god.erb
400
420
  - lib/tasks/resque/install.sh.erb
421
+ - lib/tasks/sbt.rake
401
422
  - lib/tasks/task_helper.rb
402
423
  - lib/tasks/tesseract.rake
403
424
  - lib/tasks/test.rake
@@ -435,7 +456,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
435
456
  version: '0'
436
457
  requirements: []
437
458
  rubyforge_project:
438
- rubygems_version: 2.6.11
459
+ rubygems_version: 2.6.13
439
460
  signing_key:
440
461
  specification_version: 4
441
462
  summary: My rails dad
@@ -1,6 +0,0 @@
1
- [dockerrepo]
2
- name=Docker Repository
3
- baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
4
- enabled=1
5
- gpgcheck=1
6
- gpgkey=https://yum.dockerproject.org/gpg
@@ -1,29 +0,0 @@
1
- # this file is auto-generated by daddy-<%= daddy_version %>
2
-
3
- upstream jenkins {
4
- server localhost:8080;
5
- }
6
-
7
- server {
8
- listen 80;
9
- listen 443 ssl;
10
- server_name <%= @server_name %>;
11
- #access_log /var/log/nginx/jenkins_access.log ltsv;
12
- <% if @ssl_certificate and @ssl_certificate_key -%>
13
- ssl_certificate <%= @ssl_certificate %>;
14
- ssl_certificate_key <%= @ssl_certificate_key %>;
15
- <% end -%>
16
- root /var/cache/jenkins/war;
17
-
18
- location / {
19
- #auth_basic "Jenkins";
20
- #auth_basic_user_file conf.d/.htpasswd;
21
- proxy_pass http://jenkins;
22
- proxy_redirect http:// https://;
23
- proxy_set_header Host $http_host;
24
- proxy_set_header X-Forwarded-Proto https;
25
- proxy_set_header X-Real-IP $remote_addr;
26
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
27
- proxy_set_header X-Forwarded-User $remote_user;
28
- }
29
- }