Skip to content

Instantly share code, notes, and snippets.

@cwebberOps
cwebberOps / gist:ed5b233dcb10f10e8bbb
Created August 18, 2014 12:41
OS Init Compatibility Matrix
+----------------+------+---------+---------+-------+
| OS | INIT | SYSTEMD | UPSTART | RUNIT |
+----------------+------+---------+---------+-------+
| | | | | |
| CentOS 5 | X | | | X |
| | | | | |
| CentOS 6 | X | | | X |
| | | | | |
| CentOS 7 | X | X | | X |
| | | | | |
@cwebberOps
cwebberOps / writeup.markdown
Created August 14, 2014 15:40
Dependency API Postmortem

2014-08-12 - Dependency API Issues - Community

Start every PM stating the following

  1. This is a blameless Postmortem.
  2. We will not focus on the past events as they pertain to "could've" "should've"...
  3. All follow up action items will be assigned to a team/individual before the end of the meeting. If the item is not going to be top priority leaving the meeting, don't make it a follow up item.

Incident Leader: Christopher Webber

@cwebberOps
cwebberOps / postmortem.md
Created July 14, 2014 18:24
Berkshelf API Protocol Mismatch

2014-07-14 - Berkshelf Protocol Mismatch - Community

Start every PM stating the following

  1. This is a blameless Post Mortem.
  2. We will not focus on the past events as they pertain to "could've" "should've"...
  3. All follow up action items will be assigned to a team/individual before the end of the meeting. If the item is not going to be top priority leaving the meeting, don't make it a follow up item.

Incident Leader: Christopher Webber

@cwebberOps
cwebberOps / postmortem.md
Created July 10, 2014 11:36
2014-07-08 - Supermarket Unresponsive - Community

2014-07-08 - Supermarket Unresponsive - Community

Start every PM stating the following

  1. This is a blameless Post Mortem.
  2. We will not focus on the past events as they pertain to "could've" "should've"...
  3. All follow up action items will be assigned to a team/individual before the end of the meeting. If the item is not going to be top priority leaving the meeting, don't make it a follow up item.

Incident Leader: Christopher Webber

@cwebberOps
cwebberOps / postmortem.md
Last active August 29, 2015 14:03
2014-07-08 - Berkshelf v2 outage - Community

2014-07-08 - Berkshelf v2 Outage - Community

Start every PM stating the following

  1. This is a blameless Post Mortem.
  2. We will not focus on the past events as they pertain to "could've" "should've"...
  3. All follow up action items will be assigned to a team/individual before the end of the meeting. If the item is not going to be top priority leaving the meeting, don't make it a follow up item.

Incident Leader: Christopher Webber

@cwebberOps
cwebberOps / gist:7bec22e444a353db267b
Last active August 29, 2015 14:01
Pull Requests

Commit All The Things! - A Guide to Managing Pull Requests

Assumptions

  • All spec and kitchen tests have been added as needed
  • Code itself has been reviewed and verified
  • hub and stove are in use

Merging

Use the squash command below to merge the request onto the master branch.

if node[:platform] == 'ubuntu'
an_provider = Chef:Something:Upstart
else
an_provider = nil
end
service 'sshd' do
provider an_provider
action [:enable, :start]
end
@cwebberOps
cwebberOps / gist:38ca902ae25a37952a00
Created May 12, 2014 23:47
Understand Postgres Extensions in Prod

As we setup our rails environment we added the following to our schema.rb:

  enable_extension "plpgsql"
  enable_extension "pg_trgm"

As we move to prod the reality is that enabling those extensions requires a super user. How do people handle this kind of migration in Prod? Is it done separate from the schema.rb?

And if it is done separate how do you handle it in tests? Just not sure where to go with this...

@cwebberOps
cwebberOps / order.pp
Created May 6, 2014 14:15
Ordering Fun
class 'foo' {
file { '/foo':
ensure => present
}
service { 'foo':
ensure => running
}
file {
'/path':
ensure => directory;
'/path/to':
ensure => directory;
'/path/to/file':
ensure => present,
content => template('modulename/file.erb');
}