This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'serverspec' | |
include Serverspec::Helper::Exec | |
include Serverspec::Helper::DetectOS | |
RSpec.configure do |c| | |
c.before :all do | |
c.path = '/sbin:/usr/sbin' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "git" | |
include_recipe "runit" | |
package "git-daemon-run" | |
runit_service "git-daemon" do | |
sv_templates false | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant box add puppet puppet-centos-offline.box | |
cd learn | |
mkdir box1 | |
cd box1 | |
vagrant box list | |
vagrant init puppet | |
vagrant up | |
vagrant ssh | |
# Edit /etc/sysconfig/network |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This script install and configures chef solo with initcron repository. This does the following, | |
# 1. Install Chef Solo/Chef Client | |
# 2. Install git | |
# 3. Create directory structure required by chef solo | |
# 5. Copies over chefcookbooks, roles, databags to appropriate location | |
# | |
#What to do after running this script? | |
# 1. Go to /etc/chef e.g. cd /etc/chef | |
# 2. Edit node.json, and configure runlist | |
# 3. Run "sudo chef-solo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy@ip-10-0-0-130:/var/www/projects/projectx/current$ rails rake thinking_sphinx:index | |
create | |
create app/controllers | |
create app/helpers | |
create app/models | |
create app/views/layouts | |
create config/environments | |
create config/initializers | |
create config/locales | |
create db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ip-10-0-0-130:/home/ubuntu/Rails_App/projectx/config# less development.sphinx.conf | |
indexer | |
{ | |
} | |
searchd | |
{ | |
listen = 127.0.0.1:9312 | |
log = C:/Users/CEO/My Documents/Aptana Studio Workspace/ProjectX/log/searchd.log | |
query_log = C:/Users/CEO/My Documents/Aptana Studio Workspace/ProjectX/log/searchd.query.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indexer | |
{ | |
} | |
searchd | |
{ | |
listen = localhost:9312 | |
listen = localhost:9306:mysql41 | |
log = /var/www/projects/projectx/releases/92f8fef9a72f0a3d2f1f669c9c94b3c983dd2e53/log/searchd.log | |
query_log = /var/www/projects/projectx/releases/92f8fef9a72f0a3d2f1f669c9c94b3c983dd2e53/log/searchd.query.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log 127.0.0.1 local2 | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
maxconn 4000 | |
user haproxy | |
group haproxy | |
daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Custom bashrc config, generated by puppet | |
# | |
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi |