Skip to content

Instantly share code, notes, and snippets.

root@cumulus:~/puppet-enterprise-3.2.0-rc0-986-g90cd985-cumulus-1.5-powerpc# /opt/puppet/bin/facter --puppet --yaml --debug --trace
value for lsbdistid is still nil
Not an EC2 host
value for cfkey is still nil
value for lsbdistid is still nil
value for ipaddress6_eth0 is still nil
value for ipaddress6_lo is still nil
value for macaddress_lo is still nil
value for ipaddress6 is still nil
Found no suitable resolves of 2 for iphostnumber
[22] moses@mosesmac:appliance$ curl -v --fail -i "http://jenkins-foss.delivery.puppetlabs.net/job/Node%20Classifier%20Packaging%20Downstream/buildWithParameters?token=iheartjenkins&_BRANCH=master&REF=bd651c54bc625cda6e24e43f3df82e208f90a692&BUILD_SELECTOR=99&PACKAGE_BUILD_STATUS=$UPSTREAM_BUILD_STATUS&PACKAGE_BUILD_URL=http://jenkins-release.delivery.puppetlabs.net/job/classifier-packaging-2014-02-21-10-10-54-bd651c54bc625cda6e24e43f3df82e208f90a692"
* Adding handle: conn: 0x7fb65c004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fb65c004000) send_pipe: 1, recv_pipe: 0
* About to connect() to jenkins-foss.delivery.puppetlabs.net port 80 (#0)
* Trying 10.16.77.102...
* Connected to jenkins-foss.delivery.puppetlabs.net (10.16.77.102) port 80 (#0)
> GET /job/Node%20Classifier%20Packaging%20Downstream/buildWithParameters?token=iheartjenkins&_BRANCH=master&REF=bd651c54bc625cda6e24e43f3df82e208f90a692&BUILD_SELECTOR=99&PACKAGE_BUILD_STATUS=&PACKAGE_BUILD
@MosesMendoza
MosesMendoza / gist:81ddd8c33e89074da628
Created August 8, 2014 17:48
data service test set
@platform_info =
{ :el =>
{ :'4' => { :arches => [:i386, :x86_64], :support => true, :repo => false, :pkg => :rpm, :signature_format => :'v3', :build_with => :mock, :installer_format => :tar },
:'5' => { :arches => [:i386, :x86_64], :support => true, :repo => true, :pkg => :rpm, :signature_format => :'v3', :build_with => :mock, :installer_format => :tar },
:'6' => { :arches => [:i386, :x86_64], :support => true, :repo => true, :pkg => :rpm, :signature_format => :'v4', :build_with => :mock, :installer_format => :tar } ,
:'7' => { :arches => [:x86_64], :support => true, :repo => true, :pkg => :rpm, :signature_format => :'v4', :build_with => :mock, :installer_format => :tar } } }
uvd31mk36d20f9f:~ root# which facter
uvd31mk36d20f9f:~ root# /opt/puppet/bin/facter
architecture => x86_64
augeasversion => 1.2.0
domain => delivery.puppetlabs.net
facterversion => 2.2.0
fqdn => uvd31mk36d20f9f.delivery.puppetlabs.net
gid => wheel
hardwareisa => i386
hardwaremodel => x86_64
@MosesMendoza
MosesMendoza / pe-puppetserver-daemon.log
Last active November 24, 2017 07:15
puppet server fail errors
root@trusty:~/puppet-enterprise-3.8.0-rc0-273-gcc479aa-ubuntu-14.04-amd64# cat /var/log/pe-puppetserver/pe-puppetserver-daemon.log
Failed to load feature test for posix: can't find user for 0
Cannot run on Microsoft Windows without the win32-process, win32-dir and win32-service gems: Win32API only supported on win32
Puppet::Error: Cannot determine basic system flavour
(root) at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/feature/base.rb:32
require at org/jruby/RubyKernel.java:1071
(root) at /opt/puppet/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
require at /opt/puppet/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
Puppet at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet.rb:75
require at org/jruby/RubyKernel.java:1071
[root@el7 ~]# cat dashboard-classification-export.json
{
"groups" : [ {
"name" : "foogroup",
"description" : "",
"nodes" : [ "el7" ],
"variables" : { },
"classes" : { },
"parents" : [ "myparent" ]
}, {
[root@el7 ~]# cat dashboard-classification-export.json
{
"groups" : [ {
"name" : "foogroup",
"description" : "",
"nodes" : [ "el7" ],
"variables" : { },
"classes" : { },
"parents" : [ "parent0" ]
}, {
[root@el7 ~]# /opt/puppet/bin/nc_migrate import --input converted-dashboard-classification.json
Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :get-groups of protocol: #'puppetlabs.classifier.storage/PrimitiveStorage found for class: clojure.lang.LazySeq
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:555)
at puppetlabs.classifier.storage$fn__5310$G__5257__5315.invoke(storage.clj:11)
at puppetlabs.redrover.import$merge_hierarchy.invoke(import.clj:153)
at puppetlabs.redrover.import$import_BANG_.invoke(import.clj:172)
at puppetlabs.redrover.main$main_STAR_.doInvoke(main.clj:195)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:626)
at puppetlabs.redrover.main$_main$fn__10193.invoke(main.clj:207)
# Powershell specific argument passing
# You must be on the latest beta of chocolatey for this to work properly (redownload files)
# Based on https://gist.github.com/ferventcoder/947479688d930e28d632
$originalPath = $env:PATH
$rubyList = (@"
[
{
"choco_version": "1.9.3.55100",
irb(main):003:0> Puppet::Util::Windows::SID::Principal.lookup_account_name('NT AUTHORITY\\SYSTEM')
=> #<Puppet::Util::Windows::SID::Principal:0x00000005ff8b10 @account="SYSTEM", @sid_bytes=[1, 1, 0, 0, 0, 0, 0, 5, 18, 0, 0, 0], @sid="S-1-5-18", @domain="NT-AUTORIT\u00C4T", @account_type=:SidTypeWellKnownGroup, @domain_account="NT-AUTORIT\u00C4T\\SYSTEM">
irb(main):004:0>