Skip to content

Instantly share code, notes, and snippets.

[2013-02-26T11:22:08-05:00] INFO: Processing service[apache2] action restart (apache2::default line 221)
[2013-02-26T11:22:10-05:00] INFO: service[apache2] restarted
[2013-02-26T11:22:11-05:00] INFO: Chef Run complete in 78.450528608 seconds
[2013-02-26T11:22:11-05:00] INFO: Running report handlers
[2013-02-26T11:22:11-05:00] INFO: Report handlers complete
(wait 10+ seconds)
(manually hit CTRL+C)
^C[2013-02-26T11:22:53-05:00] FATAL: SIGINT received, stopping
[2013-02-26T11:22:53-05:00] FATAL: SIGINT received, stopping
[2013-02-26T11:39:56-05:00] INFO: Running report handlers
[2013-02-26T11:39:56-05:00] INFO: Report handlers complete
[2013-02-26T11:39:56-05:00] DEBUG: Server doesn't support resource history, skipping resource report.
[2013-02-26T11:39:57-05:00] DEBUG: Sleeping for 7200 seconds
@tduffield
tduffield / user_data.ps1
Last active December 29, 2015 01:39 — forked from binamov/user_data.ps1
Version of the script to make it work on CloudShare with port 5985 closed.
<powershell>
#####
#DON'T FORGET TO SET/CHANGE THE USERNAME/PASSWORD BELOW!!!!!!!!!!
#####
$user="opscode"
$password="opscode"
@tduffield
tduffield / a2dissite.erb
Created December 3, 2013 23:25
Windows-specific implementation of a2dissite executable
!/bin/sh -e
SYSCONFDIR='C:/Apache2.2'
if [ -z $1 ]; then
echo "Which site would you like to disable?"
echo -n "Your choices are: "
ls "$SYSCONFDIR"/sites-enabled/* | \
sed -e "s,$SYSCONFDIR/sites-enabled/,,g" | xargs echo
echo -n "Site name? "
@tduffield
tduffield / a2ensite.erb
Created December 3, 2013 23:26
Windows-specific implementation of a2ensite executable
!/bin/sh -e
SYSCONFDIR='C:/Apache2.2'
if [ -z $1 ]; then
echo "Which site would you like to enable?"
echo -n "Your choices are: "
ls "$SYSCONFDIR"/sites-available/* | \
sed -e "s,$SYSCONFDIR/sites-available/,,g" | xargs echo
echo -n "Site name? "
@tduffield
tduffield / httpd.conf
Created December 3, 2013 23:26
Windows-specific httpd.conf cookbook file
# This file is managed by Chef
# All changes made locally could and will be overwritten by the client
# You are warned
ServerRoot "c:/Apache2.2"
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
@tduffield
tduffield / motd_recipes_default.rb
Created December 4, 2013 14:11
Cross-platform implementation of MOTD
#
# Cookbook Name:: motd
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
if platform?('windows')
ixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/rabbit@localhost.pid ----
STDOUT: {error_logger,{{2013,12,11},{23,3,31}},"Too short cookie string",[]}
{error_logger,{{2013,12,11},{23,3,31}},crash_report,[[{initial_call,{auth,init,['Argument__1']}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{"Too short cookie string",[{auth,init_cookie,0,[{file,"auth.erl"},{line,285}]},{auth,init,1,[{file,"auth.erl"},{line,139}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[<0.17.0>]},{dictionary,[]},{trap_exit,true},{status,runn
@tduffield
tduffield / Vagrantfile
Last active January 2, 2016 02:49 — forked from leifg/Vagrantfile
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
unless File.exist?(file_to_disk)
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
end
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
# Your other Vagrantfile contents here.
vagrant@chef-container-ubuntu-1204:~/omnibus-chef$ bundle exec omnibus build chef-container
[Omnibus] W | DEPRECATED: Omnibus.root. Please use Omnibus.project_root instead.
[Omnibus] W | DEPRECATED: Omnibus.root. Please use Omnibus.project_root instead.
W | The `replaces` project DSL statement should never equal the `package_name` or
`name` of a project. The `replaces` option should only be used when you have
published an artifact under one name and then later renamed the packages that
you are publishing and you must obsolete the old package name. For example this
is used, correctly, in chef-client builds:
name 'chef'