Commit 1de6008a authored by Xorima's avatar Xorima Committed by Dan Webb
Browse files

CircleCI Orb 2.0 (#117)



* Orb 2.0

Use the new circleci orb
Enable testing of recipe
Signed-off-by: default avatarJason Field <jason@avon-lea.co.uk>
parent 3e669ae5
version: 2.1
---
lint_and_unit: &lint_and_unit
- delivery
- danger
- lint-yaml
- lint-markdown
version: 2.1
orbs:
kitchen: sous-chefs/kitchen@1.0.0
kitchen: sous-chefs/kitchen@2
workflows:
kitchen:
jobs:
# Lint and Unit Test
- kitchen/yamllint:
name: lint-yaml
- kitchen/mdlint:
name: lint-markdown
- kitchen/danger:
name: danger
context: Danger
- kitchen/lint:
name: lint
- kitchen/delivery:
name: delivery
- kitchen/dokken-single:
name: client
suite: client
requires:
*lint_and_unit
- kitchen/dokken-single:
name: server
suite: server
requires:
*lint_and_unit
### 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.]
### 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-brigade/sysctl/blob/master/TESTING.md
- [ ] New functionality includes testing.
- [ ] New functionality has been documented in the README if applicable
# Configuration for lock-threads - https://github.com/dessant/lock-threads
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 365
# Issues and pull requests with these labels will not be locked. Set to `[]` to disable
---
daysUntilLock: 30
exemptLabels: []
# Label to add before locking, such as `outdated`. Set to `false` to disable
lockLabel: false
# Comment to post before locking. Set to `false` to disable
lockComment: >
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
# Limit to only `issues` or `pulls`
# only: issues
# Optionally, specify configuration settings just for `issues` or `pulls`
# issues:
# exemptLabels:
# - help-wanted
# lockLabel: outdated
# pulls:
# daysUntilLock: 30
driver:
name: dokken
privileged: true # because Docker and SystemD/Upstart
chef_version: current
env: [CHEF_LICENSE=accept]
transport:
name: dokken
provisioner:
name: dokken
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: debian-8
driver:
image: debian:8
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y
- name: centos-6
driver:
image: centos:6
platform: rhel
pid_one_command: /sbin/init
intermediate_instructions:
- RUN yum -y install lsof which initscripts net-tools wget net-tools
- name: centos-7
driver:
image: centos:7
platform: rhel
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN yum -y install lsof which systemd-sysv initscripts wget net-tools
- name: fedora-latest
driver:
image: fedora:latest
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN dnf -y install which systemd-sysv initscripts wget net-tools
- name: ubuntu-14.04
driver:
image: ubuntu-upstart:14.04
pid_one_command: /sbin/init
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y
- name: ubuntu-16.04
driver:
image: ubuntu:16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https lsb-release procps net-tools -y
- name: ubuntu-18.04
driver:
image: dokken/ubuntu-18.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get -y install sudo
- name: opensuse-leap
driver:
image: opensuse:leap
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN zypper --non-interactive install aaa_base perl-Getopt-Long-Descriptive which net-tools
suites:
- name: client
run_list:
- recipe[ossec::client]
data_bags_path: 'test/fixtures/data_bags'
- name: server
run_list:
- recipe[ossec::server]
data_bags_path: 'test/fixtures/data_bags'
driver:
name: vagrant
chef_version: current
provisioner:
name: chef_zero
data_bags_path: 'test/fixtures/data_bags'
verifier:
name: inspec
platforms:
- name: centos-6
- name: centos-7
- name: debian-8
run_list: apt::default
- name: fedora-28
- name: ubuntu-14.04
run_list: apt::default
- name: ubuntu-16.04
run_list: apt::default
- name: ubuntu-18.04
run_list: apt::default
suites:
- name: client
run_list:
- recipe[ossec::client]
- name: server
run_list:
- recipe[ossec::server]
- name: agent_auth
run_list:
- recipe[ossec::agent_auth]
attributes:
ossec:
agent_server_ip: 10.0.2.2
- name: authd
run_list:
- recipe[ossec::authd]
driver_config:
network:
- ['forwarded_port', { guest: 1514, host: 1514, protocol: 'udp' }]
- ['forwarded_port', { guest: 1515, host: 1515, protocol: 'tcp' }]
includes:
- centos-7.3
- debian-8.7
rules "~MD013"
---
AllCops:
Exclude:
- 'Dangerfile'
# OSSEC Cookbook CHANGELOG
## 1.2.0 (13-05-2019)
## Unreleased
- Various Cookstyle and foodcritic fixes
- Migration to circleci testing
## 1.2.0
- Add distro based authd service name
## 1.1.0 (13-08-2018)
## 1.1.0
- README Updates:
- Fix broken links
......
Please refer to
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
# Testing
Please refer to [the community cookbook documentation on testing](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD).
---
driver:
name: dokken
privileged: true
chef_version: current
env: [CHEF_LICENSE=accept]
transport:
name: dokken
provisioner:
name: dokken
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: debian-8
driver:
image: debian:8
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https -y
- RUN /usr/bin/apt-get install lsb-release procps net-tools -y
- name: centos-7
driver:
image: centos:7
platform: rhel
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN yum -y install lsof which systemd-sysv initscripts wget net-tools
- name: ubuntu-16.04
driver:
image: ubuntu:16.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get install apt-transport-https -y
- RUN /usr/bin/apt-get install lsb-release procps net-tools -y
- name: ubuntu-18.04
driver:
image: dokken/ubuntu-18.04
pid_one_command: /bin/systemd
intermediate_instructions:
- RUN /usr/bin/apt-get update
- RUN /usr/bin/apt-get -y install sudo
suites:
- name: client
run_list:
- recipe[ossec::client]
data_bags_path: 'test/fixtures/data_bags'
- name: server
run_list:
- recipe[ossec::server]
data_bags_path: 'test/fixtures/data_bags'
---
driver:
chef_version: current
name: vagrant
platforms:
-
name: centos-6
-
name: centos-7
-
name: debian-8
run_list: "apt::default"
-
name: fedora-28
-
name: ubuntu-14.04
run_list: "apt::default"
-
name: ubuntu-16.04
run_list: "apt::default"
-
name: ubuntu-18.04
run_list: "apt::default"
provisioner:
data_bags_path: test/fixtures/data_bags
name: chef_zero
suites:
-
name: client
run_list:
- "recipe[ossec::client]"
-
name: server
run_list:
- "recipe[ossec::server]"
-
attributes:
ossec:
agent_server_ip: "10.0.2.2"
name: agent_auth
run_list:
- "recipe[ossec::agent_auth]"
-
driver_config:
network:
-
- forwarded_port
-
guest: 1514
host: 1514
protocol: udp
-
- forwarded_port
-
guest: 1515
host: 1515
protocol: tcp
includes:
- centos-7.3
- debian-8.7
name: authd
run_list:
- "recipe[ossec::authd]"
verifier:
name: inspec
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment