Skip to content

Instantly share code, notes, and snippets.

define reporting::exception::package (
$package
){
Exec {
user => 'peadmin',
path => ['./mcollective','/usr/local/bin','/usr/bin'],
}
exec {"mco-packages-${title}":
# === Authors
#
# David Bryant-Moore <[email protected]>
#
# === Copyright
#
# Copyright 2015 Puppetlabs.
#
class ensuretlsv1 {
@DBMoUK
DBMoUK / gist:b5161dca6d301eb26bab
Created January 16, 2015 12:00
Deprecation Warning - RSpec
1) Solution Lab_PackageFileService manifest behaves like a solution manifest on first application should have empty stderr
Failure/Error: expect(r.stderr).to eq("")
expected: ""
got: "\e[1;31mWarning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.\n (at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in `default')\e[0m\n"
(compared using ==)
Diff:
@@ -1 +1,3 @@
define apache::vhost (
$port = '80',
$priority = '10',
$options = 'Indexes MultiViews',
$vhost_name = $title,
$servername = $title,
$docroot = "${apache::httpd_docroot}/${title}",
){
$docowner = $apache::httpd_user
@DBMoUK
DBMoUK / gist:053b3ea2b4be28b064b2
Created January 12, 2015 17:07
VHost ServerSpec Example
###########################################################################################################################
#
# Purpose: beaker-rspec acceptance tests for Puppet Fundamentals lab "Apache Virtual Hosts"
#
# Usage: From the courseware directory:
# 1. 'bundle install' to install required gems
# 2. 'bundle exec rspec spec/acceptance/courses/fundamentals/Defined_Resources/Lab_ApacheVirtualHosts_spec.rb' to run the test
#
###########################################################################################################################
classroom::params
classroom
classroom::master
classroom::master::repositories
git
classroom::master::hiera
classroom::master::time
ntp::params
ntp
ntp::install
Servers.yaml
---
:puppet: "master.breaktest.puppetlabs.vm"
# The resolvable name of the server to install the puppet CA service on.
:ca: "ca.breaktest.puppetlabs.vm"
# The resolvable name of server to install PuppetDB on.
:puppetdb: "db.breaktest.puppetlabs.vm"
---
# The resolvable name that agent systems will use as the puppet master.
# Literally, the configuration value of the `server` setting in the [agent]
# section of puppet.conf. Typically this will be a load-balanced DNS name. If
# only one puppet master is being deployed, it may be set to the resolvable
# name of the puppet master.
:puppet: "loadbalancer.puppetlabs.vm"
# The resolvable name of the server to install the puppet CA service on.
:ca: "ca.puppetlabs.vm"
curl -X POST -H 'Content-Type: application/json' \
-d '{
"id": "ddab2071-26ea-4261-af09-7b6b97fa04d2",
"name": "qa_group",
"environment": "production",
"parent": "00000000-0000-4000-8000-000000000000",
"rule": [
"~",
"name",
"agent1.puppetlabs\\.vm$"
[root@classifier vagrant]# rpm -qip pe-classifier-0.3.3-1.el6.noarch.rpm
Name : pe-classifier Relocations: (not relocatable)
Version : 0.3.3 Vendor: Puppet Labs
Release : 1.el6 Build Date: Fri May 16 16:08:31 2014
Install Date: (not installed) Build Host: rpm-builder-4
Group : System Environment/Daemons Source RPM: pe-classifier-0.3.3-1.el6.src.rpm
Size : 13696666 License: ASL 2.0
Signature : (none)
URL : http://github.com/puppetlabs/ezbake
Summary : Puppet Labs - pe-classifier