Skip to content

Instantly share code, notes, and snippets.

View rberger's full-sized avatar

Robert J. Berger rberger

View GitHub Profile
@rberger
rberger / chef-client_output
Created May 27, 2014 06:00
chef-client run of chef-metal failure creating client
- [web] write file /etc/chef/client.pem on web[2014-05-26T22:58:30-07:00] INFO: Processing chef_client[web] action create (basic_chef_client::block line 133)
[2014-05-26T22:58:31-07:00] INFO: HTTP Request Returned 404 Object Not Found: error
[2014-05-26T22:58:31-07:00] INFO: HTTP Request Returned 403 Forbidden: error
[2014-05-26T22:58:31-07:00] INFO: Running queued delayed notifications before re-raising exception
================================================================================
Error executing action `converge` on resource 'machine_batch[default]'
================================================================================
@rberger
rberger / gist:11309161
Created April 26, 2014 01:23
chef-client chef-metal-docker failure with_provisioner_options 'base_image' => 'ubuntu:precise'
chef-client -z -o min_app::min -l info
[2014-04-26T01:15:09+00:00] WARN: No config file found or specified on command line, using command line options.
[2014-04-26T01:15:09+00:00] INFO: Auto-discovered chef repository at /metal
[2014-04-26T01:15:09+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /metal
One version per cookbook
[2014-04-26T01:15:09+00:00] INFO: Forking chef instance to converge...
[2014-04-26T01:15:09+00:00] WARN:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
SSL validation of HTTPS requests is disabled. HTTPS connections are still
@rberger
rberger / gist:11308954
Created April 26, 2014 01:09
Failing chef-client run with with_provisioner_options 'base_image' => 'ubuntu:precise', 'create_container' => { 'command' => 'echo "++++++ HELLO ++++"'}
[2014-04-26T00:47:19+00:00] WARN: No config file found or specified on command line, using command line options.
[2014-04-26T00:47:19+00:00] INFO: Auto-discovered chef repository at /metal
[2014-04-26T00:47:19+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /metal
One version per cookbook
[2014-04-26T00:47:19+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 11.12.2
[2014-04-26T00:47:19+00:00] INFO: *** Chef 11.12.2 ***
[2014-04-26T00:47:19+00:00] INFO: Chef-client pid: 27464
[2014-04-26T00:47:27+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: http://127.0.0.1:8889/nodes/docker-test
@rberger
rberger / KeybaseProof
Created March 28, 2014 04:46
Keybase proof
### Keybase proof
I hereby claim:
* I am rberger on github.
* I am robert_j_berger (https://keybase.io/robert_j_berger) on keybase.
* I have a public key whose fingerprint is E083 9003 AE79 5F51 E857 8D5B 122C D06D 8DAE 06BE
To claim this, I am signing this object:
default['myface']['database']['host'] = 'localhost'
default['myface']['database']['username'] = 'root'
default['myface']['database']['password'] = node['mysql']['server_root_password']
default['myface']['database']['dbname'] = 'myface'
default['myface']['database']['seed_file'] = "/tmp/myface-init.sql"
require File.expand_path('../support/helpers', __FILE__)
describe 'myface::database' do
include Helpers::Myface
# Example spec tests can be found at http://git.io/Fahwsw
# Verify that MySQL is installed & enabled:
it "Enables and starts the mysql daemon" do
#
# Cookbook Name:: myface
# Recipe:: database
#
# Copyright (C) 2013 Charles Johnson
#
# All rights reserved - Do Not Redistribute
#
include_recipe "mysql::server"
<!--
Copyright 2013, Opscode, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
# Managed by Chef for <%= node['hostname'] %>
<VirtualHost *:80>
ServerAdmin <%= node['apache']['contact'] %>
DocumentRoot /srv/apache/myface
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/apache/myface>
#
# Cookbook Name:: myface
# Recipe:: default
#
# Copyright (C) 2012 Sean OMeara
#
# Apache 2 license
#
user 'myface'