bundle exec puppet master --no-daemonize --certname localhost --dns_alt_names localhost --verbose
bundle exec puppet agent -t --certname localhost --server localhost
To re-set the CSR process for an agent:
a::x { | |
define b {} | |
} | |
should be written (as the 100% equivalent): | |
class a::x{ | |
} | |
define a::x::b { |
# AbcMetric sample - obviously in the wrong name space... | |
module Puppet::Pops | |
module Validation | |
class AbcMetric | |
attr_reader :assignment_count | |
def initialize() | |
@@abc_visitor ||= Visitor.new(nil, "abc", 0, 0) | |
@assignment_count = 0 |
$data = { | |
persons => { | |
'Henrik' => { | |
mother => 'Anna-Greta', | |
father => 'Bengt', | |
}, | |
'Anna-Greta' => { | |
mother => 'Margareta', | |
father => 'Harald', | |
children => ['Henrik', 'Annika'] |
$limited_sudo = hiera('staff::allowed::sudo', undef) | |
if ( $limited_sudo ) { | |
$allowed_sudo = $limited_sudo.reduce( false ) |$allowed_sudo, $entry[ { | |
$team = $entry[1] | |
case [$allowed_sudo, $team, $username in hiera($team)] { | |
[ false, /::team::/, true] : { | |
warning ("Allowing sudo") | |
warning ("1: true") | |
true | |
} |
#! /usr/bin/env ruby | |
require 'spec_helper' | |
require 'puppet' | |
describe "Puppet::DataProviders::HieraInterpolate" do | |
context "when there are empty interpolations %{} in data" do | |
let(:scope) { {} } | |
let(:lookup_invocation) { |
The first part - ChangeRequest is a generic actor that holds on to a set of values of type T (given when actor is instantiated), and emits the changed set whenever it changes.
type AddRemove = Enum['add', 'remove']
type ChangeRequest[T] = Struct[{'kind' => AddRemove, 'value' => T }]
--- | |
packaging_url: 'git://github.com/puppetlabs/packaging.git --branch=master' | |
packaging_repo: 'packaging' | |
default_cow: 'base-squeeze-i386.cow' | |
cows: 'base-CumulusLinux-2.2-amd64.cow base-lucid-i386.cow base-precise-i386.cow base-squeeze-i386.cow base-trusty-i386.cow base-wheezy-i386.cow' | |
pbuild_conf: '/etc/pbuilderrc' | |
packager: 'puppet' | |
gpg_name: 'info@puppetlabs.com' | |
gpg_key: '4BD6EC30' | |
sign_tar: FALSE |
The first part - ChangeRequest is a generic plan that holds on to a set of values of type T (given when plan is instantiated), and emits the changed set whenever it changes.
type AddRemove = Enum['add', 'remove']
type ChangeRequest[T] = Struct[{'kind' => AddRemove, 'value' => T }]