Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laddanki/upgrade tp 1 #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .README.md.un~
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# chef-third-party

This repository is maintaining all third party cookbooks used by binary.com.
This repository is maintaining all the third party cookbooks used by binary.com.
Most of these cookbooks are slightly modified in order to suite binary.com needs.
4 changes: 4 additions & 0 deletions README.md~
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# chef-third-party

This repository is maintaining all third party cookbooks used by binary.com.
Most of these cookbooks are slightly modified in order to suite binary.com needs.
1 change: 1 addition & 0 deletions cookbooks/apt/.delivery/project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
remote_file = "https://raw.githubusercontent.com/chef-cookbooks/community_cookbook_tools/master/delivery/project.toml"
1 change: 1 addition & 0 deletions cookbooks/apt/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @chef-cookbooks/cookbook_engineering_team
20 changes: 20 additions & 0 deletions cookbooks/apt/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Cookbook version
[Version of the cookbook where you are encountering the issue]

### Chef-client version
[Version of chef-client in your environment]

### Platform Details
[Operating system distribution and release version. Cloud provider if running in the cloud]

### Scenario:
[What you are trying to achieve and you can't?]

### Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]

### Expected Result:
[What are you expecting to happen as the consequence of above reproduction steps?]

### Actual Result:
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]
14 changes: 14 additions & 0 deletions cookbooks/apt/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Description

[Describe what this change achieves]

### Issues Resolved

[List any existing issues this PR resolves]

### Check List

- [ ] All tests pass. See <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD>
- [ ] New functionality includes testing.
- [ ] New functionality has been documented in the README if applicable
- [ ] All commits have been signed for the Developer Certificate of Origin. See <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD>
49 changes: 49 additions & 0 deletions cookbooks/apt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
*.rbc
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
*_Store
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
*.tmp
*.bk
*.bkup

# ruby/bundler files
.ruby-version
.ruby-gemset
.rvmrc
Gemfile.lock
.bundle
*.gem

# YARD artifacts
.yardoc
_yardoc
doc/
.idea

# chef stuff
Berksfile.lock
.kitchen
.kitchen.local.yml
vendor/
.coverage/
.zero-knife.rb
Policyfile.lock.json

# vagrant stuff
.vagrant/
.vagrant.d/
.kitchen/
57 changes: 57 additions & 0 deletions cookbooks/apt/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
sudo: required
dist: trusty

addons:
apt:
sources:
- chef-current-trusty
packages:
- chefdk

# Don't `bundle install` which takes about 1.5 mins
install: echo "skip bundle install"

branches:
only:
- master

services: docker

env:
matrix:
- INSTANCE=default-centos-7
- INSTANCE=default-debian-8
- INSTANCE=default-debian-9
- INSTANCE=default-ubuntu-1404
- INSTANCE=default-ubuntu-1604
- INSTANCE=default-ubuntu-1804
- INSTANCE=cacher-debian-8
- INSTANCE=cacher-debian-9
- INSTANCE=cacher-ubuntu-1604
- INSTANCE=cacher-ubuntu-1404
- INSTANCE=compile-time-ubuntu-1404
- INSTANCE=compile-time-ubuntu-1604
- INSTANCE=compile-time-ubuntu-1804
- INSTANCE=compile-time-debian-8
- INSTANCE=compile-time-debian-9
- INSTANCE=resources-ubuntu-1404
- INSTANCE=resources-ubuntu-1604
- INSTANCE=resources-ubuntu-1804
- INSTANCE=resources-debian-8
- INSTANCE=resources-debian-9
- INSTANCE=unattended-upgrades-ubuntu-1404

before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(chef shell-init bash)"
- chef --version
- cookstyle --version
- foodcritic --version

script: KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen verify ${INSTANCE}

matrix:
include:
- script:
- chef exec delivery local all
env: UNIT_AND_LINT=1
7 changes: 7 additions & 0 deletions cookbooks/apt/Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://supermarket.chef.io'

metadata

