Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
adding missing tempalte. updating test-kitchen harness
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean OMeara committed Dec 20, 2013
1 parent b30ccd8 commit c31e36e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ platforms:
driver_config:
image_id: 1601
flavor_id: 63
region_id: 1
region_id: 4
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>

- name: centos-6.4
driver_plugin: digitalocean
driver_config:
image_id: 562354
flavor_id: 63
region_id: 1
region_id: 4
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>

- name: amazon-2013.09
Expand All @@ -40,15 +40,15 @@ platforms:
# driver_config:
# image_id: 696598
# flavor_id: 63
# region_id: 1
# region_id: 4
# ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>

- name: ubuntu-1004
driver_plugin: digitalocean
driver_config:
image_id: 14097
flavor_id: 63
region_id: 1
region_id: 4
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
run_list:
- recipe[apt]
Expand All @@ -58,7 +58,7 @@ platforms:
driver_config:
image_id: 1505447
flavor_id: 63
region_id: 1
region_id: 4
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
run_list:
- recipe[apt]
Expand Down
13 changes: 13 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source 'https://rubygems.org'

gem 'berkshelf', '~> 2.0'
gem 'chefspec', '~> 3.0'
gem 'foodcritic', '~> 3.0'
gem 'rubocop'

group :integration do
gem 'test-kitchen', '~> 1.0'
gem 'kitchen-vagrant', '~> 0.11'
gem 'kitchen-digitalocean'
gem 'kitchen-ec2'
end
34 changes: 34 additions & 0 deletions templates/default/bluepill_init.lsb.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

This comment has been minimized.

Copy link
@chulkilee

chulkilee Dec 20, 2013

Contributor

This is from #15 and I think it should have been a separate commit..

#
### BEGIN INIT INFO
# Provides: <%= @service_name %>
# Required-Start: bar
# Defalt-Start: 2 3 4 5
# Default-Stop: 0 1 2 6
# Description: Bluepill loader for <%= @service_name %>
### END INIT INFO

BLUEPILL_BIN=<%= node['bluepill']['bin'] %>
BLUEPILL_CONFIG=<%= @config_file %>
SERVICE_NAME=<%= @service_name %>

case "$1" in
start)
echo "Loading bluepill configuration for $SERVICE_NAME "
$BLUEPILL_BIN load $BLUEPILL_CONFIG
;;
stop)
$BLUEPILL_BIN $SERVICE_NAME stop
$BLUEPILL_BIN $SERVICE_NAME quit
;;
restart)
$BLUEPILL_BIN $SERVICE_NAME restart
;;
status)
$BLUEPILL_BIN $SERVICE_NAME status
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac

2 comments on commit c31e36e

@someara
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry about that... got mixed up in my workflow. I can isolate it, but it would require a force push at this point.
can I send you some Chef swag as an apology?
=)

-s

@chulkilee
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem - thanks for the merge :)

Please sign in to comment.