This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
# Describe the class | |
describe "remotepost" do | |
let(:precondition) { "include glassfish" } | |
let(:params) do { | |
:rps_db_host => 'localhost', | |
:rps_db_port => '1521', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
source "https://rubygems.org" | |
if ENV.key?('PUPPET_VERSION') | |
puppetversion = ENV['PUPPET_VERSION'] | |
else | |
puppetversion = ['~> 3.6.0'] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |