Skip to content

Instantly share code, notes, and snippets.

bash-3.2# PATH=/opt/puppet/bin:$PATH
bash-3.2# irb
irb(main):001:0> require 'yaml'
/opt/puppet/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
LoadError: load failed - /opt/puppet/lib/ruby/1.9.1/powerpc-aix6.1.0.0/stringio.so. Please issue below command for detailed reasons:
/usr/sbin/execerror ruby "(ld 3 1 main /opt/puppet/lib/ruby/1.9.1/powerpc-aix6.1.0.0/stringio.so"
from /opt/puppet/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
0 moses@wheezy-builder-1:pe-puppet-dashboard:(3.0.x)$ rake pe:local_deb PE_VER=3.0
Could not load tasks/rails. Some rake tasks may not be available without tasks/rails.
The load error generated the following message: cannot load such file -- tasks/rails
Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem
rm -rf pkg
mkdir -p vendor/cache
cd vendor/cache
Fetching: rake-0.9.6.gem (100%)
Downloaded rake-0.9.6
Fetching: i18n-0.6.1.gem (100%)
/opt/enterprise/bin/pe_prune.rb:13: undefined method `[]' for nil:NilClass (NoMethodError)
from /opt/enterprise/bin/pe_prune.rb:26:in `group_by'
from /opt/enterprise/bin/pe_prune.rb:13:in `each'
from /opt/enterprise/bin/pe_prune.rb:13:in `group_by'
from /opt/enterprise/bin/pe_prune.rb:13
from /opt/enterprise/bin/pe_prune.rb:9:in `chdir'
from /opt/enterprise/bin/pe_prune.rb:9
6 %global name_prefix pe-
7 %global _real_sysconfdir %{_sysconfdir}
8 %global _orig_prefix %{_prefix}
9 %global _prefix /opt/puppet
10 %global _sysconfdir %{_real_sysconfdir}/puppetlabs
11 %global rubycas_conf_dir %{_sysconfdir}/%{_name}
## Setting up puppet agent...
## Setting up the database...
Configuring postgresql server...
PostgreSQL server configured.
-su: /root/.bash_profile: Permission denied
/opt/puppet/bin/erb:117:in `set_encoding': Permission denied - /root/puppet-enterprise-3.0.0-preview0-84-g731bf8d-debian-6-i386/erb/databases.erb (Errno::EACCES)
from /opt/puppet/bin/erb:117:in `run'
from /opt/puppet/bin/erb:154:in `<main>'
could not change directory to "/root/puppet-enterprise-3.0.0-preview0-84-g731bf8d-debian-6-i386"
## Setting up the console...
Installation of <PUPfacter> was successful.
svcs: Pattern 'svc:/network/puppetagent:default' doesn't match any instances
STATE STIME FMRI
svcadm: Pattern 'svc:/network/puppetagent:default' doesn't match any instances
svccfg: Pattern 'svc:/network/puppetagent:default' doesn't match any instances or services
Installation of <PUPpuppet> was successful.
pl:jenkins:mock_all MOCK=pl-el-6-i386 DOWNSTREAM_JOB=\'http://jenkins-foss.delivery.puppetlabs.net/view/Puppet%20FOSS/view/Projects/job/EL6%20Acceptance/buildWithParameters?token=iheartjenkins&SHA=$GIT_COMMIT&BUILD_SELECTOR=$BUILD_NUMBER\'
require 'jenkins_api_client'
@client = JenkinsApi::Client.new(:server_ip => '10.16.77.165')
job_file = IO.read('/Users/moses/job.xml')
job = JenkinsApi::Client::Job.new(@client)
job.create("melissas_other_job", job_file)
[color]
diff = auto
status = auto
branch = auto
ui = auto
[alias]
st = status
co = checkout
br = branch
who = shortlog --no-merges --format='%h %s'
# show git branch in terminal prompt
function parse_git_branch(){
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/:(\1)/'
}
PS1="[\$?] \u@\h:\W\$(parse_git_branch)$ "
# for packaging and stuff
# display ls colors
export CLICOLOR=1
# export editor