This file contains hidden or 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
test_name "Installing Puppet and vcsrepo module" do | |
step 'install puppet' do | |
if @options[:provision] | |
# This will fail if puppet is already installed, ie --no-provision | |
if hosts.first.is_pe? | |
install_pe | |
else | |
install_puppet | |
end | |
end |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYTZfCvoPtus3vMMl0AS8a6K3OPZijMxiuiGD23ySUv14TIm+Azrzav+gH1BTDdnpK6/aQBzo5UEQwKCXxdpdV6s4OHEyLcCvUPm3fAe4Idy7iNtX+UmtumsAqMRovN+T8PAGqe0NOUC9Qq0+zDyH+qz0D44rPAIFs54EpCRq4hpvRHh5Oqy9nb6dYzW94HagDtPga2GeqqPdyhZD9gngsv0uOMWLhbF67S8No1oY6V3GaEelzZr2lLy/86k3kTbOuT1iWRJsKcjwuv0Ikwz3UeZcF1m6PrY3V6Qz9lh9CwrP464SlZ9GzqM4OKB1pPrCetUGKlcX2c3nUIV/x/iOP justin@allstaff |
This file contains hidden or 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
⭑ cat Vagrantfile | |
Vagrant.configure("2") do |c| | |
c.vm.define 'centos-6-x86-64-master' do |v| | |
v.vm.hostname = 'centos-6-x86-64' | |
v.vm.box = 'centos-6-x64-vbox4210' | |
v.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box' | |
v.vm.base_mac = '080027B17046' | |
v.vm.network :private_network, ip: "10.255.27.85", :netmask => "255.255.0.0" | |
end | |
c.vm.define 'centos-6-x86-64-agent' do |v| |
This file contains hidden or 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
# Attempt to debug https://github.com/hunner/puppetlabs-haproxy/blob/beaker/spec/acceptance/single_node/basic_spec.rb | |
# Using the default TestUnit assertions. This all passes locally. | |
# I've included commented out failing cases to show the converse, | |
# including the result reported in the final test summary | |
test_name "let's experiment" do | |
step "test on and friends yield symantics" do | |
my_manifest = %q{ | |
notify { 'blah': } |
This file contains hidden or 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
test_name "Basic AIX Package Provider" do | |
# AIX Provider only should run on AIX machines | |
confine :to, :platform => /aix/ | |
agents.each do |agent| | |
# Test variables | |
package = 'sudo.rte' | |
version1 = '1.7.10.4' |
This file contains hidden or 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
# | |
# This provides simple setting of smf service properties idempotently | |
# Usage: | |
# smf_prop { 'application/pkg/server pkg/port=blah': } | |
# | |
# Example (from my defunct ips repo manifest | |
# Smf_prop { | |
# notify => Service[ $service ], | |
# require => Exec[ "create-pkgrepo-${path}" ], | |
# } |
This file contains hidden or 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 'rubygems' | |
require 'rubygems/package_task' | |
Dir['tasks/**/*.rb'].each { |t| load t } | |
spec = Gem::Specification.new do |s| | |
s.name = "hiera-json" | |
s.version = described_version | |
s.author = "Puppet Labs" | |
s.email = "[email protected]" |
This file contains hidden or 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' | |
let(:defaults) do | |
{ 'owner' => 'root', 'group' => 'root' } | |
end | |
describe 'scott_test' do | |
it do should contain_file('foo', 'bar', 'baz').with( | |
{ 'ensure' => 'present' }.merge(defaults) | |
) end |
This file contains hidden or 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
activemodel (3.0.7) | |
activerecord (3.0.7) | |
activesupport (3.0.7) | |
arel (2.0.10) | |
builder (2.1.2) | |
cgi_multipart_eof_fix (2.5.0) | |
columnize (0.3.4) | |
couchrest (1.0.2) | |
daemons (1.1.3) | |
diff-lcs (1.1.3) |
This file contains hidden or 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
# | |
# The following ignores... | |
# Miscellaneous Jenkins litter | |
*.log | |
*.tmp | |
*.old | |
*.bak | |
*.jar | |
*.json |