Skip to content

Commit 126949c

Browse files
committed
Revert "Revert "Merge branch 'docker_vuln'""
This reverts commit 50a8a91.
1 parent c283cc6 commit 126949c

File tree

193 files changed

+18194
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+18194
-2
lines changed

Vagrantfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Vagrant.configure("2") do |config|
4848

4949
chef.json = { 'metasploitable' => {
5050
# Customizations here
51-
}
51+
}
5252
}
5353

5454
chef.add_recipe "metasploitable::mysql"
@@ -69,4 +69,4 @@ Vagrant.configure("2") do |config|
6969
chef.add_recipe "metasploitable::drupal"
7070
end
7171
end
72-
end
72+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# compat_resource Cookbook CHANGELOG
2+
3+
This file is used to list changes made in each version of the compat_resource cookbook.
4+
5+
## 12.16.2 (2016-11-09)
6+
7+
- Sync chef-client changes from Chef 12.16.42
8+
9+
## 12.16.1 (2016-10-20)
10+
11+
- add delayed_action helper
12+
13+
## 12.16.0 (2016-10-19)
14+
15+
- Sync chef-client changes from Chef 12.16.14
16+
17+
## 12.14.7 (2016-09-26)
18+
19+
- Update to 12.14.89 Chef
20+
- Fix autoload by applying fix from #106
21+
22+
## 12.14.6 (2016-09-20)
23+
24+
- Update backported codebase to Chef 12.14.77 which brings in yum_repository updates and why-run enabled by default in custom resources
25+
26+
## 12.14.5 (2016-09-19)
27+
28+
- Prevent spamming messages in Chefspec runs for cookbooks that depend on compat_resource
29+
30+
## 12.14.4 (2016-09-19)
31+
32+
- Fix delayed notifications cloning
33+
34+
## 12.14.3 (2016-09-12)
35+
36+
- Fix subscribes notifications
37+
38+
## 12.14.2 (2016-09-09)
39+
40+
- Improve documentation
41+
- keep ChefCompat::Resource defined even if we don't load
42+
43+
## 12.14.1 (2016-09-07)
44+
45+
- add yum_repository resource from Chef 12.14
46+
- Update the minimum chef version in the metadata to 12.1
47+
- Added maintainers files
48+
- suppress constant redef warnings when running chefspec
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Please refer to
2+
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- This is a generated file. Please do not edit directly -->
2+
3+
# Maintainers
4+
5+
This file lists how this cookbook project is maintained. When making changes to the system, this file tells you who needs to review your patch - you need a review from an existing maintainer for the cookbook to provide a :+1: on your pull request. Additionally, you need to not receive a veto from a Lieutenant or the Project Lead.
6+
7+
Check out [How Cookbooks are Maintained](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD) for details on the process and how to become a maintainer or the project lead.
8+
9+
# Project Maintainer
10+
* [Lamont Granquist](https://github.com/lamont-granquist)
11+
12+
# Maintainers
13+
* [Jennifer Davis](https://github.com/sigje)
14+
* [Tim Smith](https://github.com/tas50)
15+
* [Thom May](https://github.com/thommay)
16+
* [Lamont Granquist](https://github.com/lamont-granquist)
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# compat_resource cookbook
2+
3+
[![Build Status](https://travis-ci.org/chef-cookbooks/compat_resource.svg?branch=master)](https://travis-ci.org/chef-cookbooks/compat_resource) [![Cookbook Version](https://img.shields.io/cookbook/v/compat_resource.svg)](https://supermarket.chef.io/cookbooks/compat_resource)
4+
5+
This cookbook backports functionality introduced in the latest chef-client releases to any chef-client from 12.1 onwards. This includes [Custom Resource](https://docs.chef.io/custom_resources.html) functionality, notification improvements, as well as new resources added to core chef. It allows for the usage of these new resources in cookbooks without requiring the very latest Chef client release.
6+
7+
## Backported functionality
8+
9+
- [Custom Resources](https://docs.chef.io/custom_resources.html)
10+
- [apt_repository](https://docs.chef.io/resource_apt_repository.html)
11+
- [apt_update](https://docs.chef.io/resource_apt_update.html)
12+
- [systemd_unit](https://docs.chef.io/resource_systemd_unit.html)
13+
- [yum_repository](https://docs.chef.io/resource_yum_repository.html)
14+
- [:before notifications](https://docs.chef.io/resources.html#timers)
15+
16+
## Requirements
17+
18+
### Platforms
19+
20+
- All platforms supported by Chef
21+
22+
### Chef
23+
24+
- Chef 12.1+
25+
26+
### Cookbooks
27+
28+
- none
29+
30+
## Usage
31+
32+
To use this cookbook, put `depends 'compat_resource'` in the metadata.rb of your cookbook. Once this is done, you can use all the new custom resource features to define resources. It Just Works.
33+
34+
## Custom Resources?
35+
36+
Curious about how to use custom resources?
37+
38+
- Docs: <https://docs.chef.io/custom_resources.html>
39+
- Slides: <https://docs.chef.io/decks/custom_resources.html>
40+
41+
## License & Authors
42+
43+
- Author:: Lamont Granquist ([[email protected]](mailto:[email protected]))
44+
- Author:: John Keiser ([[email protected]](mailto:[email protected]))
45+
46+
```text
47+
Copyright:: 2015-2016 Chef Software, Inc.
48+
49+
Licensed under the Apache License, Version 2.0 (the "License");
50+
you may not use this file except in compliance with the License.
51+
You may obtain a copy of the License at
52+
53+
http://www.apache.org/licenses/LICENSE-2.0
54+
55+
Unless required by applicable law or agreed to in writing, software
56+
distributed under the License is distributed on an "AS IS" BASIS,
57+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58+
See the License for the specific language governing permissions and
59+
limitations under the License.
60+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module ChefCompat
2+
module CopiedFromChef
3+
def self.extend_chef_module(chef_module, target)
4+
target.instance_eval do
5+
include chef_module
6+
@chef_module = chef_module
7+
def self.method_missing(name, *args, &block)
8+
@chef_module.send(name, *args, &block)
9+
end
10+
def self.const_missing(name)
11+
@chef_module.const_get(name)
12+
end
13+
end
14+
end
15+
16+
# This patch to CopiedFromChef's ActionClass is necessary for the include to work
17+
require 'chef/resource'
18+
class Chef < ::Chef
19+
class Resource < ::Chef::Resource
20+
module ActionClass
21+
def self.use_inline_resources
22+
end
23+
def self.include_resource_dsl(include_resource_dsl)
24+
end
25+
end
26+
end
27+
end
28+
end
29+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#
2+
# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
3+
#
4+
# THIS IS A FILE AUTOGENERATED BY 'rake update' DO NOT EDIT!!!!
5+
#
6+
# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
7+
#
8+
9+
begin
10+
require 'chef/constants'
11+
rescue LoadError; end
12+
13+
require 'chef_compat/copied_from_chef'
14+
class Chef
15+
module ::ChefCompat
16+
module CopiedFromChef
17+
#
18+
# Author:: John Keiser <[email protected]>
19+
# Copyright:: Copyright 2015-2016, Chef Software Inc.
20+
# License:: Apache License, Version 2.0
21+
#
22+
# Licensed under the Apache License, Version 2.0 (the "License");
23+
# you may not use this file except in compliance with the License.
24+
# You may obtain a copy of the License at
25+
#
26+
# http://www.apache.org/licenses/LICENSE-2.0
27+
#
28+
# Unless required by applicable law or agreed to in writing, software
29+
# distributed under the License is distributed on an "AS IS" BASIS,
30+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
# See the License for the specific language governing permissions and
32+
# limitations under the License.
33+
34+
class Chef < (defined?(::Chef) ? ::Chef : Object)
35+
NOT_PASSED = Object.new
36+
def NOT_PASSED.to_s
37+
"NOT_PASSED"
38+
end
39+
40+
def NOT_PASSED.inspect
41+
to_s
42+
end
43+
NOT_PASSED.freeze
44+
end
45+
end
46+
end
47+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
3+
#
4+
# THIS IS A FILE AUTOGENERATED BY 'rake update' DO NOT EDIT!!!!
5+
#
6+
# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
7+
#
8+
9+
begin
10+
require 'chef/delayed_evaluator'
11+
rescue LoadError; end
12+
13+
require 'chef_compat/copied_from_chef'
14+
class Chef
15+
module ::ChefCompat
16+
module CopiedFromChef
17+
#
18+
# Author:: John Keiser <[email protected]>
19+
# Copyright:: Copyright 2015-2016, Chef Software Inc.
20+
# License:: Apache License, Version 2.0
21+
#
22+
# Licensed under the Apache License, Version 2.0 (the "License");
23+
# you may not use this file except in compliance with the License.
24+
# You may obtain a copy of the License at
25+
#
26+
# http://www.apache.org/licenses/LICENSE-2.0
27+
#
28+
# Unless required by applicable law or agreed to in writing, software
29+
# distributed under the License is distributed on an "AS IS" BASIS,
30+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31+
# See the License for the specific language governing permissions and
32+
# limitations under the License.
33+
34+
class Chef < (defined?(::Chef) ? ::Chef : Object)
35+
class DelayedEvaluator < (defined?(::Chef::DelayedEvaluator) ? ::Chef::DelayedEvaluator : Proc)
36+
end
37+
end
38+
end
39+
end
40+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#
2+
# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
3+
#
4+
# THIS IS A FILE AUTOGENERATED BY 'rake update' DO NOT EDIT!!!!
5+
#
6+
# NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
7+
#
8+
9+
begin
10+
require 'chef/dsl/core'
11+
rescue LoadError; end
12+
13+
require 'chef_compat/copied_from_chef'
14+
class Chef
15+
module ::ChefCompat
16+
module CopiedFromChef
17+
#--
18+
# Author:: Adam Jacob (<[email protected]>)
19+
# Author:: Christopher Walters (<[email protected]>)
20+
# Copyright:: Copyright 2008-2016 Chef Software, Inc.
21+
# License:: Apache License, Version 2.0
22+
#
23+
# Licensed under the Apache License, Version 2.0 (the "License");
24+
# you may not use this file except in compliance with the License.
25+
# You may obtain a copy of the License at
26+
#
27+
# http://www.apache.org/licenses/LICENSE-2.0
28+
#
29+
# Unless required by applicable law or agreed to in writing, software
30+
# distributed under the License is distributed on an "AS IS" BASIS,
31+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32+
# See the License for the specific language governing permissions and
33+
# limitations under the License.
34+
#
35+
36+
require "chef_compat/copied_from_chef/chef/dsl/declare_resource"
37+
require "chef_compat/copied_from_chef/chef/dsl/universal"
38+
require "chef_compat/copied_from_chef/chef/mixin/notifying_block"
39+
require "chef_compat/copied_from_chef/chef/mixin/lazy_module_include"
40+
41+
class Chef < (defined?(::Chef) ? ::Chef : Object)
42+
module DSL
43+
CopiedFromChef.extend_chef_module(::Chef::DSL, self) if defined?(::Chef::DSL)
44+
# Part of a family of DSL mixins.
45+
#
46+
# Chef::DSL::Recipe mixes into Recipes and LWRP Providers.
47+
# - this does not target core chef resources and providers.
48+
# - this is restricted to recipe/resource/provider context where a resource collection exists.
49+
# - cookbook authors should typically include modules into here.
50+
#
51+
# Chef::DSL::Core mixes into Recipes, LWRP Providers and Core Providers
52+
# - this adds cores providers on top of the Recipe DSL.
53+
# - this is restricted to recipe/resource/provider context where a resource collection exists.
54+
# - core chef authors should typically include modules into here.
55+
#
56+
# Chef::DSL::Universal mixes into Recipes, LWRP Resources+Providers, Core Resources+Providers, and Attributes files.
57+
# - this adds resources and attributes files.
58+
# - do not add helpers which manipulate the resource collection.
59+
# - this is for general-purpose stuff that is useful nearly everywhere.
60+
# - it also pollutes the namespace of nearly every context, watch out.
61+
#
62+
module Core
63+
CopiedFromChef.extend_chef_module(::Chef::DSL::Core, self) if defined?(::Chef::DSL::Core)
64+
include Chef::DSL::Universal
65+
include Chef::DSL::DeclareResource
66+
include Chef::Mixin::NotifyingBlock
67+
extend Chef::Mixin::LazyModuleInclude
68+
end
69+
end
70+
end
71+
end
72+
end
73+
end

0 commit comments

Comments
 (0)