Skip to content

Instantly share code, notes, and snippets.

View johnbellone's full-sized avatar
🏠
Working from home

John Bellone johnbellone

🏠
Working from home
View GitHub Profile
@johnbellone
johnbellone / spec_helper.rb
Created October 10, 2017 15:50
spec_helper
require 'rspec'
require 'rspec_command'
require 'foodcritic'
module FunctionalHelpers
extend RSpec::Matchers::DSL
matcher :violate_rule do |rule_id = nil|
match do |cmd|
if location
require 'spec_helper'
require_relative '../../../libraries/poise_service_user.rb'
describe Bloomberg::Sauce::Providers::PoiseServiceUser do
step_into(:poise_service_user)
recipe do
poise_service_user 'monit'
end
@johnbellone
johnbellone / sh.sh
Created March 31, 2016 02:39
ec2metadata
jbellone@ip-1-71-19-3:~$ /usr/bin/ec2metadata |grep -v bloomberg
ami-id: ami-0000000b
ami-launch-index: 0
ami-manifest-path: FIXME
ancestor-ami-ids: unavailable
availability-zone: DRR1-1
block-device-mapping: ami
root
instance-action: none
instance-id: i-0000caa3
@johnbellone
johnbellone / bash.sh
Created January 14, 2016 16:07
poise-javascript error
- jenkins (2.4.1)
- libarchive (0.6.1)
- poise (2.5.0)
- poise-ruby (2.1.1)
- compat_resource (12.5.26)
Compiling Cookbooks...
Recipe: chef-sugar::default
(up to date)
Recipe: chef-vault::default
* chef_gem[chef-vault] action install (up to date)
@johnbellone
johnbellone / Berksfile
Last active September 14, 2015 19:40
Poise Ruby and Javascript
source 'https://supermarket.chef.io'
extension 'halite'
cookbook 'poise', gem: 'poise'
cookbook 'poise-javascript', gem: 'poise-javascript'
cookbook 'poise-ruby', gem: 'poise-ruby'
cookbook 'poise-ruby-build', gem: 'poise-ruby-build'
cookbook 'poise-languages', gem: 'poise-languages'
metadata
@johnbellone
johnbellone / shell.sh
Created August 27, 2015 19:56
poise breaking cookbook name
~/Projects/rc-cookbook % bin/rspec test/spec/libraries/rc_file_spec.rb
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 22193
================================================================================
Error executing action `create` on resource 'rc_file[/etc/skel/bashrc]'
================================================================================

| Company | GitHub Organization | |-------------------------------| | Chef | chef-cookbooks | | CustomInk | customink-cookbooks | | Heavy Water Operations | hw-cookbooks |

@johnbellone
johnbellone / service.sh
Created May 28, 2015 20:24
Poise service issue.
* collectd_service[collectd] action enable
* directory[/etc/collectd.d] action create
- change mode from '0744' to '0644'
- restore selinux security context
* yum_package[collectd] action install (up to date)
* poise_service[collectd] action enable
================================================================================
Error executing action `enable` on resource 'poise_service[collectd]'
================================================================================
target_dir = directory "/root/#{dir}"
node['liquibase_file_paths'].each do |filename|
remote_file "#{target_dir.path}/#{File.basename(filename)}" do
source "file:///#{Chef::Config[:file_cache_path]}"
notifies :run, "execute[liquibase migrate]"
end
end

Keybase proof

I hereby claim:

  • I am johnbellone on github.
  • I am jbellone (https://keybase.io/jbellone) on keybase.
  • I have a public key ASArenNJXaWRd8m10mDOP5UtsXSdbrFvjFlhfxSGHCbOEAo

To claim this, I am signing this object: