Skip to content

Instantly share code, notes, and snippets.

View tas50's full-sized avatar
🌪️
Producting. That's a thing right?

Tim Smith tas50

🌪️
Producting. That's a thing right?
View GitHub Profile
[2017-04-28T03:37:39+00:00] DEBUG: Did not find hint ec2.json in the hint path(s): /etc/chef/ohai/hints
[2017-04-28T03:37:39+00:00] DEBUG: Plugin EC2: has_ec2_xen_uuid? == true
[2017-04-28T03:37:39+00:00] DEBUG: Mixin HttpHelper: can_socket_connect? == true
[2017-04-28T03:37:39+00:00] DEBUG: Plugin EC2: looks_like_ec2? == true
[2017-04-28T03:37:39+00:00] DEBUG: ec2 metdata mixin: Fetching http://169.254.169.254/ to determine the latest supported metdata release
[2017-04-28T03:37:39+00:00] DEBUG: ec2 metadata mixin: Latest supported EC2 metadata version: 2016-09-02
[2017-04-28T03:37:39+00:00] DEBUG: ec2 metadata mixin: Fetching http://169.254.169.254/2016-09-02/meta-data/
[2017-04-28T03:37:39+00:00] DEBUG: ec2 metadata mixin: Fetching http://169.254.169.254/2016-09-02/meta-data/ami-id
[2017-04-28T03:37:39+00:00] DEBUG: ec2 metadata mixin: Fetching http://169.254.169.254/2016-09-02/meta-data/ami-launch-index
[2017-04-28T03:37:39+00:00] DEBUG: ec2 metadata mixin: Fetching http://169.254.169.254/2016-09-02/meta-d
<opt value="program">
<stmts_add value="stmts_add">
<stmts_new value="stmts_new"/>
<command_call value=".">
<const_path_ref value="const_path_ref">
<var_ref value="var_ref">
<const value="Chef">
<pos line="4" column="0"/>
</const>
</var_ref>
FC001: Use strings in preference to symbols to access node attributes: ./aws/resources/instance_monitoring.rb:34
FC001: Use strings in preference to symbols to access node attributes: ./delivery-cluster/libraries/vagrant.rb:138
FC001: Use strings in preference to symbols to access node attributes: ./delivery_build/attributes/default.rb:105
FC001: Use strings in preference to symbols to access node attributes: ./delivery_build/attributes/default.rb:106
FC001: Use strings in preference to symbols to access node attributes: ./delivery_build/attributes/default.rb:107
FC001: Use strings in preference to symbols to access node attributes: ./delivery_build/attributes/default.rb:110
FC001: Use strings in preference to symbols to access node attributes: ./delivery_build/attributes/default.rb:111
FC001: Use strings in preference to symbols to access node attributes: ./delivery_build/attributes/default.rb:112
FC001: Use strings in preference to symbols to access node attributes: ./drupal-windows/recipes/default.rb:183
F
Opscode Summit takeaways
Overall product roadmap
The server is being rewritten in Erlang (no longer ruby) for .11 to greatly reduce memory usage and CPU usage. There's a large push for scalability as Opscode uses the same code base on just 6 servers to do Hosted Chef
CouchDB is being replaced with MySQL as the data store to improve db response time, performance, and ease replication/maintenance
.11 will ship with DB plugins for multiple SQL servers. No word on if they may support MS SQL at some point. I will follow up with their product manager to express our interest in this use case
Windows product roadmap
.10.6 comes out next week with significant fixes for Windows support
bad_chars = [" ", "'", ",", "\"", "/", "]", "[", "{", "}", "-", "=", ">"]
invalid_platforms = %w(
aws
archlinux
amazonlinux
darwin
debuan
mingw32
mswin
mac_os_x_server
#!/usr/bin/env ruby
require "net/http"
require "json"
require "date"
def cookbooks
uri = URI("https://supermarket.chef.io/api/v1/users/chef")
response = Net::HTTP.get(uri)
JSON.parse(response)["cookbooks"]["owns"].keys
@tas50
tas50 / gist:32ca8e98a3d59636ee03ec70b6706738
Created February 23, 2017 17:22
Linux distro EOL pages
Distro Support Matrix:
Amazon Linux:
It’s all supported forever
FreeBSD:
https://www.freebsd.org/releases/
SUSE Enterprise:
Recipe: test::default
* git_config[add name to random] action set
================================================================================
Error executing action `set` on resource 'git_config[add name to random]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
value is required
{
"opscode-cookbooks": {
"url": "https://github.com/opscode-cookbooks/test_cookbook_repo/pull/2",
"date": "2017-01-30 23:54:30 UTC"
},
"chef-boneyard": {
"url": "https://github.com/chef-boneyard/cookbooks/pull/360",
"date": "2012-03-02 18:08:38 UTC"
},
"chef-cookbooks": {
@tas50
tas50 / gist:17f98a7d5cd417855ba2e0a1184941b9
Created December 5, 2016 19:25
Update vagrant boxes (requires vagrant 1.9)
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Box type must be specified (virtualbox, vmware_desktop, parallels)"
exit 1
fi
# Find all boxes which have updates
AVAILABLE_UPDATES=`vagrant box outdated --global 2>/dev/null | grep outdated | tr -d "*'" | cut -d ' ' -f 2`