from-scratch 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Berksfile +2 -1
- data/Berksfile.lock +20 -1
- data/cookbooks/bluepill/CHANGELOG.md +93 -0
- data/cookbooks/bluepill/README.md +91 -0
- data/cookbooks/bluepill/attributes/default.rb +44 -0
- data/cookbooks/bluepill/metadata.json +1 -0
- data/cookbooks/bluepill/providers/service.rb +172 -0
- data/cookbooks/bluepill/recipes/default.rb +48 -0
- data/cookbooks/bluepill/recipes/rsyslog.rb +28 -0
- data/cookbooks/bluepill/resources/service.rb +27 -0
- data/cookbooks/bluepill/templates/default/bluepill_init.fedora.erb +34 -0
- data/cookbooks/bluepill/templates/default/bluepill_init.freebsd.erb +32 -0
- data/cookbooks/bluepill/templates/default/bluepill_init.lsb.erb +37 -0
- data/cookbooks/bluepill/templates/default/bluepill_init.rhel.erb +34 -0
- data/cookbooks/bluepill/templates/default/bluepill_rsyslog.conf.erb +1 -0
- data/cookbooks/nginx/CHANGELOG.md +435 -0
- data/cookbooks/nginx/README.md +521 -0
- data/cookbooks/nginx/attributes/auth_request.rb +23 -0
- data/cookbooks/nginx/attributes/default.rb +131 -0
- data/cookbooks/nginx/attributes/devel.rb +24 -0
- data/cookbooks/nginx/attributes/echo.rb +24 -0
- data/cookbooks/nginx/attributes/geoip.rb +31 -0
- data/cookbooks/nginx/attributes/headers_more.rb +24 -0
- data/cookbooks/nginx/attributes/lua.rb +28 -0
- data/cookbooks/nginx/attributes/naxsi.rb +24 -0
- data/cookbooks/nginx/attributes/openssl_source.rb +23 -0
- data/cookbooks/nginx/attributes/pagespeed.rb +9 -0
- data/cookbooks/nginx/attributes/passenger.rb +58 -0
- data/cookbooks/nginx/attributes/rate_limiting.rb +23 -0
- data/cookbooks/nginx/attributes/repo.rb +35 -0
- data/cookbooks/nginx/attributes/set_misc.rb +8 -0
- data/cookbooks/nginx/attributes/socketproxy.rb +13 -0
- data/cookbooks/nginx/attributes/source.rb +42 -0
- data/cookbooks/nginx/attributes/status.rb +22 -0
- data/cookbooks/nginx/attributes/syslog.rb +24 -0
- data/cookbooks/nginx/attributes/upload_progress.rb +26 -0
- data/cookbooks/nginx/definitions/nginx_site.rb +50 -0
- data/cookbooks/nginx/files/default/mime.types +78 -0
- data/cookbooks/nginx/files/default/naxsi_core.rules +82 -0
- data/cookbooks/nginx/libraries/matchers.rb +20 -0
- data/cookbooks/nginx/metadata.json +351 -0
- data/cookbooks/nginx/recipes/authorized_ips.rb +32 -0
- data/cookbooks/nginx/recipes/commons.rb +24 -0
- data/cookbooks/nginx/recipes/commons_conf.rb +42 -0
- data/cookbooks/nginx/recipes/commons_dir.rb +57 -0
- data/cookbooks/nginx/recipes/commons_script.rb +29 -0
- data/cookbooks/nginx/recipes/default.rb +31 -0
- data/cookbooks/nginx/recipes/headers_more_module.rb +50 -0
- data/cookbooks/nginx/recipes/http_auth_request_module.rb +52 -0
- data/cookbooks/nginx/recipes/http_echo_module.rb +46 -0
- data/cookbooks/nginx/recipes/http_geoip_module.rb +113 -0
- data/cookbooks/nginx/recipes/http_gzip_static_module.rb +30 -0
- data/cookbooks/nginx/recipes/http_mp4_module.rb +2 -0
- data/cookbooks/nginx/recipes/http_perl_module.rb +23 -0
- data/cookbooks/nginx/recipes/http_realip_module.rb +38 -0
- data/cookbooks/nginx/recipes/http_spdy_module.rb +23 -0
- data/cookbooks/nginx/recipes/http_ssl_module.rb +23 -0
- data/cookbooks/nginx/recipes/http_stub_status_module.rb +36 -0
- data/cookbooks/nginx/recipes/ipv6.rb +23 -0
- data/cookbooks/nginx/recipes/lua.rb +47 -0
- data/cookbooks/nginx/recipes/naxsi_module.rb +52 -0
- data/cookbooks/nginx/recipes/ngx_devel_module.rb +44 -0
- data/cookbooks/nginx/recipes/ngx_lua_module.rb +47 -0
- data/cookbooks/nginx/recipes/ohai_plugin.rb +35 -0
- data/cookbooks/nginx/recipes/openssl_source.rb +45 -0
- data/cookbooks/nginx/recipes/package.rb +52 -0
- data/cookbooks/nginx/recipes/pagespeed_module.rb +62 -0
- data/cookbooks/nginx/recipes/passenger.rb +56 -0
- data/cookbooks/nginx/recipes/repo.rb +41 -0
- data/cookbooks/nginx/recipes/repo_passenger.rb +39 -0
- data/cookbooks/nginx/recipes/set_misc.rb +30 -0
- data/cookbooks/nginx/recipes/socketproxy.rb +26 -0
- data/cookbooks/nginx/recipes/source.rb +205 -0
- data/cookbooks/nginx/recipes/syslog_module.rb +69 -0
- data/cookbooks/nginx/recipes/upload_progress_module.rb +53 -0
- data/cookbooks/nginx/templates/debian/nginx.init.erb +97 -0
- data/cookbooks/nginx/templates/default/default-site.erb +11 -0
- data/cookbooks/nginx/templates/default/modules/authorized_ip.erb +6 -0
- data/cookbooks/nginx/templates/default/modules/http_geoip.conf.erb +4 -0
- data/cookbooks/nginx/templates/default/modules/http_gzip_static.conf.erb +1 -0
- data/cookbooks/nginx/templates/default/modules/http_realip.conf.erb +7 -0
- data/cookbooks/nginx/templates/default/modules/nginx_status.erb +14 -0
- data/cookbooks/nginx/templates/default/modules/passenger.conf.erb +13 -0
- data/cookbooks/nginx/templates/default/modules/socketproxy.conf.erb +89 -0
- data/cookbooks/nginx/templates/default/modules/upload_progress.erb +4 -0
- data/cookbooks/nginx/templates/default/nginx-upstart.conf.erb +39 -0
- data/cookbooks/nginx/templates/default/nginx.conf.erb +103 -0
- data/cookbooks/nginx/templates/default/nginx.init.erb +111 -0
- data/cookbooks/nginx/templates/default/nginx.pill.erb +15 -0
- data/cookbooks/nginx/templates/default/nginx.sysconfig.erb +1 -0
- data/cookbooks/nginx/templates/default/nxdissite.erb +29 -0
- data/cookbooks/nginx/templates/default/nxensite.erb +38 -0
- data/cookbooks/nginx/templates/default/plugins/nginx.rb.erb +66 -0
- data/cookbooks/nginx/templates/default/sv-nginx-log-run.erb +2 -0
- data/cookbooks/nginx/templates/default/sv-nginx-run.erb +4 -0
- data/cookbooks/nginx/templates/gentoo/nginx.init.erb +87 -0
- data/cookbooks/nginx/templates/suse/nginx.init.erb +115 -0
- data/cookbooks/nginx/templates/ubuntu/nginx.init.erb +97 -0
- data/cookbooks/ohai/CHANGELOG.md +69 -0
- data/cookbooks/ohai/README.md +89 -0
- data/cookbooks/ohai/attributes/default.rb +31 -0
- data/cookbooks/ohai/files/default/plugins/README +1 -0
- data/cookbooks/ohai/libraries/matchers.rb +14 -0
- data/cookbooks/ohai/metadata.json +1 -0
- data/cookbooks/ohai/providers/hint.rb +38 -0
- data/cookbooks/ohai/recipes/default.rb +52 -0
- data/cookbooks/ohai/resources/hint.rb +5 -0
- data/cookbooks/packagecloud/CHANGELOG.md +12 -0
- data/cookbooks/packagecloud/README.md +80 -0
- data/cookbooks/packagecloud/attributes/default.rb +8 -0
- data/cookbooks/packagecloud/libraries/helper.rb +43 -0
- data/cookbooks/packagecloud/libraries/matcher.rb +7 -0
- data/cookbooks/packagecloud/metadata.json +1 -0
- data/cookbooks/packagecloud/providers/repo.rb +212 -0
- data/cookbooks/packagecloud/resources/repo.rb +10 -0
- data/cookbooks/packagecloud/templates/.kitchen/logs/kitchen.log +29 -0
- data/cookbooks/packagecloud/templates/default/apt.erb +2 -0
- data/cookbooks/packagecloud/templates/default/yum.erb +15 -0
- data/cookbooks/rsyslog/CHANGELOG.md +193 -0
- data/cookbooks/rsyslog/README.md +276 -0
- data/cookbooks/rsyslog/attributes/default.rb +131 -0
- data/cookbooks/rsyslog/libraries/helpers.rb +25 -0
- data/cookbooks/rsyslog/metadata.json +1 -0
- data/cookbooks/rsyslog/providers/file_input.rb +44 -0
- data/cookbooks/rsyslog/recipes/client.rb +87 -0
- data/cookbooks/rsyslog/recipes/default.rb +89 -0
- data/cookbooks/rsyslog/recipes/server.rb +44 -0
- data/cookbooks/rsyslog/resources/file_input.rb +28 -0
- data/cookbooks/rsyslog/templates/default/35-server-per-host.conf.erb +62 -0
- data/cookbooks/rsyslog/templates/default/49-relp.conf.erb +10 -0
- data/cookbooks/rsyslog/templates/default/49-remote.conf.erb +30 -0
- data/cookbooks/rsyslog/templates/default/50-default.conf.erb +6 -0
- data/cookbooks/rsyslog/templates/default/file-input.conf.erb +15 -0
- data/cookbooks/rsyslog/templates/default/omnios-manifest.xml.erb +30 -0
- data/cookbooks/rsyslog/templates/default/rsyslog.conf.erb +117 -0
- data/cookbooks/rsyslog/templates/smartos/50-default.conf.erb +18 -0
- data/cookbooks/runit/.kitchen.cloud.yml +103 -0
- data/cookbooks/runit/.kitchen.yml +38 -0
- data/cookbooks/runit/.rspec +3 -0
- data/cookbooks/runit/.rubocop.yml +45 -0
- data/cookbooks/runit/Berksfile.disabled +11 -0
- data/cookbooks/runit/CHANGELOG.md +226 -0
- data/cookbooks/runit/CONTRIBUTING.md +266 -0
- data/cookbooks/runit/Cheffile +11 -0
- data/cookbooks/runit/Gemfile +17 -0
- data/cookbooks/runit/LICENSE +201 -0
- data/cookbooks/runit/README.md +435 -0
- data/cookbooks/runit/Rakefile +23 -0
- data/cookbooks/runit/TESTING.md +26 -0
- data/cookbooks/runit/attributes/default.rb +62 -0
- data/cookbooks/runit/files/default/runit.seed +1 -0
- data/cookbooks/runit/files/default/runsvdir +0 -0
- data/cookbooks/runit/files/ubuntu-6.10/runsvdir +6 -0
- data/cookbooks/runit/files/ubuntu-7.04/runsvdir +7 -0
- data/cookbooks/runit/files/ubuntu-7.10/runsvdir +7 -0
- data/cookbooks/runit/files/ubuntu-8.04/runsvdir +7 -0
- data/cookbooks/runit/libraries/default.rb +0 -0
- data/cookbooks/runit/libraries/helpers.rb +190 -0
- data/cookbooks/runit/libraries/matchers.rb +69 -0
- data/cookbooks/runit/libraries/provider_runit_service.rb +326 -0
- data/cookbooks/runit/libraries/resource_runit_service.rb +267 -0
- data/cookbooks/runit/metadata.json +50 -0
- data/cookbooks/runit/recipes/default.rb +91 -0
- data/cookbooks/runit/templates/debian/init.d.erb +66 -0
- data/cookbooks/runit/templates/default/log-config.erb +24 -0
- data/cookbooks/runit/templates/gentoo/runit-start.sh.erb +32 -0
- data/cookbooks/scratchify/Berksfile +2 -1
- data/cookbooks/scratchify/Berksfile.lock +20 -1
- data/cookbooks/scratchify/lib/from-scratch.rb +1 -4
- data/cookbooks/scratchify/lib/from-scratch/version.rb +1 -1
- data/cookbooks/scratchify/metadata.json +5 -2
- data/cookbooks/scratchify/recipes/default.rb +15 -1
- data/cookbooks/scratchify/recipes/nginx_site.rb +4 -0
- data/cookbooks/scratchify/recipes/pre_rvm.rb +5 -0
- data/cookbooks/scratchify/templates/nginx.erb +31 -0
- data/cookbooks/scratchify/templates/node.json.erb +21 -6
- data/cookbooks/yum-epel/CHANGELOG.md +84 -0
- data/cookbooks/yum-epel/README.md +172 -0
- data/cookbooks/yum-epel/attributes/default.rb +1 -0
- data/cookbooks/yum-epel/attributes/epel-debuginfo.rb +28 -0
- data/cookbooks/yum-epel/attributes/epel-source.rb +28 -0
- data/cookbooks/yum-epel/attributes/epel-testing-debuginfo.rb +28 -0
- data/cookbooks/yum-epel/attributes/epel-testing-source.rb +28 -0
- data/cookbooks/yum-epel/attributes/epel-testing.rb +28 -0
- data/cookbooks/yum-epel/attributes/epel.rb +28 -0
- data/cookbooks/yum-epel/metadata.json +1 -0
- data/cookbooks/yum-epel/recipes/default.rb +61 -0
- data/cookbooks/yum/CHANGELOG.md +294 -0
- data/cookbooks/yum/README.md +285 -0
- data/cookbooks/yum/attributes/main.rb +100 -0
- data/cookbooks/yum/libraries/matchers.rb +27 -0
- data/cookbooks/yum/metadata.json +1 -0
- data/cookbooks/yum/providers/globalconfig.rb +41 -0
- data/cookbooks/yum/providers/repository.rb +106 -0
- data/cookbooks/yum/recipes/default.rb +26 -0
- data/cookbooks/yum/resources/globalconfig.rb +109 -0
- data/cookbooks/yum/resources/repository.rb +69 -0
- data/cookbooks/yum/templates/default/main.erb +276 -0
- data/cookbooks/yum/templates/default/repo.erb +125 -0
- data/lib/from-scratch.rb +1 -0
- data/lib/from-scratch/version.rb +1 -1
- data/metadata.rb +5 -1
- data/recipes/default.rb +15 -1
- data/recipes/nginx_site.rb +4 -0
- data/recipes/pre_rvm.rb +5 -0
- data/templates/nginx.erb +31 -0
- data/templates/node.json.erb +21 -6
- metadata +194 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
# Dropped of by Chef. Modifications will be lost.
|
2
|
+
#
|
3
|
+
# Default rules for rsyslog.
|
4
|
+
#
|
5
|
+
# For more information see rsyslog.conf(5) and <%= node['rsyslog']['config_prefix'] %>/rsyslog.conf
|
6
|
+
|
7
|
+
*.err;kern.notice;auth.notice /dev/sysmsg
|
8
|
+
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
|
9
|
+
|
10
|
+
*.alert;kern.err;daemon.err operator
|
11
|
+
*.alert root
|
12
|
+
|
13
|
+
*.emerg *
|
14
|
+
|
15
|
+
mail.debug /var/log/syslog
|
16
|
+
|
17
|
+
auth.info /var/log/auth.log
|
18
|
+
mail.info /var/log/postfix.log
|
@@ -0,0 +1,103 @@
|
|
1
|
+
#<% require 'kitchen-sync' %>
|
2
|
+
---
|
3
|
+
driver_config:
|
4
|
+
digitalocean_api_token: <%= ENV['DIGITALOCEAN_API_TOKEN'] %>
|
5
|
+
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
|
6
|
+
aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
|
7
|
+
aws_ssh_key_id: <%= ENV['AWS_KEYPAIR_NAME'] %>
|
8
|
+
flavor_id: <%= ENV['EC2_FLAVOR_ID'] %>
|
9
|
+
availability_zone: <%= ENV['AWS_AVAILABILITY_ZONE'] %>
|
10
|
+
|
11
|
+
provisioner:
|
12
|
+
name: chef_zero
|
13
|
+
require_chef_omnibus: latest
|
14
|
+
|
15
|
+
platforms:
|
16
|
+
- name: centos-5.8
|
17
|
+
driver_plugin: digital_ocean
|
18
|
+
driver_config:
|
19
|
+
size: 2gb
|
20
|
+
image: centos-5-8-x64
|
21
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
22
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
23
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
24
|
+
run_list:
|
25
|
+
- recipe[yum-epel]
|
26
|
+
|
27
|
+
- name: centos-6.5
|
28
|
+
driver_plugin: digital_ocean
|
29
|
+
driver_config:
|
30
|
+
size: 2gb
|
31
|
+
image: centos-6-5-x64
|
32
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
33
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
34
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
35
|
+
|
36
|
+
- name: centos-7.0
|
37
|
+
driver_plugin: digital_ocean
|
38
|
+
driver_config:
|
39
|
+
size: 2gb
|
40
|
+
image: centos-7-0-x64
|
41
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
42
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
43
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
44
|
+
|
45
|
+
- name: amazon-2014.09
|
46
|
+
driver_plugin: ec2
|
47
|
+
driver_config:
|
48
|
+
image_id: ami-9a6ed3f2
|
49
|
+
username: ec2-user
|
50
|
+
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>
|
51
|
+
|
52
|
+
- name: fedora-21
|
53
|
+
driver_plugin: digital_ocean
|
54
|
+
driver_config:
|
55
|
+
size: 2gb
|
56
|
+
image: fedora-21-x64
|
57
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
58
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
59
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
60
|
+
|
61
|
+
- name: debian-7.0
|
62
|
+
driver_plugin: digital_ocean
|
63
|
+
driver_config:
|
64
|
+
size: 2gb
|
65
|
+
image: debian-7-0-x64
|
66
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
67
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
68
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
69
|
+
run_list:
|
70
|
+
- recipe[apt]
|
71
|
+
|
72
|
+
- name: ubuntu-12.04
|
73
|
+
driver_plugin: digital_ocean
|
74
|
+
driver_config:
|
75
|
+
size: 2gb
|
76
|
+
image: ubuntu-12-04-x64
|
77
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
78
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
79
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
80
|
+
run_list:
|
81
|
+
- recipe[apt]
|
82
|
+
|
83
|
+
- name: ubuntu-14.04
|
84
|
+
driver_plugin: digital_ocean
|
85
|
+
driver_config:
|
86
|
+
size: 2gb
|
87
|
+
image: ubuntu-14-04-x64
|
88
|
+
region: <%= ENV['DIGITALOCEAN_REGION'] %>
|
89
|
+
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEYS'] %>
|
90
|
+
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY_PATH'] %>
|
91
|
+
run_list:
|
92
|
+
- recipe[apt]
|
93
|
+
|
94
|
+
suites:
|
95
|
+
- name: default
|
96
|
+
run_list:
|
97
|
+
- recipe[runit_test]
|
98
|
+
attributes: {}
|
99
|
+
|
100
|
+
- name: service
|
101
|
+
run_list:
|
102
|
+
- recipe[runit_test::service]
|
103
|
+
attributes: {}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
driver:
|
2
|
+
name: vagrant
|
3
|
+
|
4
|
+
provisioner:
|
5
|
+
name: chef_zero
|
6
|
+
|
7
|
+
platforms:
|
8
|
+
- name: centos-5.11
|
9
|
+
run_list:
|
10
|
+
- recipe[yum-epel]
|
11
|
+
- name: centos-6.6
|
12
|
+
run_list:
|
13
|
+
- recipe[yum-epel]
|
14
|
+
- name: centos-7.0
|
15
|
+
- name: fedora-21
|
16
|
+
- name: ubuntu-10.04
|
17
|
+
run_list:
|
18
|
+
- recipe[apt]
|
19
|
+
- name: ubuntu-12.04
|
20
|
+
run_list:
|
21
|
+
- recipe[apt]
|
22
|
+
- name: ubuntu-14.04
|
23
|
+
run_list:
|
24
|
+
- recipe[apt]
|
25
|
+
- name: debian-7.8
|
26
|
+
run_list:
|
27
|
+
- recipe[apt]
|
28
|
+
|
29
|
+
suites:
|
30
|
+
- name: default
|
31
|
+
run_list:
|
32
|
+
- recipe[runit_test]
|
33
|
+
attributes: {}
|
34
|
+
|
35
|
+
- name: service
|
36
|
+
run_list:
|
37
|
+
- recipe[runit_test::service]
|
38
|
+
attributes: {}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
AlignParameters:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Encoding:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
ClassLength:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
MethodLength:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
LineLength:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# HashSyntax:
|
17
|
+
# EnforcedStyle: hash_rockets
|
18
|
+
|
19
|
+
Documentation:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
PerceivedComplexity:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
CyclomaticComplexity:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Style/FileName:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Metrics/AbcSize:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
AllCops:
|
35
|
+
Exclude:
|
36
|
+
- 'Guardfile'
|
37
|
+
- 'tmp/**/*'
|
38
|
+
- 'cookbooks/**/*'
|
39
|
+
|
40
|
+
Style/GuardClause:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
# TODO: remove override for ModuleLength once RunitCookbook::Helpers has been refactored
|
44
|
+
Metrics/ModuleLength:
|
45
|
+
Max: 150
|
@@ -0,0 +1,226 @@
|
|
1
|
+
runit Cookbook CHANGELOG
|
2
|
+
========================
|
3
|
+
This file is used to list changes made in each version of the runit cookbook.
|
4
|
+
|
5
|
+
UNRELEASED
|
6
|
+
----------
|
7
|
+
|
8
|
+
v1.7.4 (2015-10-13)
|
9
|
+
----------
|
10
|
+
* Ensure the service directory exists so that we will succeed when enabling services (#153)
|
11
|
+
* Fix regression where env directory contents were being deleted when the `env` attribute is empty. (#144, #158)
|
12
|
+
* Add `log_dir` attribute, used only when `default_logger` is true. (#135)
|
13
|
+
* Ensure svlogd configuration is linked into correct path (#83, #135)
|
14
|
+
* Update README and CHANGELOG for v1.7.0 to warn against known regressions (#144, #157)
|
15
|
+
* Avoid mutating resource options for Chef 12 compatability (#147, #150, #156)
|
16
|
+
* Fix regression regarding waiting for the service socket before running (#138, #142)
|
17
|
+
* Reimplement idempotence checks for `runit_service` resources (#137, #141)
|
18
|
+
* Enhance ChefSpec unit test coverage with specs that step into the LWRP (#139)
|
19
|
+
* Deduplicate ServerSpec integration test coverage using example groups (#140)
|
20
|
+
|
21
|
+
v1.7.2 (2015-06-19)
|
22
|
+
----------
|
23
|
+
* Re-add missing runit_service actions start, stop, reload and status
|
24
|
+
|
25
|
+
v1.7.0 (2015-06-18)
|
26
|
+
----------
|
27
|
+
|
28
|
+
**NOTE**: With the benefit of hindsight we can say that the changes contained in
|
29
|
+
this release merit a major version number change. Please be sure to test this
|
30
|
+
new version for compatibility with your systems before upgrading to version 1.7.
|
31
|
+
|
32
|
+
* Modernize runit_service provider by rewriting pure Ruby as LWRP (#107)
|
33
|
+
* Modernize integration tests by rewriting Minitest suites as ServerSpec (#107)
|
34
|
+
* Fix regression in support for alternate sv binary on debian platforms (#92, #123)
|
35
|
+
* Fix regression in default logger's config location (#117)
|
36
|
+
* Tighten permissions on environment variable config files from 0644 to 0640 (#125)
|
37
|
+
* Add `start_down` and `delete_downfile` attributes to support configuring services with default state of 'down' (#105)
|
38
|
+
|
39
|
+
v1.6.0 (2015-04-06)
|
40
|
+
--------------------
|
41
|
+
* Fedora 21 support
|
42
|
+
* Kitchen platform updates
|
43
|
+
* use imeyer’s packagecloud repo for RHEL
|
44
|
+
* fix converge_by usage
|
45
|
+
* do_action helper to set updated_by_last_action
|
46
|
+
* style fixes to provider
|
47
|
+
|
48
|
+
v1.5.18 (2015-03-13)
|
49
|
+
--------------------
|
50
|
+
* Add helper methods to detect installation presence
|
51
|
+
|
52
|
+
v1.5.16 (2015-02-11)
|
53
|
+
--------------------
|
54
|
+
* Allow removal of env files(nhuff)
|
55
|
+
|
56
|
+
v1.5.14 (2015-01-15)
|
57
|
+
--------------------
|
58
|
+
* Provide create action(clako)
|
59
|
+
|
60
|
+
v1.5.12 (2014-12-15)
|
61
|
+
--------------------
|
62
|
+
* prevent infinite loop inside docker container
|
63
|
+
* runit service failing inside docker container
|
64
|
+
* move to librarian-chef for kitchen dependency resolution
|
65
|
+
* update tests
|
66
|
+
* updates to chefspec matchers
|
67
|
+
|
68
|
+
v1.5.10 (2014-03-07)
|
69
|
+
--------------------
|
70
|
+
PR #53- Fix runit RPM file location for Chef provisionless Centos 5.9 Box Image
|
71
|
+
|
72
|
+
|
73
|
+
v1.5.9
|
74
|
+
------
|
75
|
+
Fix runit RPM file location for Chef provisionless Centos 5.9 Box Image
|
76
|
+
|
77
|
+
v1.5.8
|
78
|
+
------
|
79
|
+
Fixing string interpolation bug
|
80
|
+
|
81
|
+
|
82
|
+
v1.5.3
|
83
|
+
------
|
84
|
+
Fixing assignment/compare error
|
85
|
+
|
86
|
+
|
87
|
+
v1.5.1
|
88
|
+
------
|
89
|
+
### Bug
|
90
|
+
- **[COOK-3950](https://tickets.chef.io/browse/COOK-3950)** - runit cookbook should use full service path when checking running status
|
91
|
+
|
92
|
+
|
93
|
+
v1.5.0
|
94
|
+
------
|
95
|
+
### Improvement
|
96
|
+
- **[COOK-3267] - Improve testing suite in runit cookbook
|
97
|
+
- Updating test-kitchen harness
|
98
|
+
- Cleaning up style for rubocop
|
99
|
+
|
100
|
+
|
101
|
+
v1.4.4
|
102
|
+
------
|
103
|
+
fixing metadata version error. locking to < 3.0
|
104
|
+
|
105
|
+
|
106
|
+
v1.4.2
|
107
|
+
------
|
108
|
+
Locking yum dependency to '< 3'
|
109
|
+
|
110
|
+
v1.4.0
|
111
|
+
------
|
112
|
+
[COOK-3560] Allow the user to configure runit's timeout (-w) and verbose (-v) settings
|
113
|
+
|
114
|
+
|
115
|
+
v1.3.0
|
116
|
+
------
|
117
|
+
### Improvement
|
118
|
+
- **[COOK-3663](https://tickets.chef.io/browse/COOK-3663)** - Add ./check scripts support
|
119
|
+
|
120
|
+
### Bug
|
121
|
+
- **[COOK-3271](https://tickets.chef.io/browse/COOK-3271)** - Fix an issue where runit fails to install rpm package on rehl systems
|
122
|
+
|
123
|
+
v1.2.0
|
124
|
+
------
|
125
|
+
### New Feature
|
126
|
+
- **[COOK-3243](https://tickets.chef.io/browse/COOK-3243)** - Expose LSB init directory as a configurable
|
127
|
+
|
128
|
+
### Bug
|
129
|
+
- **[COOK-3182](https://tickets.chef.io/browse/COOK-3182)** - Do not hardcode rpmbuild location
|
130
|
+
|
131
|
+
### Improvement
|
132
|
+
- **[COOK-3175](https://tickets.chef.io/browse/COOK-3175)** - Add svlogd config file support
|
133
|
+
- **[COOK-3115](https://tickets.chef.io/browse/COOK-3115)** - Add ability to install 'runit' package from Yum
|
134
|
+
|
135
|
+
v1.1.6
|
136
|
+
------
|
137
|
+
### Bug
|
138
|
+
- [COOK-2353]: Runit does not update run template if the service is already enabled
|
139
|
+
- [COOK-3013]: Runit install fails on rhel if converge is only partially successful
|
140
|
+
|
141
|
+
v1.1.4
|
142
|
+
------
|
143
|
+
### Bug
|
144
|
+
- [COOK-2549]: cannot enable_service (lwrp) on Gentoo
|
145
|
+
- [COOK-2567]: Runit doesn't start at boot in Gentoo
|
146
|
+
- [COOK-2629]: runit tests have ruby 1.9 method chaning syntax
|
147
|
+
- [COOK-2867]: On debian, runit recipe will follow symlinks from /etc/init.d, overwrite /usr/bin/sv
|
148
|
+
|
149
|
+
v1.1.2
|
150
|
+
------
|
151
|
+
- [COOK-2477] - runit cookbook should enable EPEL repo for CentOS 5
|
152
|
+
- [COOK-2545] - Runit cookbook fails on Amazon Linux
|
153
|
+
- [COOK-2322] - runit init template is broken on debian
|
154
|
+
|
155
|
+
v1.1.0
|
156
|
+
------
|
157
|
+
- [COOK-2353] - Runit does not update run template if the service is already enabled
|
158
|
+
- [COOK-2497] - add :nothing to allowed actions
|
159
|
+
|
160
|
+
v1.0.6
|
161
|
+
------
|
162
|
+
- [COOK-2404] - allow sending sigquit
|
163
|
+
- [COOK-2431] - gentoo - it should create the runit-start template before calling it
|
164
|
+
|
165
|
+
v1.0.4
|
166
|
+
------
|
167
|
+
- [COOK-2351] - add `run_template_name` to allow alternate run script template
|
168
|
+
|
169
|
+
v1.0.2
|
170
|
+
------
|
171
|
+
- [COOK-2299] - runit_service resource does not properly start a non-running service
|
172
|
+
|
173
|
+
v1.0.0
|
174
|
+
------
|
175
|
+
- [COOK-2254] - (formerly CHEF-154) Convert `runit_service` definition to a service resource named `runit_service`.
|
176
|
+
|
177
|
+
This version has some backwards incompatible changes (hence the major
|
178
|
+
version bump). It is recommended that users pin the cookbook to the
|
179
|
+
previous version where it is a dependency until this version has been
|
180
|
+
tested in a non-production environment (use version 0.16.2):
|
181
|
+
|
182
|
+
depends "runit", "<= 0.16.2"
|
183
|
+
|
184
|
+
If you use Chef environments, pin the version in the appropriate
|
185
|
+
environment(s).
|
186
|
+
|
187
|
+
**Changes of note**
|
188
|
+
|
189
|
+
1. The "runit" recipe must be included before the runit_service resource
|
190
|
+
can be used.
|
191
|
+
2. The `runit_service` definition created a separate `service`
|
192
|
+
resource for notification purposes. This is still available, but the
|
193
|
+
only actions that can be notified are `:start`, `:stop`, and `:restart`.
|
194
|
+
3. The `:enable` action blocks waiting for supervise/ok after the
|
195
|
+
service symlink is created.
|
196
|
+
4. User-controlled services should be created per the runit
|
197
|
+
documentation; see README.md for an example.
|
198
|
+
5. Some parameters in the definition have changed names in the
|
199
|
+
resource. See below.
|
200
|
+
|
201
|
+
The following parameters in the definition are renamed in the resource
|
202
|
+
to clarify their intent.
|
203
|
+
|
204
|
+
- directory -> sv_dir
|
205
|
+
- active_directory -> service_dir
|
206
|
+
- template_name -> use service_name (name attribute)
|
207
|
+
- nolog -> set "log" to false
|
208
|
+
- start_command -> unused (was previously in the "service" resource)
|
209
|
+
- stop_command -> unused (was previously in the "service" resource)
|
210
|
+
- restart_command -> unused (was previously in the "service" resource)
|
211
|
+
|
212
|
+
v0.16.2
|
213
|
+
-------
|
214
|
+
- [COOK-1576] - Do not symlink /etc/init.d/servicename to /usr/bin/sv on debian
|
215
|
+
- [COOK-1960] - default_logger still looks for sv-service-log-run template
|
216
|
+
- [COOK-2035] - runit README change
|
217
|
+
|
218
|
+
v0.16.0
|
219
|
+
-------
|
220
|
+
- [COOK-794] default logger and `no_log` for `runit_service` definition
|
221
|
+
- [COOK-1165] - restart functionality does not work right on Gentoo due to the wrong directory in the attributes
|
222
|
+
- [COOK-1440] - Delegate service control to normal user
|
223
|
+
|
224
|
+
v0.15.0
|
225
|
+
-------
|
226
|
+
- [COOK-1008] - Added parameters for names of different templates in runit
|