This file contains 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
# Example Kickstart config file for RHEL5, change $VARIABLES to suitable values | |
# for your site | |
# Usage from linux kernel boot prompt: | |
# linux ks=http://$SERVER_ADDR/ks/rhel5-example.ks ip=$IPADDR netmask=$NETMASK gateway=$GATEWAY [nokill] [keymap=pt-latin1] [noipv6] [debug] | |
# | |
# More boot options at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-bootopts-x86.html | |
# Options for this section can be found at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-kickstart2-options.html | |
install |
This file contains 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 up --no-provision BOXNAME | |
% vagrant ssh BOXNAME | |
vagrant$ export http_proxy="proxy.you.com:8000" | |
vagrant$ export https_proxy="proxy.you.com:8000" | |
vagrant$ echo "10.9.8.7 cher-server.your.lap chef-server >> /etc/hosts" | |
vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash | |
vagrant$ rm /tmp/chef*{rpm,deb} | |
vagrant$ exit | |
% vagrant package BOXNAME | |
% rm -rf ~/.vagrant.d/boxes/BOXNAME |
This file contains 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
chef:recipe > search(:role, "name:*") do |r| | |
chef:recipe > puts r.inspect | |
chef:recipe ?> end | |
=> true | |
chef:recipe > |
This file contains 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
# | |
# Cookbook Name:: apache | |
# Recipe:: default | |
# | |
# Copyright 2012, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
package "httpd" do |
This file contains 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
<% if @port != 80 -%> | |
Listen <%= @port %> | |
<% end -%> | |
<VirtualHost *:<%= @port %>> | |
ServerAdmin webmaster@localhost | |
DocumentRoot <%= @document_root %> | |
<Directory /> | |
Options FollowSymLinks |
This file contains 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
#!/bin/bash | |
set -e | |
set -x | |
trap "echo EXITING THE SCRIPT" EXIT | |
export RAILS_ENV="mind" | |
set +e | |
/usr/local/bin/rvm-shell 'default' -c ' |
This file contains 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
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/tags.py to tags.pyc | |
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc | |
File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53 | |
'where' : (' WHERE ' + where) if where else ''} | |
^ | |
SyntaxError: invalid syntax | |
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/db/__init__.py to __init__.pyc | |
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/db/db4.py to db4.pyc | |