Skip to content

Instantly share code, notes, and snippets.

@nigelkersten
Created February 24, 2011 05:13
Show Gist options
  • Save nigelkersten/841798 to your computer and use it in GitHub Desktop.
Save nigelkersten/841798 to your computer and use it in GitHub Desktop.
Step by Step envpuppet with puppet interfaces
kripke:~ nbk$ mkdir /tmp/src
kripke:~ nbk$ cd !$
cd /tmp/src
kripke:src nbk$ git clone git://github.com/puppetlabs/puppet.git
Cloning into puppet...
remote: Counting objects: 71917, done.
remote: Compressing objects: 100% (22032/22032), done.
remote: Total 71917 (delta 52581), reused 66473 (delta 48322)
Receiving objects: 100% (71917/71917), 12.11 MiB | 2.46 MiB/s, done.
Resolving deltas: 100% (52581/52581), done.
kripke:src nbk$ git clone git://github.com/puppetlabs/facter.git
Cloning into facter...
remote: Counting objects: 4185, done.
remote: Compressing objects: 100% (1930/1930), done.
remote: Total 4185 (delta 2202), reused 3973 (delta 2095)
Receiving objects: 100% (4185/4185), 840.81 KiB | 630 KiB/s, done.
Resolving deltas: 100% (2202/2202), done.
kripke:src nbk$ pushd puppet
/tmp/src/puppet /tmp/src
kripke:puppet nbk$ export ENVPUPPET_BASEDIR=/tmp/src
kripke:puppet nbk$ git checkout -b 2.6.next origin/2.6.next
Branch 2.6.next set up to track remote branch 2.6.next from origin.
Switched to a new branch '2.6.next'
kripke:src nbk$ git clone git://github.com/lak/puppet-interfaces.git
Cloning into puppet-interfaces...
remote: Counting objects: 293, done.
remote: Compressing objects: 100% (267/267), done.
remote: Total 293 (delta 138), reused 0 (delta 0)
Receiving objects: 100% (293/293), 39.77 KiB, done.
Resolving deltas: 100% (138/138), done.
kripke:src nbk$ export RUBYLIB=/tmp/src/puppet-interfaces/lib/:$RUBYLIB
kripke:src nbk$ pushd ~
~ /tmp/src
kripke:~ nbk$ /tmp/src/puppet/ext/envpuppet puppet interface list
status:
Terminuses: local, rest
Actions: destroy, find, save, search, showconfig
key:
Terminuses: ca, file
Actions: destroy, find, save, search, showconfig
certificate_revocation_list:
Terminuses: ca, file, rest
Actions: destroy, find, save, search, showconfig
certificate_request:
Terminuses: ca, file, rest
Actions: destroy, find, save, search, showconfig
resource_type:
Terminuses: parser, rest
Actions: destroy, find, save, search, showconfig
node:
Terminuses: active_record, exec, ldap, memory, plain, rest, yaml
Actions: destroy, find, save, search, showconfig
config:
Terminuses:
Actions: print, showconfig
file:
Terminuses:
Actions: destroy, find, save, search, showconfig
report:
Terminuses: processor, rest
Actions: destroy, find, save, search, showconfig
Could not load terminuses for facts: Could not autoload /tmp/src/puppet/lib/puppet/indirector/facts/couch.rb: Couch terminus not supported without couchrest gem
facts:
Actions: destroy, find, save, search, showconfig, upload
resource:
Terminuses: ral, rest
Actions: destroy, find, save, search, showconfig
certificate:
Terminuses: ca, file, rest
Actions: destroy, find, save, search, showconfig
catalog:
Terminuses: active_record, compiler, queue, rest, yaml
Actions: destroy, find, save, search, select, showconfig
kripke:~ nbk$ /tmp/src/puppet/ext/envpuppet puppet facts find localhost
--- !ruby/object:Puppet::Node::Facts
expiration: 2011-02-23 21:42:14.955257 -08:00
name: !ruby/sym facts
values:
clientversion: 2.6.5
kernelmajversion: "10.6"
sp_boot_rom_version: MBP71.0039.B0B
sp_number_processors: "2"
kernelversion: 10.6.0
sp_secure_vm: secure_vm_enabled
netmask_vmnet8: 255.255.255.0
sp_machine_name: MacBook Pro
sp_kernel_version: Darwin 10.6.0
<SNIP>
kripke:~ nbk$ alias puppet='/tmp/src/puppet/ext/envpuppet puppet'
kripke:~ nbk$ puppet --version
2.6.5
###
# Puppet Interfaces: https://github.com/lak/puppet-interfaces/blob/master/README.markdown
##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment