Skip to content

Instantly share code, notes, and snippets.

View slyness's full-sized avatar
🏠
Working from home

Aaron Baer slyness

🏠
Working from home
View GitHub Profile
@slyness
slyness / gist:9081870
Created February 18, 2014 22:34
a statement
I just reviewed the haw_security_group and it has some pretty big issues.
When I killed my test stack it removed SecurityGroup entries in the NatSG which affected all other stacks using the NATs.
Basically all our CIs began to fail because we deleted the port 22 rule so no github :(
I think the security group needs to be a a dynamic like I mentioned earlier.
What do you think?
@slyness
slyness / gist:9075959
Created February 18, 2014 17:48
of the day
<% end %>
##################################################################################
# TODO: REMOVE DUPLICATION with MYHCGENIUS server declaration
# an nginx inlcude should work but I'm done wrestling with chef for the day
##################################################################################
@slyness
slyness / gist:8552294
Created January 22, 2014 02:03
ERROR: constant Chef::CookbookSynchronizer::EAGER_SEGMENTS not defined
192.168.56.102 96: # Force full cookbook downloads
192.168.56.102 97>> CookbookSynchronizer.send(:remove_const, :EAGER_SEGMENTS)
192.168.56.102 98: CookbookSynchronizer.const_set(:EAGER_SEGMENTS, CookbookVersion::COOKBOOK_SEGMENTS)
192.168.56.102 99: Chef::Log.warn 'Performing full cookbook sync...'
192.168.56.102 100: rest = Chef::REST.new(Chef::Config[:chef_server_url], node.name, Chef::Config[:client_key])
192.168.56.102 101: run_list_expansion = node.run_list.expand(node.chef_environment)
192.168.56.102 102: cookbook_hash = rest.post_rest(
192.168.56.102 103: "environments/#{node.chef_environment}/cookbook_versions",
192.168.56.102 104: :run_list => run_list_expansion.recipes.with_version_constraints_strings
192.168.56.102 105: )
@slyness
slyness / gist:8304699
Created January 7, 2014 19:00
Base container generated by vagabond inside a ubuntu 12.10 vm running in virtualbox hosted on OSX.
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » sudo lxc-start -n ubuntu_1204
init: Unable to mount /dev/pts filesystem: Permission denied
<3>init: Failed to create pty - disabling logging for job
<4>init: Temporary process spawn error: No such file or directory
<3>init: Failed to create pty - disabling logging for job
<4>init: Temporary process spawn error: No such file or directory
<3>init: Failed to create pty - disabling logging for job
<4>init: Temporary process spawn error: No such file or directory
.
.
@slyness
slyness / gist:8292532
Created January 7, 2014 00:20
some more issue
elecksee status:
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » gem query --local | grep elecksee
elecksee (1.0.18, 1.0.16, 1.0.10, 1.0.6, 1.0.4)
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » bundle exec gem query --local | grep elecksee
elecksee (1.0.18)
greenlantern :: Planet/ninefold/ninefold-test ‹master*› » /opt/chef/embedded/bin/gem query --local | grep elecksee
elecksee (1.0.18, 1.0.16, 1.0.10, 1.0.6, 1.0.4)
New Error:
vagrant 1.4.2
vagabond 0.2.10
.vagabond/Cheffile
site 'http://community.opscode.com/api/v1'
cookbook 'vagabond', '1.0.4'
cookbook 'lxc', '1.1.4'
cookbook 'chef-server-populator', '0.3.0'
@slyness
slyness / gist:8063720
Created December 21, 2013 00:25
apt smash!
root@ubuntu_1204-orfqR8eue34M:/etc/apt/preferences.d# apt-cache policy wget
wget:
Installed: (none)
Candidate: 1.13.4-2ubuntu1
Version table:
1.13.4-2ubuntu1 0
999 http://apt.ninefold.slyness.org/ precise/ninefold amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
on 12.04
root@ubuntu_1204-Mp5FUZ2yj7JV:/opt/chef/embedded/bin# dpkg -l | grep whiptail
ii whiptail 0.52.11-2ubuntu10 Displays user-friendly dialog boxes from shell scripts
turns into:
"binary-Displays": {
"whiptail": [
"0.52.11-2ubuntu10"
@slyness
slyness / gist:6441895
Created September 4, 2013 19:45
postgres ssl for NF
bev ssh to_host;
cut and paste as root.
cd /var/lib/postgresql/9.1/main/;
cp /etc/ssl/certs/ssl-cert-snakeoil.pem server.crt;
cp /etc/ssl/private/ssl-cert-snakeoil.key server.key;
chown postgres:postgres server*;
service postgresql start;
@slyness
slyness / gist:6226095
Created August 13, 2013 21:53
Berksfile.full
site :opscode
cookbook 'ninefold_app', path: '/home/aaronb/Planet/ninefold/chef-ninefold-app', branch: 'develop'
cookbook 'ninefold_ohai', path: '/home/aaronb/Planet/ninefold/chef-ninefold-ohai', branch: 'develop'
cookbook 'ninefold_repo_builder', git: '[email protected]:ninefold/chef-ninefold-repo-builder.git', branch: 'develop'
cookbook 'ninefold_logger', path: '/home/aaronb/Planet/ninefold/chef-ninefold-logger', branch: 'develop'
cookbook 'backup', path: '/home/aaronb/Planet/ninefold/backup/', branch: 'feature/many_databases'
cookbook 'minitest-handler'