Skip to content

Instantly share code, notes, and snippets.

View walterheck's full-sized avatar

Walter Heck walterheck

View GitHub Profile
root@opstheatre:~/ops-theatre# node --harmony --es-staging app.js
connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20
connect deprecated limit: Restrict request size at location of read node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15
connect deprecated methodOverride: use method-override npm module instead app.js:27:17
Loading module: core
Loading module: facter
Loading module: hiera
Loading module: manifests
Loading module: modules
Loading module: puppetdb
[root@donor ~]# iostat -mx 1
Linux 3.10.0-229.el7.x86_64 (donor.example.com) 08/25/2015 _x86_64_ (12 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
0.25 0.00 0.33 0.13 0.00 99.30
Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.01 0.06 12.62 18.93 3.09 3.01 395.99 0.08 2.43 3.69 1.60 0.72 2.26
dm-0 0.00 0.00 12.61 18.98 3.09 3.01 395.39 0.08 2.43 3.69 1.60 0.72 2.26
sdb 0.00 0.00 0.01 0.00 0.00 0.00 8.00 0.00 0.67 0.67 0.00 0.66 0.00
[root@statler ~]# sysbench --test=fileio --file-test-mode=rndrw --max-requests=1000000 run
sysbench 0.5: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Random number generator seed is 0 and will be ignored
Extra file open flags: 0
128 files, 16Mb each
[root@foreman ~]# yum -y install foreman-installer
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sitbv.nl
* extras: centos.mirror.transip.nl
* updates: mirror.sitbv.nl
Resolving Dependencies
--> Running transaction check
---> Package foreman-installer.noarch 1:1.7.4-1.el7 will be installed
--> Processing Dependency: rubygem-kafo >= 0.6.5 for package: 1:foreman-installer-1.7.4-1.el7.noarch
[root@ip-172-30-0-156 modules]# tree
.
└── walter
└── lib
└── facter
└── walter.rb
3 directories, 1 file
[root@ip-172-30-0-156 modules]# pwd
/etc/puppetlabs/puppet/environments/production/modules
[root@puppet puppet]# ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
[root@puppet puppet]# gem list json
*** LOCAL GEMS ***
json (1.5.5)
[root@puppet puppet]# ruby /usr/lib/ruby/site_ruby/1.8/puppet/reports/foreman.rb
/usr/lib/ruby/site_ruby/1.8/puppet/module.rb:3:in `require': no such file to load -- json (LoadError)
from /usr/lib/ruby/site_ruby/1.8/puppet/module.rb:3
[root@puppet ~]# puppet agent -t
Warning: Setting modulepath is deprecated in puppet.conf. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:1095:in `issue_deprecations')
Warning: Setting manifest is deprecated in puppet.conf. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/site_ruby/1.8/puppet/settings.rb:1095:in `issue_deprecations')
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
[root@server01 puppet]# hiera -c hiera.yaml -d apache::package
DEBUG: Mon Jul 21 11:07:17 -0700 2014: Hiera YAML backend starting
DEBUG: Mon Jul 21 11:07:17 -0700 2014: Looking up apache::package in YAML backend
DEBUG: Mon Jul 21 11:07:17 -0700 2014: Looking for data source nonexistenttestlevel
DEBUG: Mon Jul 21 11:07:17 -0700 2014: Cannot find datafile /etc/puppet/hieradata/nonexistenttestlevel.yaml, skipping
DEBUG: Mon Jul 21 11:07:17 -0700 2014: Looking for data source common
nil
[root@server01 puppet]# cat hiera.yaml
---
:merge_behavior: deeper
var getNodesAll = function(a, b, c, d) {
url = getURI(a, b, c, d);
rest.get(url + 'nodes').on('complete', function(result) {
if (result instanceof Error) {
console.log('Error:', result.message);
} else {
console.log(result);
}
[root@master puppet]# yum install foreman-postgresql
Loaded plugins: fastestmirror, security
Repository 'foreman-source' is missing name in configuration, using id
Repository 'foreman' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
* base: centos.hostingxtreme.com
* extras: centos.corenetworks.net
* updates: mirror.team-cymru.org
Setting up Install Process
Resolving Dependencies