Skip to content

Instantly share code, notes, and snippets.

View spuder's full-sized avatar

Spencer Owen spuder

View GitHub Profile
@spuder
spuder / error.txt
Created October 1, 2014 22:43
gitlab git user
[root@gitlab tmp]# gitlab-ctl reconfigure
Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: gitlab::default
* directory[/etc/gitlab] action create (up to date)
[2014-10-01T16:41:46-06:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab] from prior resource (CHEF-3694)
[2014-10-01T16:41:46-06:00] WARN: Previous directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/default.rb:40:in `from_file'
[2014-10-01T16:41:46-06:00] WARN: Current directory[/var/opt/gitlab]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/users.rb:23:in `from_file'
[2014-10-01T16:41:46-06:00] WARN: Cloning resource attributes for directory[/var/opt/gitlab/gitlab-rails/etc] from prior resource (CHEF-3694)
[2014-10-01T16:41:46-06:00] WARN: Previous directory[/var/opt/gitlab/gitlab-rails/etc]: /opt/gitlab/embedded/cookbooks/gitlab/recipes/gitlab-rails.rb:37:in `block in from_file'
@spuder
spuder / dashing.md
Last active August 29, 2015 14:07
Fail to get dashing working

Can't get dashing working, here is what I have done.

gem install dashing
dashing new foobar
bundle
dashing generate dashboard foo
dashing start
@spuder
spuder / logstalgia-client
Last active August 29, 2015 14:07
Gitlab + Logstalgia
# The client must have an x11 window running (for the graphics)
ssh foo@192.0.2.0 tail -f /home/foo/logstalgia.log | logstalgia --sync
Verify that the logstalgia-client can ssh to the logstalgia-server without passwords by setting up ssh key access
@spuder
spuder / defined.md
Last active August 29, 2015 14:09
foreman defined types
@spuder
spuder / sensu.pp
Last active August 29, 2015 14:10
Vagrant multi-host provisioners
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder "../", "/vagrant_data" # Mount directory up a level so puppet module list can find modules
config.vm.synced_folder ".", "/vagrant"
@spuder
spuder / api.json
Last active August 29, 2015 14:10
Sensu Configuration
{
"api": {
"port": 4567,
"host": "localhost"
}
}
@spuder
spuder / ubuntu-clean.sh
Created February 12, 2015 22:28
Clean Ubuntu machines for provisioning
# Remove items used for building, since they aren't needed anymore
#https://github.com/riywo/packer-example/blob/master/scripts/cleanup.sh
set -x
#Stop Logging
service rsyslog stop
# Clean Logging
logrotate –f /etc/logrotate.conf
rm –f /var/log/*-???????? /var/log/*.gz
@spuder
spuder / keybase.md
Created April 15, 2015 18:57
keybase.md

Keybase proof

I hereby claim:

  • I am spuder on github.
  • I am spuder (https://keybase.io/spuder) on keybase.
  • I have a public key whose fingerprint is 068B 99A7 5A5E 50D3 CBB0 6E53 968F 11BA 2C11 BED6

To claim this, I am signing this object:

@spuder
spuder / kitchen.md
Last active August 29, 2015 14:20
kitchen - command line is too long
@spuder
spuder / WSE.md
Created May 27, 2015 21:00
Chocolaty can't install WSE
PS C:\Users\sowen> choco install -y microsoftwse
Chocolatey v0.9.9.6
Installing the following packages:
microsoftwse
By installing you accept licenses for the packages.

MicrosoftWSE v3.0
 Installing MicrosoftWSE...
 [ERROR] Running msiexec with /i "C:\Users\sowen\AppData\Local\Temp\2\chocolatey\MicrosoftWSE\MicrosoftWSEInstall.MSI"