Skip to content

Instantly share code, notes, and snippets.

View fatmcgav's full-sized avatar

Gavin Williams fatmcgav

View GitHub Profile
@fatmcgav
fatmcgav / module_data backend first
Created January 14, 2015 12:06
Hiera module_data backend logs
git diff hiera/hiera.yaml
diff --git a/hiera/hiera.yaml b/hiera/hiera.yaml
index 1c3e538..022a032 100644
--- a/hiera/hiera.yaml
+++ b/hiera/hiera.yaml
@@ -1,7 +1,7 @@
---
:backends:
- - yaml
- module_data
@fatmcgav
fatmcgav / Testing.log
Created January 14, 2015 10:58
Test log for module_data-test.
[gavinw:~/Puppet/scratch] $ git clone https://github.com/fatmcgav/module_data-test.git
Cloning into 'module_data-test'...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 13 (delta 1), reused 13 (delta 1)
Unpacking objects: 100% (13/13), done.
Checking connectivity... done.
2d [gavinw:~/Puppet/scratch] $ cd module_data-test
2d [gavinw:~/Puppet/scratch/module_data-test] master ± librarian-puppet install --path modules
Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com as required by your client version 3.6.2
@fatmcgav
fatmcgav / spec_helper-additions
Created December 1, 2014 09:19
Spec_helper $LOAD_PATH modifications
# Add fixture lib dirs to LOAD_PATH. Work-around for PUP-3336
#
if Puppet.version < "4.0.0"
Dir["#{fixture_path}/modules/*/lib"].entries.each do |lib_dir|
$LOAD_PATH << lib_dir
end
end
@fatmcgav
fatmcgav / debug.log
Last active August 29, 2015 14:07
Puppet openldap debug log
$ sudo puppet apply -vd --modulepath modules/ openldap-test.pp
Info: Loading facts in /vagrant/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /vagrant/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /vagrant/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /vagrant/puppet/modules/stdlib/lib/facter/root_home.rb
Debug: importing '/vagrant/puppet/modules/openldap/manifests/server.pp' in environment production
Debug: Automatically imported openldap::server from openldap/server into production
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Debug: hiera(): Hiera YAML backend starting
Debug: hiera(): Looking up openldap::server::package in YAML backend
@fatmcgav
fatmcgav / log
Created October 8, 2014 14:20
Glassfish Puppet run on Ubuntu 12.04
$ vagrant ssh
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Wed Oct 8 13:57:08 2014 from 10.0.2.2
vagrant@ubuntu-server-12042-x64-vbox4210:~$ puppet --version
3.7.1
@fatmcgav
fatmcgav / Puppet install log
Last active August 29, 2015 14:07
LDAP installation manifest
Info: Applying configuration version '1413798126'
Debug: Prefetching gem resources for package
Debug: Executing '/bin/gem list --local'
Debug: Prefetching yum resources for package
Debug: Executing '/bin/rpm --version'
Debug: Executing '/bin/rpm -qa --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n''
Debug: Executing '/bin/rpm -q openldap-servers --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing '/bin/rpm -q openldap-servers --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
Debug: Package[ldap-server](provider=yum): Ensuring => present
Debug: Executing '/bin/yum -d 0 -e 0 -y install openldap-servers'
@fatmcgav
fatmcgav / rake spec log
Created September 25, 2014 13:33
rspec-deptest failure
rspec-deptest]$ bundle exec rake spec
librarian-puppet install --path=spec/fixtures/modules/
Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com. You should update your Puppetfile
Replacing Puppet Forge API URL to use v3 https://forgeapi.puppetlabs.com. You should update your Puppetfile
/home/vagrant/.rvm/rubies/ruby-1.9.3-p547/bin/ruby -S rspec spec/classes/init_spec.rb --color
Warning: Modifying 'modulepath' as a setting is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /home/vagrant/.rvm/gems/ruby-1.9.3-p547@depend-test/gems/puppet-3.6.2/lib/puppet/settings.rb:127:in `[]=')
Warning: Accessing 'modulepath' as a setting is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /home/vagrant/.rvm/gems/ruby-1.9.3-p547@depend-test/gems/puppet-3.6.2/lib/puppet/settings.rb:116:in `[]')
Warning: The use of 'import' is deprecated at 4. See http://links.puppetlabs.com/puppet-import-deprecation
@fatmcgav
fatmcgav / init_spec.rb
Created September 24, 2014 12:34
Rspec puppet failure
require 'spec_helper'
# Describe the class
describe "remotepost" do
let(:precondition) { "include glassfish" }
let(:params) do {
:rps_db_host => 'localhost',
:rps_db_port => '1521',
@fatmcgav
fatmcgav / Gemfile
Last active August 29, 2015 14:06
Rspec include of spec/fixtures/modules/*
#!/usr/bin/env ruby
source "https://rubygems.org"
if ENV.key?('PUPPET_VERSION')
puppetversion = ENV['PUPPET_VERSION']
else
puppetversion = ['~> 3.6.0']
end
@fatmcgav
fatmcgav / grok-test.rb
Created July 31, 2014 16:35
Grok pattern match
#!/usr/bin/env ruby
#
require 'rubygems'
require 'grok-pure'
require 'awesome_print'
grok = Grok.new
grok.add_patterns_from_file("/home/logstash/patterns/payload.patterns")