Skip to content

Instantly share code, notes, and snippets.

View bigbigbang's full-sized avatar

Alexis Autret bigbigbang

View GitHub Profile
@bigbigbang
bigbigbang / gist:7213657
Last active December 26, 2015 21:09
check_mode_777
#
# Cookbook Name:: ascii_check_mode_777
# Recipe:: default
#
# Copyright 2013, ARKEA
#
# All rights reserved - Do Not Redistribute
#
@bigbigbang
bigbigbang / gist:6476386
Last active December 22, 2015 12:59
Installer for GitLab 6 on RHEL 6 (Red Hat Enterprise Linux and CentOS)
#!/bin/bash
# Installer for GitLab on RHEL 6 (Red Hat Enterprise Linux and CentOS)
#
##Export proxy settings
# Define the public hostname
export GL_HOSTNAME=$HOSTNAME
@bigbigbang
bigbigbang / gitlab.sh
Created July 29, 2013 14:16
Install gitlab 5.3-stable with ruby 2.0.0-p247
#!/bin/bash
# Installer for GitLab on RHEL 6 (Red Hat Enterprise Linux and CentOS)
#
##Export proxy settings
# or not ...
# Define the public hostname
export GL_HOSTNAME=$HOSTNAME
@bigbigbang
bigbigbang / gist:5975992
Created July 11, 2013 14:33
template example
postgresql_config = File.join(postgresql_data_dir, "postgresql.conf")
template postgresql_config do
source "postgresql.conf.erb"
owner node['chef_server']['postgresql']['username']
mode "0644"
variables(node['chef_server']['postgresql'].to_hash)
notifies :restart, 'service[postgresql]' if OmnibusHelper.should_notify?("postgresql")
end
@bigbigbang
bigbigbang / thruk_cookbook.rb
Created May 3, 2013 09:13
Thruk cookbook from git
#
# Cookbook Name:: thruk
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
execute "mkdir" do
command "mkdir -p ~/test/thruk/"
@bigbigbang
bigbigbang / shinken_cookbook.rb
Last active December 16, 2015 22:39
Shinken cookbook from git
#
# Cookbook Name:: shinken
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
execute "mkdir" do
command "mkdir -p ~/test/shinken/"