File tree Expand file tree Collapse file tree 6 files changed +25
-22
lines changed
Expand file tree Collapse file tree 6 files changed +25
-22
lines changed Original file line number Diff line number Diff line change 11# encoding: utf-8
2-
32source 'https://supermarket.chef.io'
43
54metadata
65
7- cookbook 'apt'
6+ cookbook 'apt'
Original file line number Diff line number Diff line change 11# Change Log
22
3- ## [ v1.1.0] ( https://github.com/dev-sec/chef-nginx-hardening/tree/v1.1.0 ) (2016-11-20)
3+ ## [ v2.0.0] ( https://github.com/dev-sec/chef-nginx-hardening/tree/v2.0.0 ) (2016-12-21)
4+ [ Full Changelog] ( https://github.com/dev-sec/chef-nginx-hardening/compare/v1.1.0...v2.0.0 )
5+
6+ ** Closed issues:**
7+
8+ - Upload to supermarket? [ \# 38] ( https://github.com/dev-sec/chef-nginx-hardening/issues/38 )
9+
10+ ** Merged pull requests:**
11+
12+ - Added sources and issue url, for the Chef Supermarket reference [ \# 40] ( https://github.com/dev-sec/chef-nginx-hardening/pull/40 ) ([ enzor] ( https://github.com/enzor ) )
13+ - Switch to chef\_ nginx and update testing [ \# 39] ( https://github.com/dev-sec/chef-nginx-hardening/pull/39 ) ([ tas50] ( https://github.com/tas50 ) )
14+ - move to chef\_ nginx fork [ \# 37] ( https://github.com/dev-sec/chef-nginx-hardening/pull/37 ) ([ mburns] ( https://github.com/mburns ) )
15+
16+ ## [ v1.1.0] ( https://github.com/dev-sec/chef-nginx-hardening/tree/v1.1.0 ) (2016-11-21)
417** Closed issues:**
518
619- release version [ \# 30] ( https://github.com/dev-sec/chef-nginx-hardening/issues/30 )
Original file line number Diff line number Diff line change 11#!/usr/bin/env rake
22
3- <<<<<<< master
43# Style tests. cookstyle (rubocop) and Foodcritic
54namespace :style do
65 begin
76 require 'cookstyle'
87 require 'rubocop/rake_task'
9- =======
10- require 'foodcritic'
11- require 'rspec/core/rake_task'
12- require 'rubocop/rake_task'
13- require 'chef/cookbook/metadata'
14- >>>>>>> master
15-
168 desc 'Run Ruby style checks'
179 RuboCop ::RakeTask . new ( :ruby )
1810 rescue LoadError => e
@@ -26,7 +18,7 @@ require 'chef/cookbook/metadata'
2618 FoodCritic ::Rake ::LintTask . new ( :chef ) do |t |
2719 t . options = {
2820 fail_tags : [ 'any' ] ,
29- progress : true
21+ progress : true ,
3022 }
3123 end
3224 rescue LoadError
3628
3729desc 'Run all style checks'
3830task style : [ 'style:chef' , 'style:ruby' ]
31+ task lint : [ 'style' ]
3932
4033# ChefSpec
4134begin
@@ -76,6 +69,8 @@ task default: %w(style spec)
7669# Automatically generate a changelog for this project. Only loaded if
7770# the necessary gem is installed.
7871begin
72+ require 'chef/cookbook/metadata'
73+
7974 # read version from metadata
8075 metadata = Chef ::Cookbook ::Metadata . new
8176 metadata . instance_eval ( File . read ( 'metadata.rb' ) )
Original file line number Diff line number Diff line change 4343
4444 'more_clear_headers' => [
4545 '\'Server\'' ,
46- '\'X-Powered-By\''
46+ '\'X-Powered-By\'' ,
4747 ] ,
4848
4949 'client_header_buffer_size' => '1k' ,
6767 'X-Content-Type-Options nosniff' ,
6868
6969 # XSS filter
70- 'X-XSS-Protection "1; mode=block"'
71- ]
70+ 'X-XSS-Protection "1; mode=block"' ,
71+ ] ,
7272
7373}
7474
Original file line number Diff line number Diff line change 2121license 'Apache 2.0'
2222description 'Configures nginx hardening'
2323long_description IO . read ( File . join ( File . dirname ( __FILE__ ) , 'README.md' ) )
24- <<<<<<< master
25- version '1.0.0'
2624
27- depends 'chef_nginx' , '>= 4.0'
28- =======
29- version "1.1.0"
25+ version '2.0.0'
3026
3127issues_url 'https://github.com/dev-sec/chef-nginx-hardening/issues'
3228source_url 'https://github.com/dev-sec/chef-nginx-hardening'
3531supports 'ubuntu' , '>= 12.04'
3632supports 'centos' , '>= 6.6'
3733
38- depends 'chef_nginx'
39- >>>>>>> master
34+ depends 'chef_nginx' , '>= 4.0'
4035depends 'openssl'
4136
4237recipe 'nginx-hardening::default' , 'configures nginx for hardening'
Original file line number Diff line number Diff line change 2121 before { allow_any_instance_of ( Chef ::Recipe ) . to receive ( :search ) }
2222 let ( :runner ) { ChefSpec ::ServerRunner . new ( platform : 'ubuntu' , version : '16.04' ) }
2323 let ( :node ) { runner . node }
24+ let ( :chef_run ) { runner . converge ( 'chef_nginx::default' , described_recipe ) }
2425
2526 before do
2627 stub_command ( '/usr/sbin/apache2 -t' )
You can’t perform that action at this time.
0 commit comments