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
#!/bin/sh | |
until [ "`zpool list rpool`" ]; | |
do | |
: | |
done | |
pfexec zfs set compression=on rpool | |
# For some reason, the rpool/ROOT dataset (which is the root filesystem |
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
#!/usr/bin/python | |
# | |
# CDDL HEADER START | |
# | |
# The contents of this file are subject to the terms of the | |
# Common Development and Distribution License (the "License"). | |
# You may not use this file except in compliance with the License. | |
# | |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
# or http://www.opensolaris.org/os/licensing. |
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
#!/bin/bash | |
if [ `id | grep -c root` != "1" ] | |
then | |
echo "You need to be root to run this script. Exiting…" | |
exit | |
fi | |
# Creating an OpenSolaris Base Box: |
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
#!/bin/bash | |
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key | |
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key | |
# Attach the VBox Guest Additions to the virtual CDROM, then run: | |
mkdir /cdrom; mount -F hsfs -o ro /dev/dsk/`prtconf -v | grep "/dev/removable-media" | head -n1 | awk 'BEGIN {FS="/"}{print $5}'` /cdrom | |
pkgadd -d /cdrom/VBoxSolarisAdditions.pkg | |
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::Config.run do |config| | |
# Choose our base box: | |
config.vm.box = "centos" | |
# Talk to our central Chef server: | |
config.chef.run_list.clear | |
config.chef.chef_server_url = "https://chef.domain.com" | |
config.chef.validation_key_path = "validation.pem" | |
config.vm.provisioner = :chef_server | |
config.chef.add_role("vagrant-unstable") |
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
chef-server-webui | |
Loading init file from /usr/share/chef-server-webui/config/init.rb | |
[Mon, 13 Sep 2010 21:54:05 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/ | |
[Mon, 13 Sep 2010 21:54:05 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/users/_view/all_id | |
[Mon, 13 Sep 2010 21:54:05 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id | |
~ Parent pid: 14282 | |
~ Could not find resource model Node | |
~ Could not find resource model Client | |
~ Could not find resource model Role | |
~ Could not find resource model Cookbook |
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
%w/openssl-devel memcached mysql-devel gcc-c++ ncurses-devel httpd-devel libpcap-devel iptraf gcc autoconf automake curl-devel net-snmp-devel readline-devel pcre-devel gcc zlib-devel git/.each do |pkg| | |
package pkg do | |
action [:install] | |
end | |
end | |
user "user" do | |
comment "User Application" | |
uid "3011" | |
gid "users" |
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
execute "Install more current ImageMagick" do | |
user "root" | |
command "curl -o /root/ImageMagick.rpm http://www.imagemagick.org/download/linux/CentOS/`uname -i`/ImageMagick-6.6.4-5.`uname -i`.rpm" | |
command "curl -o /root/ImageMagick-devel.rpm http://www.imagemagick.org/download/linux/CentOS/`uname -i`/ImageMagick-devel-6.6.4-5.`uname -i`.rpm" | |
command "rpm -Uvh /root/ImageMagick-devel.rpm /root/ImageMagick.rpm" | |
creates "/root/.ImageMagick.installed" | |
action :run | |
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
bash "install needed gems as user" do | |
user "user" | |
environment "HOME"=>"/home/user" | |
code <<-EOH | |
gem sources -a http://gems.github.com | |
gem install --no-rdoc --no-ri rake nokogiri hpricot builder | |
EOH | |
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
[default] Provisioning enabled with Vagrant::Provisioners::ChefServer | |
[default] Beginning provisioning process... | |
[default] Setting permissions on chef provisioning folder... | |
[default] Creating folder to hold client key... | |
[default] Uploading chef client validation key... | |
[default] Generating chef JSON and uploading... | |
[default] Uploading chef configuration script... | |
[default] Running chef-client... | |
[default] [Wed, 22 Sep 2010 13:42:04 -0400] INFO: Setting the run_list to ["role[vagrant-unstable]"] from JSON | |
[Wed, 22 Sep 2010 13:42:05 -0400] INFO: Starting Chef Run (Version 0.9.8) |
OlderNewer