Skip to content

Commit c765897

Browse files
Initial commit
0 parents  commit c765897

21 files changed

+656
-0
lines changed

.delivery/project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[local_phases]
2+
unit = "chef exec rspec spec/"
3+
lint = "chef exec cookstyle --display-cop-names --extra-details"
4+
syntax = "chef exec foodcritic ."
5+
provision = "chef exec kitchen create"
6+
deploy = "chef exec kitchen converge"
7+
smoke = "chef exec kitchen verify"
8+
functional = "echo skipping"
9+
cleanup = "chef exec kitchen destroy"

.foodcritic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--display-cop-names --extra-details

.github/ISSUE_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
### Cookbook version
2+
[Version of the cookbook where you are encountering the issue]
3+
4+
### Chef-client version
5+
[Version of chef-client in your environment]
6+
7+
### Platform Details
8+
[Operating system distribution and release version.
9+
10+
### Scenario:
11+
[What you are trying to achieve and you can't?]
12+
13+
### Steps to Reproduce:
14+
[If you are filing an issue what are the things we need to do in order to reproduce your problem?]
15+
16+
### Expected Result:
17+
[What are you expecting to happen as the consequence of above reproduction steps?]
18+
19+
### Actual Result:
20+
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### Description
2+
3+
[Describe what this change achieves]
4+
5+
### Issues Resolved
6+
7+
[List any existing issues this PR resolves]
8+
9+
### Contribution Check List
10+
11+
- [ ] All tests pass.
12+
- [ ] New functionality includes testing.
13+
- [ ] New functionality has been documented in the README if applicable

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.vagrant
2+
*~
3+
*#
4+
.#*
5+
\#*#
6+
.*.sw[a-z]
7+
*.un~
8+
.gitkeep
9+
10+
# Bundler
11+
Gemfile.lock
12+
bin/*
13+
.bundle/*
14+
15+
# test kitchen
16+
.kitchen/
17+
.kitchen.local.yml
18+
19+
# Chef
20+
.chef
21+
Berksfile.lock
22+
.zero-knife.rb
23+
Policyfile.lock.json
24+

.kitchen.dokken.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
driver:
3+
name: dokken
4+
privileged: true
5+
chef_version: current
6+
7+
transport:
8+
name: dokken
9+
10+
provisioner:
11+
name: dokken
12+
deprecations_as_errors: true
13+
14+
verifier:
15+
name: inspec
16+
format: doc
17+
inspec_tests:
18+
- test/smoke/default
19+
20+
platforms:
21+
22+
- name: ubuntu-14.04
23+
driver:
24+
image: dokken/ubuntu-14.04
25+
pid_one_command: /sbin/init
26+
intermediate_instructions:
27+
- RUN /usr/bin/apt-get -y update
28+
- RUN /usr/bin/apt-get install -y sudo
29+
30+
- name: ubuntu-16.04
31+
driver:
32+
image: dokken/ubuntu-16.04
33+
pid_one_command: /bin/systemd
34+
intermediate_instructions:
35+
- RUN /usr/bin/apt-get -y update
36+
- RUN /usr/bin/apt-get install -y sudo
37+
38+
suites:
39+
- name: default
40+
run_list:
41+
- recipe[asdf::default]

.kitchen.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
driver:
3+
name: vagrant
4+
5+
provisioner:
6+
name: chef_zero
7+
deprecations_as_errors: true
8+
9+
verifier:
10+
name: inspec
11+
format: doc
12+
inspec_tests:
13+
- test/smoke/default
14+
15+
platforms:
16+
- name: ubuntu-14.04
17+
- name: ubuntu-16.04
18+
19+
suites:
20+
- name: default
21+
run_list:
22+
- recipe[asdf::default]

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Style/TrailingCommaInArguments:
2+
Enabled: true
3+
EnforcedStyleForMultiline: no_comma
4+
Style/TrailingCommaInLiteral:
5+
Enabled: true
6+
EnforcedStyleForMultiline: no_comma

.travis.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
sudo: required
2+
dist: trusty
3+
4+
addons:
5+
apt:
6+
sources:
7+
- chef-current-trusty
8+
packages:
9+
- chefdk
10+
11+
install: echo "skip bundle install"
12+
13+
branches:
14+
only:
15+
- master
16+
17+
services: docker
18+
19+
env:
20+
matrix:
21+
- INSTANCE=default-ubuntu-1404
22+
- INSTANCE=default-ubuntu-1604
23+
24+
before_script:
25+
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
26+
- eval "$(/opt/chefdk/bin/chef shell-init bash)"
27+
- chef --version
28+
- cookstyle --version
29+
- foodcritic --version
30+
31+
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml kitchen verify ${INSTANCE}
32+
33+
after_script:
34+
- docker images
35+
- docker ps -a
36+
- cat .kitchen/logs/kitchen.log
37+
38+
matrix:
39+
include:
40+
- script:
41+
- delivery local verify
42+
env: UNIT_AND_LINT=1

Berksfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://supermarket.chef.io'
4+
5+
metadata

0 commit comments

Comments
 (0)