Skip to content

Instantly share code, notes, and snippets.

@sweetcheeks24
sweetcheeks24 / gist:8285046
Created January 6, 2014 16:08
Puppet module for ES.
avli_puppet_elasticsearch/
avli_puppet_elasticsearch/README.md
avli_puppet_elasticsearch/Modulefile
avli_puppet_elasticsearch/templates/
avli_puppet_elasticsearch/templates/etc/
avli_puppet_elasticsearch/templates/etc/default/
avli_puppet_elasticsearch/templates/etc/default/elasticsearch.erb
avli_puppet_elasticsearch/templates/etc/elasticsearch/
avli_puppet_elasticsearch/templates/etc/elasticsearch/elasticsearch.yml.erb
avli_puppet_elasticsearch/.gemfile
@sweetcheeks24
sweetcheeks24 / gist:8028295
Created December 18, 2013 19:29
Pulp puppet repo install failure
pulp-admin puppet consumer install run --consumer-id=cw.frog -u leonardothibes/wget/1.0.2
This command may be exited via ctrl+c without affecting the request.
[-]
Waiting to begin...
An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/admin.log.
@sweetcheeks24
sweetcheeks24 / gist:6794723
Created October 2, 2013 14:34
pickle payload
python.exe : Traceback (most recent call last):
At line:1 char:7
+ CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
File ".\tcollector.py", line 1107, in <module>
sys.exit(main(sys.argv))
File ".\tcollector.py", line 705, in main
sender = SenderThread(reader, options.dryrun, not options.no_tcollector_stats, tagstr)
File ".\tcollector.py", line 424, in __init__
@sweetcheeks24
sweetcheeks24 / gist:6785123
Created October 1, 2013 21:07
tcollector errors
python.exe : Traceback (most recent call last):
At line:1 char:7
File ".\tcollector.py", line 1106, in <module>
sys.exit(main(sys.argv))
File ".\tcollector.py", line 704, in main
sender = SenderThread(reader, options.dryrun, not options.no_tcollector_stats, tagstr)
File ".\tcollector.py", line 424, in __init__
self.kafka_sender = KafkaPython(LOG, "metrics", 300, 30)
File "Z:\collectors\lib\kafka_collector.py", line 52, in __init__
batch_send_every_t=batch_time)
@sweetcheeks24
sweetcheeks24 / gist:6596072
Created September 17, 2013 15:38
Elastic Search exception
[2013-09-17 13:20:28,853][INFO ][monitor.jvm ] [es001] [gc][ParNew][3599899][1034497] duration [965ms], collections [1]/[1s], total [965ms]/[9.6h], memory [11.2gb]->
[11.1gb]/[14.9gb], all_pools {[Code Cache] [17mb]->[17mb]/[48mb]}{[Par Eden Space] [335.2mb]->[10.6mb]/[382.7mb]}{[Par Survivor Space] [33.8mb]->[47.8mb]/[47.8mb]}{[CMS Old Gen]
[10.8gb]->[11.1gb]/[14.5gb]}{[CMS Perm Gen] [45.3mb]->[45.3mb]/[82mb]}
[2013-09-17 13:20:33,076][INFO ][monitor.jvm ] [es001] [gc][ParNew][3599903][1034500] duration [753ms], collections [1]/[1.1s], total [753ms]/[9.6h], memory [11gb]->
[11.1gb]/[14.9gb], all_pools {[Code Cache] [17mb]->[17mb]/[48mb]}{[Par Eden Space] [102.9mb]->[1.3mb]/[382.7mb]}{[Par Survivor Space] [47.8mb]->[47.8mb]/[47.8mb]}{[CMS Old Gen] [
10.9gb]->[11.1gb]/[14.5gb]}{[CMS Perm Gen] [45.3mb]->[45.3mb]/[82mb]}
[2013-09-17 13:21:06,324][INFO ][monitor.jvm ] [es001] [gc][ParNew][3599936][1034535] duration [869ms], collections [1]/[1s], total [869ms]/[9.6h], memory
@sweetcheeks24
sweetcheeks24 / gist:6450363
Created September 5, 2013 13:51
Puppet-Windows config issues
Local file permissions on the directory:
stat -f "%OLp" files/test2/
775
stat -f "%OLp" files/test2/Programs
775
Puppet config:
file { "C:/test2":
ensure => directory,
@sweetcheeks24
sweetcheeks24 / README
Created June 5, 2012 15:06
GnuPG with IDEA cipher
mkdir –p ~/src
cd ~/src
git clone git://git.gnupg.org/gnupg.git
cd gnupg
git status
git checkout STABLE-BRANCH-1-4
cp /tmp/idea.c cipher/
./autogen.sh --force
./configure --enable-maintainer-mode --enable-idea && make
make check