Skip to content

Instantly share code, notes, and snippets.

View PaulusTM's full-sized avatar
🦄
Unicorn Power

Daniel Paulus PaulusTM

🦄
Unicorn Power
View GitHub Profile
@PaulusTM
PaulusTM / boot.sh
Created April 17, 2012 20:02
CentOS 6 chef bootstrap
#!/bin/bash
# Install by:
# curl -l <raw gist url> | bash
yum groupinstall -y "Development Tools"
yum install -y \
openssl-devel \
readline-devel \
curl-devel \
zlib-devel \

Keybase proof

I hereby claim:

  • I am paulustm on github.
  • I am dpaulus (https://keybase.io/dpaulus) on keybase.
  • I have a public key whose fingerprint is AF07 CA4D 9BC7 3CD3 F8C5 4EA1 7EA4 50B8 5E59 6B03

To claim this, I am signing this object:

@PaulusTM
PaulusTM / debug.log
Created January 9, 2015 16:28
Vagrant debug ssh error
INFO global: Vagrant version: 1.7.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="debug"
Config Hash:
{}
Plugins:
KnifeSpork::Plugins::Campfire: disabled
KnifeSpork::Plugins::Eventinator: disabled
KnifeSpork::Plugins::Foodcritic: disabled
KnifeSpork::Plugins::Git: disabled
KnifeSpork::Plugins::Graphite: disabled
KnifeSpork::Plugins::Grove: disabled
@PaulusTM
PaulusTM / -
Last active August 29, 2015 14:13
knife spork -VV debug info
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
INFO: Unable to access cache at /var/chef. Switching cache to /Users/dpaulus/.chef
@PaulusTM
PaulusTM / gist:f5ab7f74c9394d918f32
Created January 27, 2015 11:45
Chef server on Amazon Linux stacktrace
Recipe: private-chef::add_ons_remote
* yum_repository[chef-stable] action createRecipe: <Dynamically Defined Resource>
* template[/etc/yum.repos.d/chef-stable.repo] action create
- create new file /etc/yum.repos.d/chef-stable.repo
- update content in file /etc/yum.repos.d/chef-stable.repo from none to 8d23f9
--- /etc/yum.repos.d/chef-stable.repo 2015-01-27 10:31:55.732801314 +0000
+++ /tmp/chef-rendered-template20150127-3095-182oldv 2015-01-27 10:31:55.732801314 +0000
@@ -1 +1,12 @@
+# This file was generated by Chef
+# Do NOT modify this file by hand.
#[root /etc/rsyslog.d]# cat 12-nagios.conf
$ModLoad imfile
$InputFilename /var/log/nagios/nagios.log
$InputFileStateFile .nagios.rsyslog
$InputFileTag nagios.log
$InputFileFacility local6
$InputFileSeverity info
$InputRunFileMonitor
@PaulusTM
PaulusTM / Vagrantfile
Created July 31, 2015 20:48
Supermarket package singing issue
Vagrant.configure(2) do |config|
config.vm.box = "chef/centos-6.5"
config.vm.define "server" do |s|
s.vm.network "private_network", ip: "10.10.10.10"
s.vm.provider "virtualbox" do |vb|
vb.cpus = 2
vb.memory = "2048"
@PaulusTM
PaulusTM / knife.rb
Last active September 16, 2015 09:58 — forked from garystafford/knife.rb
Gists for blogpost, 'Configure Chef on Windows for a Proxy Server': http://wp.me/p1RD28-11w. Settings for knife.rb file when using a proxy server from a Windows host. Set environment variables manually or use the Windows' command 'setx VARIABLE value'. You must close the current windows prompt and open a new one to see the SETX changes (env | gr…
# See http://docs.opscode.com/config_rb_knife.html
# for more information on knife configuration options
# Knife expects USERNAME, USERDNSDOMAIN, PASSWORD, PROXY_SERVER,
# and PROXY_PORT environment variables to be set at runtime.
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "chef_user_here"
client_key "#{ENV['HOME']}/.chef/chef_client_here.pem"
@PaulusTM
PaulusTM / knife cheat
Created December 11, 2015 10:50 — forked from ipedrazas/knife cheat
Hello!
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway