Skip to content

Instantly share code, notes, and snippets.

View dhollinger's full-sized avatar

David Hollinger III dhollinger

View GitHub Profile
@dhollinger
dhollinger / bulk_request_body.txt
Created June 22, 2016 20:07 — forked from ycombinator/bulk_request_body.txt
Hands-on Elasticsearch Workshop for php[tek] - bulk API request body
{"index": {"_id": "7192265"}}
{"sku": "7192265", "name": "Skullcandy - Hesh 2 Wireless Over-the-Ear Headphones - Blue/Black", "description": "Wirelessly enjoy rich, powerful audio with these Skullcandy Hesh 2 S6HBHW-515 over-the-ear headphones, which easily pair with most Bluetooth-enabled devices. A detachable 4' cable lets you enjoy your music while the battery recharges.", "price": 99.99, "sale_price": 49.99, "qty_in_stock": 69, "brand": "Skullcandy", "color": [ "blue", "black" ]}
{"index": {"_id": "7902883"}}
{"sku": "7902883", "name": "Bose® - SoundLink® Color Bluetooth Speaker - Black", "description": "Enjoy clear, full-range sound you might not expect from a compact speaker. This small, durable and simple-to-use Bose® SoundLink® Color Bluetooth speaker has voice prompts to ensure simplified Bluetooth pairing, letting you easily connect to devices.", "price": 129.99, "sale_price": 116.99, "qty_in_stock": 134, "brand": "Bose", "color": "black"}
{"index": {"_id": "5838295"}}
{"sku": "5838295", "name": "Io
@dhollinger
dhollinger / centos7-64mdca.yaml
Last active September 16, 2016 05:01
Beaker config
---
HOSTS:
centos7-64mdca:
roles:
- agent
- master
- database
- dashboard
pe_dir: /home/dhollinger/Downloads/
pe_ver: 2016.2.1
@dhollinger
dhollinger / openstack.rb current
Created September 21, 2016 15:19
Beaker Openstack Floating IP Current gem vs Upstream
def get_ip
ip = @compute_client.addresses.find { |ip| ip.instance_id.nil? }
if ip.nil?
@logger.debug "Creating IP"
ip = @compute_client.addresses.create
end
ip
end
@dhollinger
dhollinger / error log
Created October 3, 2016 18:41
Puppet Test Error and source
autofs::mount with default parameters should contain Concat[/etc/auto.master]
Failure/Error: raise Puppet::ParseError, ("#{arg.inspect} is not a string. It looks to be a #{arg.class}")
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, nil is not a string. It looks to be a NilClass at /home/travis/build/dhollinger/autofs-puppet/spec/fixtures/modules/concat/manifests/init.pp:99:3 at /home/travis/build/dhollinger/autofs-puppet/spec/fixtures/modules/autofs/manifests/mount.pp:66 on node testing-worker-linux-docker-2a0050d2-3408-linux-5.prod.travis-ci.org
@dhollinger
dhollinger / Rspec-output
Created March 14, 2017 05:40
Weird puppet-rspec error
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/service: Could not autoload puppet/provider/service/gentoo: Could not autoload puppet/provider/service/init: undefined method `downcase' for nil:NilClass at /home/dhollinger/workspace/puppet/voxpupuli/puppet-autofs/spec/fixtures/modules/autofs/manifests/service.pp:17:3 on node
@dhollinger
dhollinger / .gitlab-ci.yml
Created March 15, 2017 19:56
Gitlab job config
stages:
- validate
- test
- deploy
code_validation:
stage: validate
image: ruby:2.2
before_script:
- bundle install
@dhollinger
dhollinger / exec rake
Created March 29, 2017 22:21
gettext-setup error
bundle exec rake spec_standalone
rake aborted!
LoadError: cannot load such file -- gettext-setup
/Users/dhollinger/workspace/onyx/puppet/onyx_base_os/Rakefile:3:in `require'
/Users/dhollinger/workspace/onyx/puppet/onyx_base_os/Rakefile:3:in `<top (required)>'
/Users/dhollinger/.rbenv/versions/2.4.0/bin/bundle:22:in `load'
/Users/dhollinger/.rbenv/versions/2.4.0/bin/bundle:22:in `<main>'
(See full trace by running task with --trace)
[root@puppetserver-dev ~]# /opt/puppetlabs/puppet/bin/eyaml createkeys
[hiera-eyaml-core] Created key directory: ./keys
[hiera-eyaml-core] Keys created OK
[root@puppetserver-dev ~]#
@dhollinger
dhollinger / puppet-firewall-docker.pp
Created August 18, 2017 19:29 — forked from pmoranga/puppet-firewall-docker.pp
Make puppetlabs-firewall works with docker smoothly
class my_fw::pre {
# Disable due to selective purges of firewallchain
# resources { "firewall":
# purge => true
# }
# Avoid removing Docker rules:
firewallchain { 'FORWARD:filter:IPv4':
purge => true,
@dhollinger
dhollinger / puppet-firewall-docker.pp
Created August 18, 2017 19:29 — forked from pmoranga/puppet-firewall-docker.pp
Make puppetlabs-firewall works with docker smoothly
class my_fw::pre {
# Disable due to selective purges of firewallchain
# resources { "firewall":
# purge => true
# }
# Avoid removing Docker rules:
firewallchain { 'FORWARD:filter:IPv4':
purge => true,