Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
first steps towards becoming a library cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
paulczar committed Jun 29, 2014
1 parent 5ae0ee5 commit ff697c1
Show file tree
Hide file tree
Showing 28 changed files with 5,637 additions and 422 deletions.
8 changes: 8 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
image: paulczar/meez
env:
- CI=drone
- USE_SYSTEM_GECODE=1
script:
- bundle install
- bundle exec berks install
- bundle exec rake style spec
14 changes: 14 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
driver:
name: vagrant

provisioner:
name: chef_solo

platforms:
- name: ubuntu-12.04

suites:
- name: default
run_list: recipe[kibana::install]
attributes:
6 changes: 6 additions & 0 deletions .kitchen/default-ubuntu-1204.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
hostname: 127.0.0.1
username: vagrant
ssh_key: "/home/pczarkowski/.vagrant.d/insecure_private_key"
port: '2222'
last_action: converge
8 changes: 8 additions & 0 deletions .kitchen/kitchen-vagrant/default-ubuntu-1204/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Vagrant.configure("2") do |c|
c.vm.box = "opscode-ubuntu-12.04"
c.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box"
c.vm.hostname = "default-ubuntu-1204.vagrantup.com"
c.vm.synced_folder ".", "/vagrant", disabled: true
c.vm.provider :virtualbox do |p|
end
end
4,642 changes: 4,642 additions & 0 deletions .kitchen/logs/default-ubuntu-1204.log

Large diffs are not rendered by default.

180 changes: 180 additions & 0 deletions .kitchen/logs/kitchen.log

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
AllCops:
Exclude:
- 'vendor/**/*'
- 'test/support/**'
- 'bin/**/*'
Include:
- '**/Rakefile'
- '**/Gemfile'
- '**/Vagrantfile'
- '**/Berksfile'
CyclomaticComplexity:
Enabled: false

LineLength:
Enabled: true
Max: 200

MethodLength:
Enabled: true
Max: 20

AccessorMethodName:
Enabled: false

ClassAndModuleChildren:
Enabled: false

UselessAssignment:
Enabled: false

BlockNesting:
Max: 4

Documentation:
Enabled: false

MethodLength:
Max: 50

SingleSpaceBeforeFirstArg:
Enabled: false
6 changes: 5 additions & 1 deletion Berksfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Encoding: utf-8

source 'https://api.berkshelf.com' if Gem::Version.new(Berkshelf::VERSION) > Gem::Version.new('3')

metadata
cookbook 'yum'
cookbook 'apt'
Expand All @@ -7,4 +11,4 @@ cookbook 'git'
cookbook 'java'
cookbook 'ark'

cookbook 'elasticsearch', git: 'git://github.com/elasticsearch/cookbook-elasticsearch.git'
cookbook 'elasticsearch', git: 'git://github.com/elasticsearch/cookbook-elasticsearch.git'
148 changes: 79 additions & 69 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -1,69 +1,79 @@
{
"sources": {
"kibana": {
"path": "."
},
"yum": {
"locked_version": "2.3.4"
},
"apt": {
"locked_version": "2.2.0"
},
"nginx": {
"locked_version": "2.0.0"
},
"apache2": {
"locked_version": "1.8.4"
},
"git": {
"locked_version": "2.6.0"
},
"java": {
"locked_version": "1.14.0"
},
"ark": {
"locked_version": "0.4.0"
},
"elasticsearch": {
"locked_version": "0.3.4",
"git": "git://github.com/elasticsearch/cookbook-elasticsearch.git",
"ref": "42db58c0e672fbac407245e935406b3d0f3082d6"
},
"bluepill": {
"locked_version": "2.3.1"
},
"rsyslog": {
"locked_version": "1.12.2"
},
"build-essential": {
"locked_version": "1.4.4"
},
"ohai": {
"locked_version": "1.1.12"
},
"runit": {
"locked_version": "1.5.8"
},
"yum-epel": {
"locked_version": "0.3.4"
},
"dmg": {
"locked_version": "2.2.0"
},
"windows": {
"locked_version": "1.30.0"
},
"chef_handler": {
"locked_version": "1.1.5"
},
"aws": {
"locked_version": "2.1.0"
},
"xml": {
"locked_version": "1.2.2"
},
"monit": {
"locked_version": "0.7.1"
}
}
}
DEPENDENCIES
apache2
apt
ark
elasticsearch
git: git://github.com/elasticsearch/cookbook-elasticsearch.git
revision: c112a02e50f40dfd93bbe9326e2e695e4a06e59a
git
java
kibana
path: .
metadata: true
nginx
yum

