Skip to content

Commit

Permalink
Merge branch 'main' into fix_hosts_file_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
damacus authored Sep 9, 2021
2 parents f2b9572 + 1897bb4 commit b302919
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 46 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ jobs:
strategy:
matrix:
os:
- 'debian-8'
- 'debian-9'
- 'centos-7'
- 'ubuntu-1604'
- 'ubuntu-1804'
- 'opensuse-leap-15'
- 'amazonlinux-2'

- amazonlinux-2
- debian-9
- debian-10
- centos-7
- centos-8
- ubuntu-1804
- ubuntu-2004
suite:
- 'default'
fail-fast: false
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This file is used to list changes made in each version of the Dnsmasq cookbooks.

- Fix resource name typo and added dependency cookbook for hostsfile_entry (hostsfile)

## 1.1.0 - *2021-08-31*

- Standardise the tested platforms

## 1.0.2 - *2021-08-31*

- Standardise files with files in sous-chefs/repo-management
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ If you need manage your DNS hosts you may use the `dnsmasq` data bag `managed_ho

## Testing

Please refer to the [TESTING file](TESTING.md) to see instructions for testing this cookbook. It is currently tested on the following platforms: CentOS 5.9, CentOS 6.4, Debian 7.1, Ubuntu 10.04, 12.04 and 13.04.
Please refer to the [TESTING file](TESTING.md) to see instructions for testing this cookbook.

## Contributors

Expand Down
48 changes: 26 additions & 22 deletions kitchen.dokken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
env: [CHEF_LICENSE=accept]

transport:
name: dokken

provisioner:
name: dokken
product_name: chef
product_version: <%= ENV['CHEF_VERSION'] || 'latest' %>
install_strategy: once

verifier:
name: inspec

platforms:
- name: debian-8
- name: amazonlinux-2
driver:
image: dokken/debian-8
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd

- name: debian-9
driver:
Expand All @@ -28,22 +25,27 @@ platforms:
intermediate_instructions:
- RUN /usr/bin/apt-get update

- name: centos-6
- name: debian-10
driver:
image: dokken/centos-6
pid_one_command: /sbin/init
image: dokken/debian-10
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update

- name: centos-7
driver:
image: dokken/centos-7
pid_one_command: /usr/lib/systemd/systemd

- name: ubuntu-16.04
- name: centos-8
driver:
image: dokken/ubuntu-16.04
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
image: dokken/centos-8
pid_one_command: /usr/lib/systemd/systemd

- name: fedora-latest
driver:
image: dokken/fedora-latest
pid_one_command: /usr/lib/systemd/systemd

- name: ubuntu-18.04
driver:
Expand All @@ -52,12 +54,14 @@ platforms:
intermediate_instructions:
- RUN /usr/bin/apt-get update

- name: opensuse-leap-15
- name: ubuntu-20.04
driver:
image: dokken/opensuse-leap-15
image: dokken/ubuntu-20.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update

- name: amazonlinux-2
- name: opensuse-leap-15
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd
image: dokken/opensuse-leap-15
pid_one_command: /bin/systemd
19 changes: 9 additions & 10 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@ driver:
name: vagrant

provisioner:
name: chef_solo
name: chef_zero
product_name: chef
enforce_idempotency: true
multiple_converge: 2
solo_rb:
treat_deprecation_warnings_as_errors: true
deprecations_as_errors: true

verifier:
name: inspec

platforms:
- name: centos-6
- name: centos-7
- name: debian-8
- name: debian-9
- name: ubuntu-16.04
- name: ubuntu-18.04
- name: amazonlinux-2
- amazonlinux-2
- debian-9
- debian-10
- centos-7
- centos-8
- ubuntu-1804
- ubuntu-2004

suites:
- name: default
Expand Down
13 changes: 8 additions & 5 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
chef_version '>= 15.3'
source_url 'https://github.com/sous-chefs/dnsmasq'
issues_url 'https://github.com/sous-chefs/dnsmasq/issues'
version '1.0.2'

%w(ubuntu debian redhat centos oracle).each do |os|
supports os
end
version '1.1.0'

depends 'hostsfile'

supports 'ubuntu'
supports 'debian'
supports 'redhat'
supports 'centos'
supports 'oracle'

0 comments on commit b302919

Please sign in to comment.