-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ready For Review, Docker support added whereas docker support is the …
…same as vagrant (#38) * Adding support for docker, we are using the vagrant provider, chef-sugar allows us a construct for detecting docker and using the right provider. * updated travis to use kitchen-dokken
- Loading branch information
Showing
32 changed files
with
251 additions
and
41 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,131 @@ | ||
driver: | ||
name: dokken | ||
privileged: true # because Docker and SystemD/Upstart | ||
chef_version: 12.16.42 | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: dokken | ||
|
||
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 which initscripts net-tools wget | ||
|
||
- 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 yum which systemd-sysv initscripts wget net-tools | ||
|
||
- name: ubuntu-12.04 | ||
driver: | ||
image: ubuntu-upstart:12.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-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: opensuse-13.2 | ||
driver: | ||
image: opensuse:13.2 | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN zypper --non-interactive install aaa_base perl-Getopt-Long-Descriptive which net-tools | ||
|
||
- 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 hostname | ||
# | ||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[machine_tag] | ||
- recipe[fake] | ||
attributes: | ||
apt: | ||
compile_time_update: true | ||
- name: create | ||
run_list: | ||
- recipe[machine_tag] | ||
- recipe[fake::create_tags] | ||
attributes: | ||
apt: | ||
compile_time_update: true | ||
cloud: | ||
provider: vagrant | ||
- name: delete | ||
run_list: | ||
- recipe[machine_tag] | ||
- recipe[fake::create_tags] | ||
- recipe[fake::delete_tags] | ||
attributes: | ||
apt: | ||
compile_time_update: true | ||
cloud: | ||
provider: vagrant | ||
- name: list | ||
run_list: | ||
- recipe[machine_tag] | ||
- recipe[fake::create_tags] | ||
- recipe[fake::list_tags] | ||
attributes: | ||
apt: | ||
compile_time_update: true | ||
cloud: | ||
provider: vagrant | ||
- name: search | ||
run_list: | ||
- recipe[machine_tag] | ||
- recipe[fake::create_tags] | ||
- recipe[fake::search_tags] | ||
attributes: | ||
apt: | ||
compile_time_update: true | ||
cloud: | ||
provider: vagrant |
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 |
---|---|---|
@@ -1,13 +1,63 @@ | ||
language: ruby | ||
rvm: | ||
- 2.3.1 | ||
before_install: | ||
- curl -L https://www.getchef.com/chef/install.sh | sudo bash -s -- -P chefdk -v 1.0.3 | ||
- gem install bundler -v 1.11.2 | ||
install: | ||
sudo: required | ||
dist: trusty | ||
|
||
# install the pre-release chef-dk. Use chef-stable-trusty to install the stable release | ||
addons: | ||
apt: | ||
sources: | ||
- chef-stable-trusty | ||
packages: | ||
- chefdk | ||
|
||
# Don't `bundle install` which takes about 1.5 mins | ||
install: echo "skip bundle install" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
services: docker | ||
|
||
env: | ||
matrix: | ||
- INSTANCE=default-ubuntu-1404 | ||
- INSTANCE=default-ubuntu-1204 | ||
- INSTANCE=default-centos-6 | ||
- INSTANCE=default-centos-7 | ||
- INSTANCE=create-ubuntu-1404 | ||
- INSTANCE=create-ubuntu-1204 | ||
- INSTANCE=create-centos-6 | ||
- INSTANCE=create-centos-7 | ||
- INSTANCE=delete-ubuntu-1404 | ||
- INSTANCE=delete-ubuntu-1204 | ||
- INSTANCE=delete-centos-6 | ||
- INSTANCE=delete-centos-7 | ||
- INSTANCE=list-ubuntu-1404 | ||
- INSTANCE=list-ubuntu-1204 | ||
- INSTANCE=list-centos-6 | ||
- INSTANCE=list-centos-7 | ||
- INSTANCE=search-ubuntu-1404 | ||
- INSTANCE=search-ubuntu-1204 | ||
- INSTANCE=search-centos-6 | ||
- INSTANCE=search-centos-7 | ||
before_script: | ||
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER ) | ||
- eval "$(/opt/chefdk/bin/chef shell-init bash)" | ||
- /opt/chefdk/embedded/bin/chef --version | ||
- /opt/chefdk/embedded/bin/cookstyle --version | ||
- /opt/chefdk/embedded/bin/foodcritic --version | ||
- sudo chef gem install kitchen-dokken | ||
- chef exec bundle install --jobs=3 --retry=3 | ||
before_script: chef exec rake setup_test_environment | ||
script: ./.travis_install.sh | ||
|
||
script: KITCHEN_LOCAL_YAML=.kitchen.dokken.yml /opt/chefdk/embedded/bin/chef exec kitchen verify ${INSTANCE} | ||
|
||
matrix: | ||
include: | ||
- script: | ||
- chef exec rake setup_test_environment | ||
- "./.travis_install.sh" | ||
env: UNIT_AND_LINT=1 | ||
|
||
notifications: | ||
slack: | ||
secure: O3w/D2xUxgWwKY6aRiLP0KvRnUDXS7t9bGzQELo+d6KxGXRhf3mo32FeKKI2MdIVnZJf+nV+/5eIskH7VtcaW+EgS71npLs4NQBrqM5TR3J0gkRoYXGvH8f7VgXtHc3NbrHwc2eCLsacEam4BFHlJQqACRfWLbnS/186gEoLb3o= |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
source 'https://rubygems.org' | ||
|
||
gem 'right_api_client' | ||
|
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
# | ||
# Cookbook Name:: machine_tag | ||
# Library:: machine_tag_base | ||
|
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
# | ||
# Cookbook Name:: machine_tag | ||
# Library:: machine_tag_rightscale | ||
|
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
# | ||
# Cookbook Name:: machine_tag | ||
# Library:: matchers | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
# | ||
# Cookbook Name:: machine_tag | ||
# Library:: provider_machine_tag | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
# | ||
# Cookbook Name:: machine_tag | ||
# Library:: resource_machine_tag | ||
|
Oops, something went wrong.