group :integration do
cookbook 'test', path: './test/fixtures/cookbooks/test'
end
78 changes: 77 additions & 1 deletion cookbooks/apt/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,85 @@

This file is used to list changes made in each version of the apt cookbook.

## 7.1.1 (2018-10-11)

- Allow to customize sender email for unattended-upgrades

## 7.1.0 (2018-09-05)

- Add the installation of dirmngr and gnupg to the apt default cookbook to support secure repositories
- Added support for the unattended-upgrade SyslogEnable configuration feature
- Added support for the unattended-upgrade SyslogFacility configuration feature

## 7.0.0 (2018-04-06)

### Breaking Change

- This cookbook no longer includes apt_preference as that resource was moved into Chef Client 13.3. The cookbook now also requires Chef 13.3 or later. If you require support for an older release of Chef you will need to pin to a 6.X release.

## 6.1.4 (2017-08-31)

- Restores ignore_failure true on compile time update.
- name_property vs name_attribute in the resource

## 6.1.3 (2017-07-19)

- Fixed typo in readme
- Fixed config namespace in the 10dpkg-options file

## 6.1.2 (2017-06-20)

- restore backwards compatability by respecting node['apt']['periodic_update_min_delay']

## 6.1.1 (2017-06-20)

- Remove action_class.class_eval usage that caused failures
- Remove wrong warning logs generated by apt_preference
- Fix wrong warning log in cacher-client recipe

## 6.1.0 (2017-04-11)

- Test with local delivery and not Rake
- Use proper value type for bsd-mailx package only_if/not_if block
- Update apache2 license string
- Convert apt_preference to a custom resource

## 6.0.1 (2017-02-27)

- Update cookbook description
- Testing updates for Chef 13 and fixes to the cacher recipe

## 6.0.0 (2017-02-08)

### Breaking changes

- apt_update and apt_repository resources have been removed from the cookbook. These resources were both added to the chef-client itself. Due to this we now require Chef 12.9 or later, which has both of these resources built in. If you require compatibility with older chef-client releases you will need to pin to the 5.X release.

### Other changes

- apt_preference resource now properly required a pin_priority, which prevents us from writing out bad preference files that must be manually removed

## 5.1.0 (2017-02-01)

- Convert integration tests to inspec
- Add management of the /etc/apt/apt.conf.d/10dpkg-options file with new attributes. This allows tuning of how dpkg will handle package prompts during package installation. Note that Chef 12.19+ will automatically suppress package prompts

## 5.0.1 (2016-12-22)

- Avoid CHEF-3694 in apt_preferences resource
- Cookstyle fixes

## 5.0.0 (2016-10-14)

- Remove search logic from the cacher client cookbook and rework attribute structure. See the attributes file and readme for new structure. Determining what servers to cache against is better handled in a wrapper cookbook where you can define the exact search syntax yourself
- Corrected readme examples for the cacher client setup
- Depend on the latest compat_resource
- Define matchers for ChefSpec
- Testing updates to better test the various recipes and providers in the cookbook on Travis

## 4.0.2 (2016-08-13)

- The cookbook requires Chef 12.1+ not 12.0. Update docs
- The cookbook requires Chef 12.1+ not 12.0\. Update docs
- Test on Chef 12.1 to ensure compatibility
- Restore compatibility with Chef < 12.4

Expand Down
9 changes: 6 additions & 3 deletions cookbooks/apt/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This gemfile provides additional gems for testing and releasing this cookbook
# It is meant to be installed on top of ChefDK which provides the majority
# of the necessary gems for testing this cookbook
#
# Run 'chef exec bundle install' to install these dependencies

source 'https://rubygems.org'

gem 'tomlrb'
gem 'rake'
gem 'stove'
gem 'community_cookbook_releaser'
18 changes: 0 additions & 18 deletions cookbooks/apt/MAINTAINERS.md

This file was deleted.

41 changes: 0 additions & 41 deletions cookbooks/apt/MAINTAINERS.toml

This file was deleted.

Loading