GRAPH
7-zip (1.0.2)
windows (>= 1.2.2)
apache2 (1.10.4)
iptables (>= 0.0.0)
logrotate (>= 0.0.0)
pacman (>= 0.0.0)
apt (2.4.0)
ark (0.9.0)
7-zip (>= 0.0.0)
windows (>= 0.0.0)
bluepill (2.3.1)
rsyslog (>= 0.0.0)
build-essential (2.0.4)
chef-sugar (2.0.0)
chef_handler (1.1.6)
dmg (2.2.0)
elasticsearch (0.3.10)
ark (>= 0.2.4)
build-essential (>= 0.0.0)
java (>= 0.0.0)
monit (>= 0.0.0)
xml (>= 0.0.0)
git (4.0.2)
build-essential (>= 0.0.0)
dmg (>= 0.0.0)
runit (>= 1.0.0)
windows (>= 0.0.0)
yum (~> 3.0)
yum-epel (>= 0.0.0)
iptables (0.13.2)
java (1.22.0)
kibana (1.2.1)
apache2 (>= 0.0.0)
ark (>= 0.0.0)
git (>= 0.0.0)
libarchive (>= 0.0.0)
nginx (>= 0.0.0)
libarchive (0.4.0)
build-essential (~> 2.0)
logrotate (1.6.0)
monit (0.7.1)
nginx (2.7.4)
apt (~> 2.2)
bluepill (~> 2.3)
build-essential (~> 2.0)
ohai (~> 2.0)
runit (~> 1.2)
yum-epel (~> 0.3)
ohai (2.0.1)
pacman (1.1.1)
rsyslog (1.12.2)
runit (1.5.10)
build-essential (>= 0.0.0)
yum (~> 3.0)
yum-epel (>= 0.0.0)
windows (1.31.0)
chef_handler (>= 0.0.0)
xml (1.2.6)
build-essential (>= 0.0.0)
chef-sugar (>= 0.0.0)
yum (3.2.2)
yum-epel (0.3.6)
yum (~> 3.0)
32 changes: 25 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
source 'https://rubygems.org'

gem 'chef'
gem 'berkshelf'
gem 'tailor'
gem 'chefspec'
gem 'foodcritic'
gem 'strainer'
gem 'vagabond'
gem 'berkshelf', '> 3'

# Uncomment these lines if you want to live on the Edge:
#
# group :development do
# gem "berkshelf", github: "berkshelf/berkshelf"
# gem "vagrant", github: "mitchellh/vagrant", tag: "v1.5.2"
# end
#
# group :plugins do
# gem "vagrant-berkshelf", github: "berkshelf/vagrant-berkshelf"
# gem "vagrant-omnibus", github: "schisamo/vagrant-omnibus"
# end

gem 'chef', '>= 11.8'
gem 'rake', '>= 10.2'
gem 'rubocop', '= 0.23'
gem 'foodcritic', '< 4.0'
gem 'chefspec', '>= 3.4'
gem 'serverspec', '>= 1.6'
gem 'test-kitchen'
gem 'kitchen-vagrant'
gem 'guard', '>= 2.6'
gem 'guard-rubocop', '>= 1.1'
gem 'guard-foodcritic', '>= 1.0.2'
Loading

0 comments on commit ff697c1

Please sign in to comment.