Switch from Batali to Berkshelf to manage upstream cookbooks

This commit is contained in:
Greg Karékinian
2018-04-17 12:15:43 +02:00
parent 0c80aaabd4
commit d3aa94aab5
62 changed files with 943 additions and 2560 deletions

View File

@@ -1,51 +0,0 @@
*.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
Cheffile.lock
.librarian/
# vagrant stuff
.vagrant/
.vagrant.d/
.kitchen/

View File

@@ -1,29 +0,0 @@
driver:
name: vagrant
provisioner:
name: chef_zero
# We have tests that ensure our deprecated features still
# work so we can't turn this on globally.
# deprecations_as_errors: true
platforms:
- name: centos-6.8
- name: centos-7.3
# - name: debian-7.11
- name: debian-8.6
- name: fedora-25
- name: opensuse-leap-42.1
- name: ubuntu-14.04
- name: ubuntu-16.04
suites:
- name: default
run_list:
- recipe[logrotate::default]
- name: definition
run_list:
- recipe[fake::definition]
- name: global
run_list:
- recipe[logrotate::global]

View File

@@ -1,20 +0,0 @@
# Use Travis's cointainer based infrastructure
sudo: false
addons:
apt:
sources:
- chef-stable-precise
packages:
- chefdk
branches:
only:
- master
# Ensure we make ChefDK's Ruby the default
install: echo "Using ChefDK for all dependencies"
before_script:
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
script:
- make travis

View File

@@ -1,7 +0,0 @@
source 'https://supermarket.chef.io'
metadata
group :development do
cookbook 'fake', path: 'test/fixtures/cookbooks/fake'
end

View File

