Skip to content

Commit

Permalink
Init 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gsdevme committed Feb 29, 2016
1 parent 9318aa5 commit 9d06732
Show file tree
Hide file tree
Showing 11 changed files with 336 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .kitchen.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
driver:
name: docker
privileged: true
22 changes: 22 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
driver:
name: vagrant

provisioner:
name: chef_solo
require_chef_omnibus: "12.6.0"

platforms:
- name: centos-7.0
driver_config:
image: centos:7
platform: rhel
provision_command:
- /bin/yum install -y initscripts net-tools wget


suites:
- name: default
run_list:
- recipe[motd-markup]
attributes:
3 changes: 3 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://api.berkshelf.com"

metadata
11 changes: 11 additions & 0 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DEPENDENCIES
motd-markup
path: .
metadata: true

GRAPH
chef_handler (1.3.0)
motd (0.6.3)
chef_handler (>= 0.0.0)
motd-markup (0.0.1)
motd (>= 0.0.0)
14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
source "https://rubygems.org"

# Chef
gem "berkshelf", "~> 3.1.4"
gem "knife-solo", "~> 0.4"
gem "knife-solo_data_bag", "~> 1.1.0"
gem "chef", "~> 12.6.0"
gem "test-kitchen"

# Execution helpers
gem 'rubygems-bundler', '~> 1.4.3'

