-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 53f09f5
Showing
10 changed files
with
225 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.vagrant | ||
*~ | ||
*# | ||
.#* | ||
\#*# | ||
.*.sw[a-z] | ||
*.un~ | ||
|
||
# Bundler | ||
Gemfile.lock | ||
bin/* | ||
.bundle/* | ||
|
||
# test kitchen | ||
.kitchen/ | ||
.kitchen.local.yml | ||
|
||
# Chef | ||
Berksfile.lock | ||
.zero-knife.rb | ||
Policyfile.lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: chef_zero | ||
# You may wish to disable always updating cookbooks in CI or other testing environments. | ||
# For example: | ||
# always_update_cookbooks: <%= !ENV['CI'] %> | ||
always_update_cookbooks: true | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: ubuntu-16.04 | ||
- name: centos-7.2 | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[chef-zerotier::default] | ||
verifier: | ||
inspec_tests: | ||
- test/smoke/default | ||
attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://supermarket.chef.io' | ||
|
||
metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# chef-zerotier | ||
|
||
TODO: Enter the cookbook description here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Put files/directories that should be ignored in this file when uploading | ||
# to a chef-server or supermarket. | ||
# Lines that start with '# ' are comments. | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
Icon? | ||
nohup.out | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# SASS # | ||
######## | ||
.sass-cache | ||
|
||
# EDITORS # | ||
########### | ||
\#* | ||
.#* | ||
*~ | ||
*.sw[a-z] | ||
*.bak | ||
REVISION | ||
TAGS* | ||
tmtags | ||
*_flymake.* | ||
*_flymake | ||
*.tmproj | ||
.project | ||
.settings | ||
mkmf.log | ||
|
||
## COMPILED ## | ||
############## | ||
a.out | ||
*.o | ||
*.pyc | ||
*.so | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*/rdoc/ | ||
|
||
# Testing # | ||
########### | ||
.watchr | ||
.rspec | ||
spec/* | ||
spec/fixtures/* | ||
test/* | ||
features/* | ||
examples/* | ||
Guardfile | ||
Procfile | ||
.kitchen* | ||
.rubocop.yml | ||
spec/* | ||
Rakefile | ||
.travis.yml | ||
.foodcritic | ||
.codeclimate.yml | ||
|
||
# SCM # | ||
####### | ||
.git | ||
*/.git | ||
.gitignore | ||
.gitmodules | ||
.gitconfig | ||
.gitattributes | ||
.svn | ||
*/.bzr/* | ||
*/.hg/* | ||
*/.svn/* | ||
|
||
# Berkshelf # | ||
############# | ||
Berksfile | ||
Berksfile.lock | ||
cookbooks/* | ||
tmp | ||
|
||
# Policyfile # | ||
############## | ||
Policyfile.rb | ||
Policyfile.lock.json | ||
|
||
# Cookbooks # | ||
############# | ||
CONTRIBUTING* | ||
CHANGELOG* | ||
TESTING* | ||
MAINTAINERS.toml | ||
|
||
# Strainer # | ||
############ | ||
Colanderfile | ||
Strainerfile | ||
.colander | ||
.strainer | ||
|
||
# Vagrant # | ||
########### | ||
.vagrant | ||
Vagrantfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name 'chef-zerotier' | ||
maintainer 'The Authors' | ||
maintainer_email '[email protected]' | ||
license 'all_rights' | ||
description 'Installs/Configures chef-zerotier' | ||
long_description 'Installs/Configures chef-zerotier' | ||
version '0.1.0' | ||
|
||
# The `issues_url` points to the location where issues for this cookbook are | ||
# tracked. A `View Issues` link will be displayed on this cookbook's page when | ||
# uploaded to a Supermarket. | ||
# | ||
# issues_url 'https://github.com/<insert_org_here>/chef-zerotier/issues' if respond_to?(:issues_url) | ||
|
||
# The `source_url` points to the development reposiory for this cookbook. A | ||
# `View Source` link will be displayed on this cookbook's page when uploaded to | ||
# a Supermarket. | ||
# | ||
# source_url 'https://github.com/<insert_org_here>/chef-zerotier' if respond_to?(:source_url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Cookbook:: chef-zerotier | ||
# Recipe:: default | ||
# | ||
# Copyright:: 2017, The Authors, All Rights Reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'chefspec' | ||
require 'chefspec/berkshelf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Cookbook:: chef-zerotier | ||
# Spec:: default | ||
# | ||
# Copyright:: 2017, The Authors, All Rights Reserved. | ||
|
||
require 'spec_helper' | ||
|
||
describe 'chef-zerotier::default' do | ||
context 'When all attributes are default, on an unspecified platform' do | ||
let(:chef_run) do | ||
runner = ChefSpec::ServerRunner.new | ||
runner.converge(described_recipe) | ||
end | ||
|
||
it 'converges successfully' do | ||
expect { chef_run }.to_not raise_error | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# # encoding: utf-8 | ||
|
||
# Inspec test for recipe chef-zerotier::default | ||
|
||
# The Inspec reference, with examples and extensive documentation, can be | ||
# found at http://inspec.io/docs/reference/resources/ | ||
|
||
unless os.windows? | ||
describe user('root') do | ||
it { should exist } | ||
skip 'This is an example test, replace with your own test.' | ||
end | ||
end | ||
|
||
describe port(80) do | ||
it { should_not be_listening } | ||
skip 'This is an example test, replace with your own test.' | ||
end |