@@ -1,194 +0,0 @@
logrotate Cookbook CHANGELOG
============================
This file is used to list changes made in each version of the
logrotate cookbook.
v2.2.0
------
# Compatibility Notes
The `compat_resource` dependency was removed. This means we now
require Chef 12.5 or higher. It also means we now better support Chef
13.
# Enhancements
- The global configuration now supports scripts.
- The package install action (upgrade by default) is now configurable
via an attribute.
- The development environment now more closely follows modern cookbook
practices.
# Bug Fixes
- ChefSpec matcher now correctly calls ChefSpec.define_matcher.
-
# Contributors
- Austin Heiman
- Baptiste Courtois
- Bogdan Katynski
- Thomas Dziedzic
- Tim Smith
v2.1.0
------
# Bug Fixes
- Restore `cookbook` parameter for `logrotate_app` resource due to
popular demand.
- Add a `template_name` parameter to replace the 1.x `template`
parameter. The name `template` can't be used inside a resource
without conflicting with an attribute of the same name.
- Fix exception when `options` specified as a string rather than an
array
v2.0.0
------
- Convert the logrotate_app definition to a resource
- Accept all options included in logrotate 3.9.2
# Known incompatibilities
- The `cookbook` parameter to `logrotate_app` is no longer accepted.
v1.9.2
------
## Bug Fixes
- Fix deprecation warnings from ChefSpec
v1.9.1
------
## Bug Fixes
- Fixes regression in the sharedscripts logrotate_app
parameter (Bug #69)
v1.9.0
------
### Improvements
- All configuration options from the logrotate 3.8.8 manual page can
be used by the global configuration and the logrotate_app
definition.
- Berkshelf is no longer a development dependency of the
logrotate cookbook.
- Rubocop lint failures have been resolved.
v1.8.0
------
### Resolved Bugs
- `su` parameter now supported in global config.
### Improvements
- firstaction and lastaction attributes documented in the README
- rotate attribute documented in the README
- Use hash-rocket syntax in rspec matcher to maintain 1.9 support.
v1.7.0
------
### Bugs
- Use `raise` rather than Application.fatal! to prevent killing a
daemonized chef-client
### Improvements
- Chefspec matcher for logrotate_app definition
- Support the following options: compressoptions, maxage,
shred/shredcycles, extension, tabooext
- Add Solaris support
v1.6.0
------
### Bugs
- Fix documentation error
### Improvements
- Support for options "compresscmd", "uncompresscmd", "compressext"
- Allow nodateext as parameter for logrotate_app definition
- Move to chefspec ~> 3.0
v1.5.0
------
### Bugs
- Fix missing end tag in template
- Don't re-initialize constants.
- Fix rubocop finding
### Improvements
- [COOK-3911] Allow to use maxsize parameter.
- [COOK-4000] Allow to use dateyesterday option.
- [COOK-4024] Allow to use su parameter.
- [COOK-4175] Allows use of the dateformat parameter.
- Loosen test-kitchen version constraint
- Add rvm files to gitignore
v1.4.0
------
### Bug
- **[COOK-3632](https://tickets.chef.io/browse/COOK-3632)** - Raise Exception when adding more than one invalid option
- **[COOK-3141](https://tickets.chef.io/browse/COOK-3141)** - Do not duplicate template entires for multiple paths
- **[COOK-3034](https://tickets.chef.io/browse/COOK-3034)** - Update logrotate_app params to accept arrays and strings
### Improvement
- **[COOK-2646](https://tickets.chef.io/browse/COOK-2646)** - Add ability to choose file mode for logrotate template
v1.3.0
------
### Improvement
- **[COOK-3341](https://tickets.chef.io/browse/COOK-3341)** - Add optional `frequency` and `rotate` params when defined globally
- **[COOK-3298](https://tickets.chef.io/browse/COOK-3298)** - Use `Array` instead of `respond_to?(:each)`
- **[COOK-3285](https://tickets.chef.io/browse/COOK-3285)** - Change `logrotate.d` config file mode to `0644`
- **[COOK-3250](https://tickets.chef.io/browse/COOK-3250)** - Add `minsize`
### Bug
- **[COOK-3274](https://tickets.chef.io/browse/COOK-3274)** - Fix README typo that suggested the opposite action
### New Feature
- **[COOK-2923](https://tickets.chef.io/browse/COOK-2923)** - Add `olddir` option
- **[COOK-1651](https://tickets.chef.io/browse/COOK-1651)** - Add `dateext` ability
v1.2.2
-----
### Bug
- [COOK-2872]: Add firstaction/lastaction ability to logrotate
- [COOK-2908]: Argument error in `logrotate_app` definition
v1.2.0
-----
- [COOK-2401] - Add the ability to manage the global logrotate configuration
v1.1.0
-----
- [COOK-2218] - Logrotate size parameter
v1.0.2
-----
- [COOK-1027] - Add support for pre-/post-rotate commands
- [COOK-1338] - Update log rotate for more flexibility of rotate options
- [COOK-1598] - "Create" isn't a mandatory option

View File

@@ -1,46 +0,0 @@
## Contribution Guidelines
- Please submit improvements and bug fixes via Github pull requests or
by sending an email to steve@chef.io in git's format-patch
format.
- All patches should have well-written commit message. The first line
should summarize the change while the rest of the commit message
should explain the reason the change is needed.
- Please ensure all tests and lint checking pass before submitting
pull requests.
## Development
### Requirements
- Ruby 2.0+
- Latest ChefDK
- [Vagrant](https://vagrantup.com)
- [VirtualBox](https://virtualbox.org)
### Development Flow
1. Clone the git repository from GitHub:
git clone git@github.com:stevendanna/logrotate.git
2. Ensure you have ChefDK installed:
chef --version
3. Create a branch for your changes:
git checkout -b my_bug_fix
4. Make any changes
5. Write tests to support those changes. It is highly recommended you
write both unit and integration tests.
6. Run the tests:
- `make travis`
- `kitchen test`
7. Assuming the tests pass, open a Pull Request on GitHub

View File

@@ -1,18 +0,0 @@
name 'logrotate'
maintainer 'Steven Danna'
maintainer_email 'steve@chef.io'
license 'Apache 2.0'
description 'Installs logrotate package and provides a definition for logrotate configs'
long_description 'Installs the logrotate package, manages /etc/logrotate.conf, and provides a logrotate_app definition.'
version '2.2.0'
recipe 'logrotate', 'Installs logrotate package'
provides 'logrotate_app'
%w(amazon centos debian fedora redhat scientific solaris2 ubuntu).each do |platform|
supports platform
end
source_url 'https://github.com/stevendanna/logrotate'
issues_url 'https://github.com/stevendanna/logrotate/issues'
chef_version '>= 12.5' if respond_to?(:chef_version)