gem "kitchen-vagrant"
gem "kitchen-docker"
240 changes: 240 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.8)
berkshelf (3.1.4)
addressable (~> 2.3.4)
berkshelf-api-client (~> 1.2)
buff-config (~> 1.0)
buff-extensions (~> 1.0)
buff-shell_out (~> 0.1)
celluloid (~> 0.16.0.pre)
celluloid-io (~> 0.16.0.pre)
faraday (~> 0.9.0)
minitar (~> 0.5.4)
octokit (~> 3.0)
retryable (~> 1.3.3)
ridley (~> 4.0)
solve (~> 1.1)
thor (~> 0.18)
berkshelf-api-client (1.3.1)
faraday (~> 0.9.1)
httpclient (~> 2.6.0)
buff-config (1.0.1)
buff-extensions (~> 1.0)
varia_model (~> 0.4)
buff-extensions (1.0.0)
buff-ignore (1.1.1)
buff-ruby_engine (0.1.0)
buff-shell_out (0.2.0)
buff-ruby_engine (~> 0.1.0)
builder (3.2.2)
bundler-unload (1.0.2)
celluloid (0.16.0)
timers (~> 4.0.0)
celluloid-io (0.16.2)
celluloid (>= 0.16.0)
nio4r (>= 1.1.0)
chef (12.6.0)
chef-config (= 12.6.0)
chef-zero (~> 4.2, >= 4.2.2)
diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7)
ffi-yajl (~> 2.2)
highline (~> 1.6, >= 1.6.9)
mixlib-authentication (~> 1.3)
mixlib-cli (~> 1.4)
mixlib-log (~> 1.3)
mixlib-shellout (~> 2.0)
net-ssh (~> 2.6)
net-ssh-multi (~> 1.1)
ohai (>= 8.6.0.alpha.1, < 9)
plist (~> 3.1.0)
proxifier (~> 1.0)
pry (~> 0.9)
rspec-core (~> 3.4)
rspec-expectations (~> 3.4)
rspec-mocks (~> 3.4)
rspec_junit_formatter (~> 0.2.0)
serverspec (~> 2.7)
specinfra (~> 2.10)
syslog-logger (~> 1.6)
chef-config (12.6.0)
mixlib-config (~> 2.0)
mixlib-shellout (~> 2.0)
chef-zero (4.5.0)
ffi-yajl (~> 2.2)
hashie (>= 2.0, < 4.0)
mixlib-log (~> 1.3)
rack
uuidtools (~> 2.1)
coderay (1.1.1)
dep-selector-libgecode (1.1.0)
dep_selector (1.0.3)
dep-selector-libgecode (~> 1.0)
ffi (~> 1.9)
diff-lcs (1.2.5)
erubis (2.7.0)
executable-hooks (1.3.2)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
ffi (1.9.10)
ffi-yajl (2.2.3)
libyajl2 (~> 1.2)
hashie (2.1.2)
highline (1.7.8)
hitimes (1.2.3)
httpclient (2.6.0.1)
ipaddress (0.8.3)
json (1.8.3)
kitchen-docker (2.3.0)
test-kitchen (>= 1.0.0)
kitchen-vagrant (0.19.0)
test-kitchen (~> 1.4)
knife-solo (0.5.1)
chef (>= 10.20)
erubis (~> 2.7.0)
net-ssh (~> 2.7, < 3.0)
knife-solo_data_bag (1.1.0)
libyajl2 (1.2.0)
method_source (0.8.2)
minitar (0.5.4)
mixlib-authentication (1.4.0)
mixlib-log
rspec-core (~> 3.2)
rspec-expectations (~> 3.2)
rspec-mocks (~> 3.2)
mixlib-cli (1.5.0)
mixlib-config (2.2.1)
mixlib-install (0.7.1)
mixlib-log (1.6.0)
mixlib-shellout (2.2.6)
multi_json (1.11.2)
multipart-post (2.0.0)
net-http-persistent (2.9.4)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.4)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-multi (1.2.1)
net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0)
net-telnet (0.1.1)
nio4r (1.2.1)
octokit (3.8.0)
sawyer (~> 0.6.0, >= 0.5.3)
ohai (8.10.0)
chef-config (>= 12.5.0.alpha.1, < 13)
ffi (~> 1.9)
ffi-yajl (~> 2.2)
ipaddress
mixlib-cli
mixlib-config (~> 2.0)
mixlib-log
mixlib-shellout (~> 2.0)
rake (~> 10.1)
systemu (~> 2.6.4)
wmi-lite (~> 1.0)
plist (3.1.0)
proxifier (1.0.3)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (1.6.4)
rake (10.5.0)
retryable (1.3.6)
ridley (4.1.1)
addressable
buff-config (~> 1.0)
buff-extensions (~> 1.0)
buff-ignore (~> 1.1)
buff-shell_out (~> 0.1)
celluloid (~> 0.16.0)
celluloid-io (~> 0.16.1)
erubis
faraday (~> 0.9.0)
hashie (>= 2.0.2, < 3.0.0)
json (>= 1.7.7)
mixlib-authentication (>= 1.3.0)
net-http-persistent (>= 2.8)
retryable
semverse (~> 1.1)
varia_model (~> 0.4)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.3)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-its (1.2.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
rspec_junit_formatter (0.2.3)
builder (< 4)
rspec-core (>= 2, < 4, != 2.12.0)
rubygems-bundler (1.4.4)
bundler-unload (>= 1.0.2)
executable-hooks (>= 1.3.2)
safe_yaml (1.0.4)
sawyer (0.6.0)
addressable (~> 2.3.5)
faraday (~> 0.8, < 0.10)
semverse (1.2.1)
serverspec (2.30.0)
multi_json
rspec (~> 3.0)
rspec-its
specinfra (~> 2.48)
sfl (2.2)
slop (3.6.0)
solve (1.2.1)
dep_selector (~> 1.0)
semverse (~> 1.1)
specinfra (2.51.2)
net-scp
net-ssh (>= 2.7, < 3.1)
net-telnet
sfl
syslog-logger (1.6.8)
systemu (2.6.5)
test-kitchen (1.5.0)
chef-config (>= 12.5.1)
mixlib-install (~> 0.7)
mixlib-shellout (>= 1.2, < 3.0)
net-scp (~> 1.1)
net-ssh (>= 2.9, < 4.0)
safe_yaml (~> 1.0)
thor (~> 0.18)
thor (0.19.1)
timers (4.0.4)
hitimes
uuidtools (2.1.5)
varia_model (0.5.0)
buff-extensions (~> 1.0)
hashie (>= 2.0.2, < 4.0.0)
wmi-lite (1.0.0)

PLATFORMS
ruby

DEPENDENCIES
berkshelf (~> 3.1.4)
chef (~> 12.6.0)
kitchen-docker
kitchen-vagrant
knife-solo (~> 0.4)
knife-solo_data_bag (~> 1.1.0)
rubygems-bundler (~> 1.4.3)
test-kitchen

BUNDLED WITH
1.11.2
1 change: 1 addition & 0 deletions chefignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.kitchen
15 changes: 15 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
machine:
services:
- docker
ruby:
version: 2.2.2

dependencies:
override:
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3:
timeout: 1200

test:
override:
- KITCHEN_LOCAL_YAML=.kitchen.docker.yml bundle exec kitchen test:
timeout: 300
5 changes: 5 additions & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name "motd-markup"
maintainer "Markup"
description "Configure the MOTD"
version "0.0.1"
depends "motd"
4 changes: 4 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
motd '50-mymotd' do
cookbook 'motd-markup'
source 'default.erb'
end
17 changes: 17 additions & 0 deletions templates/default.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
############################################
__ __ _____ _ ___ _ _____
| \/ | /\ | __ \| |/ / | | | __ \
| \ / | / \ | |__) | ' /| | | | |__) |
| |\/| | / /\ \ | _ /| < | | | | ___/
| | | |/ ____ \| | \ \| . \| |__| | |
|_| |_/_/ \_\_| \_\_|\_\\____/|_|

############################################
# THIS SERVER IS CHEF PROVISIONED #
# NO MANUAL CHANGES SHOULD BE MADE #
############################################

-Environment: <%= @environment %>
-Provisioned: <%= Time.new.inspect %>

############################################

0 comments on commit 9d06732

Please sign in to comment.