Skip to content

Instantly share code, notes, and snippets.

OS: CentOS 6.5
ES: 0.90.13
# curl -XGET 'http://localhost:9200/_cluster/stats?human&pretty'
{
"timestamp" : 1402486567302,
"cluster_name" : "elasticsearch",
"status" : "yellow",
"indices" : {
"count" : 177,
@Zordrak
Zordrak / gist:1515e59960cd5610ce97
Created June 18, 2014 14:07
Merge Request Fail
014-06-18 15:05:29 +0100
Started GET "/tools/clubs-deploy/merge_requests/1/automerge?utf8=%E2%9C%93&merge_commit_message=Merge+branch+%27robots.txt%27+into+%27master%27%0D%0A%0D%0ARobots.Txt%0D%0A%0D%0AAdded+reverse+proxypass+for+robots.txt+in+puppet+apache+template.&should_remove_source_branch=1&commit=Accept+Merge+Request" for 127.0.0.1 at 2014-06-18 15:05:36 +0100
Processing by Projects::MergeRequestsController#automerge as JS
Parameters: {"utf8"=>"â", "merge_commit_message"=>"Merge branch 'robots.txt' into 'master'\r\n\r\nRobots.Txt\r\n\r\nAdded reverse proxypass for robots.txt in puppet apache template.", "should_remove_source_branch"=>"1", "commit"=>"Accept Merge Request", "project_id"=>"tools/clubs-deploy", "id"=>"1"}
==> /home/git/gitlab/log/githost.log <==
June 18, 2014 15:05 -> ERROR -> Command failed [1]: /usr/bin/git --git-dir=/home/git/gitlab-satellites/tools/clubs-deploy/.git push origin master
remote: /usr/local/rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.0/lib/bundler/d
June 19, 2014 11:11 -> ERROR -> Command failed [1]: /usr/bin/git --git-dir=/home/git/gitlab-satellites/tools/clubs-deploy/.git push origin master
remote: /usr/local/rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.0/lib/bundler/dsl.rb:39:in `eval_gemfile': Gemfile syntax error compile error (Bundler::GemfileError)
remote: on line 22: syntax error, unexpected ':', expecting $end
remote: gem "mysql2", group: :mysql
remote: ^
remote: from /usr/local/rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.0/lib/bundler/dsl.rb:10:in `evaluate'
remote: from /usr/local/rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.0/lib/bundler/definition.rb:26:in `build'
remote: from /usr/local/rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.0/lib/bundler.rb:153:in `definition'
remote: from /usr/local/rvm/rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/bundler-1.6.0/lib/bundler.rb:116:in `setup'
@Zordrak
Zordrak / gist:76c5bd0d90f2b69af025
Last active August 29, 2015 14:02
Git Path determines server update hook ruby version
16:39:30 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ which git
/usr/bin/git
16:39:35 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ git push origin master
Counting objects: 1, done.
Writing objects: 100% (1/1), 247 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: 2.0.0
remote: GitLab: You are not allowed to access master!
remote: error: hook declined to update refs/heads/master
@Zordrak
Zordrak / update
Created June 20, 2014 12:25
/home/git/repositories/tools/clubs-deploy.git/hooks/update -> /home/git/gitlab-shell/hooks/update
#!/usr/bin/env ruby
# This file was placed here by GitLab. It makes sure that your pushed commits
# will be processed properly.
# You can add your own hooks to this file, but be careful when updating gitlab-shell!
# Added for debug
puts RUBY_VERSION
refname = ARGV[0]
node default {
}
node '1.customer1.com' {
class {
'deployment_server':
apache_clubs => [ 'thing1', 'thing2' ],
ec_url => 'cheapthing1.customer1.com',
<VirtualHost *:<%=@rev_port-%><%#81%>>
<IfModule headers_module>
Header append WebBox "<%=@node_short_name-%><%- if @conf_type == 'ssl_compat' -%>_ssl_compat<%- end -%>"
</IfModule>
ServerName <%=@web_external_url-%>
<%- if defined? @server_alias and @server_alias != "" -%>
@Zordrak
Zordrak / multipath.conf
Created September 12, 2014 12:57
Fix unexpected multipathing of local SCSI disks
# RHEV REVISION 1.0
# RHEV PRIVATE
defaults {
polling_interval 5
no_path_retry fail
user_friendly_names no
flush_on_last_del yes
fast_io_fail_tmo 5
dev_loss_tmo 30
max_fds 4096
@Zordrak
Zordrak / ovirt-export
Created November 4, 2014 09:52
ovirt import failure to get all disks
<?xml version="1.0" encoding="UTF-8"?>
<ovf:Envelope xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1/" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ovf:version="3.5.0.0">
<References>
<File ovf:href="a084a9f2-7457-4c25-a767-bb3eb9755c9a/b790fba2-f0bd-47f7-adbf-cbc1561a1ae8" ovf:id="b790fba2-f0bd-47f7-adbf-cbc1561a1ae8" ovf:size="1073741824" ovf:description="Active VM" />
<File ovf:href="018f3847-5eb2-47d7-9e5a-dec9a484809a/88f53567-0a0f-4893-8104-7112374c4027" ovf:id="88f53567-0a0f-4893-8104-7112374c4027" ovf:size="1073741824" ovf:description="Active VM" />
<File ovf:href="d4f9c0d4-d81e-4c30-9f84-ed4f7a84b94f/4c9ec172-8207-43ac-9190-69b4a18d85fa" ovf:id="4c9ec172-8207-43ac-9190-69b4a18d85fa" ovf:size="1073741824" ovf:description="Active VM" />
</References>
<Section xsi:type="ovf:NetworkSectio
@Zordrak
Zordrak / clubs_host
Last active August 29, 2015 14:14 — forked from anonymous/cmd_line
clubs_host/
├── files
│ ├── jsonevent-layout-1.6-jar-with-dependencies.jar
│ ├── log4j.properties
│ └── README.markdown
├── lib
│ └── puppet
│ ├── facter
│ │ └── README.markdown
│ ├── parser