Skip to content

Commit

Permalink
all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
tmonk42 committed Apr 23, 2015
1 parent 3f75870 commit 8497b89
Show file tree
Hide file tree
Showing 23 changed files with 1,154 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<% proxy_vars = {} %>
<% %w(http_proxy https_proxy no_proxy).each do |envvar| %>
<% if ENV.key?(envvar) %>
<% proxy_vars[envvar] = ENV[envvar] %>
<% end %>
<% end %>
---
driver:
name: vagrant
network:
- ["forwarded_port", { guest: 3000, host: 3000 }]
- ["private_network", {ip: "192.168.33.33" }]

<% if proxy_vars.size > 0 %>
driver_config:
<% %w(http_proxy https_proxy no_proxy).each do |envvar| %>
<% if ENV.key?(envvar) %>
<%= envvar %>: '<%= ENV[envvar] %>'
<% end %>
<% end %>

<% end %>

provisioner:
name: chef_zero
client_rb:
<% %w(http_proxy https_proxy no_proxy).each do |envvar| %>
<% if ENV.key?(envvar) %>
<%= envvar %>: '<%= ENV[envvar] %>'
<% end %>
<% end %>

platforms:
- name: opscode-centos-6.5

suites:
- name: default
run_list:
- recipe[grafana2::default]
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
24 changes: 24 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
AllCops:
Exclude:
- 'vendor/**/*'

Style/SingleSpaceBeforeFirstArg:
Exclude:
- '**/Berksfile'
- '**/metadata.rb'

Style/FileName:
Exclude:
- '**/Gemfile'
- '**/Berksfile'

Metrics/LineLength:
Max: 150

Style/RegexpLiteral:
Exclude:
- '**/Guardfile'

Style/AlignParameters:
Exclude:
- '**/Gemfile'
2 changes: 2 additions & 0 deletions .template_version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
template_version: 0.16.2
10 changes: 10 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
source 'https://supermarket.chef.io'

metadata

# load local overrides
berksfile_dir = File.absolute_path(File.join('.', 'lib', 'berksfile'))
Dir.glob(File.join(berksfile_dir, '*.berks')).each do |snippet|
# rubocop:disable Lint/Eval
eval File.read(snippet), nil, snippet
end
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Revision History for grafana2

## 0.1.4
- Nathan Haneysmith <[email protected]>
- Go ahead and keep grafana package updated

## 0.1.3
- Nathan Haneysmith <[email protected]>
- No more defaults.ini, just grafana.ini

## 0.1.2
- Nathan Haneysmith <[email protected]>
- Sessions in MySQL

## 0.1.1
- Nathan Haneysmith <[email protected]>
- Adding in templates for config

## 0.1.0
- Nathan Haneysmith <[email protected]>
- Initial commit, pkg install and service definition
48 changes: 48 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
source 'https://rubygems.org'

group :development do
gem 'rake', '~> 10.3'
gem 'pry'
gem 'pry-byebug'
gem 'pry-rescue', '~> 1.3'
gem 'pry-stack_explorer', '~> 0.4'
end

group :test do
gem 'foodcritic', '~> 4.0'
gem 'chefspec', '~> 4.1'
gem 'ci_reporter_rspec', '~> 1.0'
gem 'test-kitchen', '~> 1.2'
gem 'kitchen-vagrant', '~> 0.15'
# log_switch v1.0.0 breaks tailor v1.4.0 but tailor
# does a >= pin; we add a ~> pin for now to keep us
# on the 0.4.x release
gem 'log_switch', '~> 0.4'
gem 'tailor', '~> 1.4'
# use our forked version until
# https://github.com/berkshelf/berkshelf/pull/1393 has been accepted
gem 'berkshelf', '~> 3.2',
git: 'https://github.com/Nordstrom/berkshelf.git',
branch: 'use_httpclient_instead_of_nethttp'
# use our forked version until
# https://github.com/berkshelf/berkshelf-api-client/pull/5 has been accepted
gem 'berkshelf-api-client', '~> 1.2',
git: 'https://github.com/Nordstrom/berkshelf-api-client.git',
branch: 'use_httpclient_instead_of_nethttp'
# pin to 2.8 series until guard-foodcritic has been updated for v2 API
gem 'guard', '~> 2.8.2'
# pin to 4.3 series until guard-foodcritic has been updated for v2 API
gem 'guard-rspec', '~> 4.3.1'
gem 'guard-foodcritic', '~> 1.0'
gem 'guard-rake', '~> 0.0'
gem 'rubocop', '~> 0.28.0'
gem 'guard-rubocop', '~> 1.1'
gem 'ruby_gntp', '~> 0.3'
end

# load local overrides
gemfile_dir = File.absolute_path(File.join('.', 'lib', 'gemfile'))
Dir.glob(File.join(gemfile_dir, '*.bundler')).each do |snippet|
# rubocop:disable Lint/Eval
eval File.read(snippet), nil, snippet
end
Loading

0 comments on commit 8497b89

Please sign in to comment.