Skip to content

Instantly share code, notes, and snippets.

View jessereynolds's full-sized avatar

Jesse Reynolds jessereynolds

  • Puppet
  • Melbourne, Victoria, Australia
View GitHub Profile
@jessereynolds
jessereynolds / cloud-init-output.log
Created August 28, 2014 14:06
flapjack 1.0.0 trusty build on ec2
Cloud-init v. 0.7.5 running 'init-local' at Thu, 28 Aug 2014 13:16:04 +0000. Up 11.92 seconds.
Cloud-init v. 0.7.5 running 'init' at Thu, 28 Aug 2014 13:16:06 +0000. Up 14.33 seconds.
ci-info: +++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++
ci-info: +--------+------+---------------+---------------+-------------------+
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +--------+------+---------------+---------------+-------------------+
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth0 | True | 10.181.16.240 | 255.255.255.0 | 22:00:0b:4d:0a:a7 |
ci-info: +--------+------+---------------+---------------+-------------------+
ci-info: +++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++++
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"aws_account_id": "{{env `AWS_ACCOUNT_ID`}}",
"aws_x509_cert_path": "{{env `AWS_X509_CERT_PATH`}}",
"aws_x509_key_path": "{{env `AWS_X509_KEY_PATH`}}"
},
"builders": [{
"type": "amazon-instance",
@jessereynolds
jessereynolds / amazon instance store packer.md
Last active August 29, 2015 14:05
ec2 instance store, how does it work?

So this m3.medium ec2 instance that packer has created to build an ami, i selected 'amazon-instance' as the type, and the ubuntu trusty source ami of type "instance-store" (as opposed to ebs, ebs-ssd, ebs-io1, and the hvm:* ones) ... it has / on xvda1 - is this ebs? How would i tell which is local ssd? m3.medium is supposed to have 1 x 4GB SSD volume, which would tend to indicate xvdb is SSD.

df

ubuntu@ip-10-61-150-2:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      9.9G  6.9G  2.5G  74% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            1.9G   12K  1.9G   1% /dev
@jessereynolds
jessereynolds / packaging.markdown
Last active August 29, 2015 14:04
flapjack packaging ideas

The SQS and Jenkins bits can come later...

Create an AMI

  • ubuntu trusty with docker PPA and latest docker installed
  • do a 'docker pull flapjack/omnibus-ubuntu'
  • bake ami

Start EC2 instance using above AMI

@jessereynolds
jessereynolds / gist:e4c70af8f1e98ceb7e85
Created June 26, 2014 09:40
flapjack omnibus build can't find rake (changes: ruby 1.9.3 -> 2.1.1; removing Gemfile.lock before bundle install)
[Builder: flapjack] I | Executing: `/opt/flapjack/embedded/bin/bundle exec rake build` with cwd=/var/cache/omnibus/src/flapjack,timeout=5400,live_stream=#<Omnibus::Logger::LiveStream:0x00000001c6ef98>,env="RUBYOPT= BUNDLE_BIN_PATH= BUNDLE_GEMFILE= GEM_PATH= GEM_HOME="
[Builder: flapjack] W | /opt/flapjack/embedded/bin/bundle command failed! (0.4823312s)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to build flapjack while running `/opt/flapjack/embedded/bin/bundle exec rake build` with cwd=/var/cache/omnibus/src/flapjack,timeout=5400,live_stream=#<Omnibus::Logger::LiveStream:0x00000001c6ef98>,env="RUBYOPT= BUNDLE_BIN_PATH= BUNDLE_GEMFILE= GEM_PATH= GEM_HOME="
Exception:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/flapjack/embedded/bin/bundle exec rake build ----
STDOUT:
STDERR: /var/lib/gems/1.9.1/gems/bundler-1.6.3/lib/bundler/spec_set.rb:92:in `block in materialize': Could not
jesse@Heart-of-Gold omnibus-flapjack $ time vagrant up aws-ubuntu-precise64 --provider aws
Bringing machine 'aws-ubuntu-precise64' up with 'aws' provider...
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.
[Berkshelf] You should check for a newer version of vagrant-berkshelf.
[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues
[Berkshelf] You can also join the discussion in #berkshelf on Freenode.
[Berkshelf] Updating Vagrant's berkshelf: '/Users/jesse/.berkshelf/aws-ubuntu-precise64/vagrant/berkshelf-20140122-8110-8yeqkz-aws-ubuntu-precise64'
[Berkshelf] Using omnibus (1.0.8)
[Berkshelf] Using python (1.4.6)
@jessereynolds
jessereynolds / gist:faab4c833b13e22da006
Created May 22, 2014 02:21
omnibus-flapjack - libyaml problem on centos 6.5
jesse@Heart-of-Gold omnibus-flapjack $ time vagrant provision aws-centos-6.5
[fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded.
[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.
[Berkshelf] You should check for a newer version of vagrant-berkshelf.
[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues
[Berkshelf] You can also join the discussion in #berkshelf on Freenode.
[Berkshelf] Updating Vagrant's berkshelf: '/Users/jesse/.berkshelf/aws-centos-6.5/vagrant/berkshelf-20140522-81197-229e6d-aws-centos-6.5'
[Berkshelf] Using omnibus (1.0.8)
[Berkshelf] Using python (1.4.6)
[Berkshelf] Installing awscli (0.1.0) from git: 'git://github.com/flpjck/awscli' with branch: 'master' at ref: 'd7dc2d8eaa9504619f7f079efead3b5a3e0d6a1b'
@jessereynolds
jessereynolds / fail.txt
Created May 4, 2014 20:18
flapjack build failing with ruby 2.1.1, bundler 1.5.3, "Could not find rake-10.3.1 in any of the sources (Bundler::GemNotFound)"
[builder:flapjack] Executing: `/opt/flapjack/embedded/bin/bundle exec rake build` with cwd=/var/cache/omnibus/src/flapjack,timeout=5400,env="RUBYOPT= BUNDLE_BIN_PATH= BUNDLE_GEMFILE= GEM_PATH= GEM_HOME="
[builder:flapjack] /opt/flapjack/embedded/bin/bundle command failed, 0.566573754s
[builder:flapjack] Failed to execute cmd ["/opt/flapjack/embedded/bin/bundle exec rake build", {:cwd=>"/var/cache/omnibus/src/flapjack", :timeout=>5400, :env=>{"RUBYOPT"=>nil, "BUNDLE_BIN_PATH"=>nil, "BUNDLE_GEMFILE"=>nil, "GEM_PATH"=>nil, "GEM_HOME"=>nil}}] 3 time(s). Retrying in 20s.
[builder:flapjack] Executing: `/opt/flapjack/embedded/bin/bundle exec rake build` with cwd=/var/cache/omnibus/src/flapjack,timeout=5400,env="RUBYOPT= BUNDLE_BIN_PATH= BUNDLE_GEMFILE= GEM_PATH= GEM_HOME="
[builder:flapjack] /opt/flapjack/embedded/bin/bundle command failed, 0.589301236s
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to build flapjack while running `/opt/flapjack/embedded/bin/bundle exec rake
@jessereynolds
jessereynolds / 0 summary.md
Last active August 29, 2015 13:57
omnibus-collectd - gettext has unsafe dependencies

omnibus-collectd health check failures

The gettext build depends on two libraries outside the omnibus build (in addition to other already whitelisted libraries):

libtinfo5 - /lib/x86_64-linux-gnu/libtinfo.so.5

shared low-level terminfo library for terminal handling

Part of ncurses - http://packages.ubuntu.com/source/precise/ncurses