I hereby claim:
- I am sean-horn on github.
- I am seanhorn (https://keybase.io/seanhorn) on keybase.
- I have a public key ASCC2iPb003N1coKfe_mfd-btZRAnWtsDDXIhwC0aCMoUgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
filter { | |
if [type] == "inspec_report" { | |
if [end_time] { | |
date { | |
match => ["end_time", "YYYY-MM-dd'T'HH:mm:ssZZ"] | |
timezone => "UTC" | |
} | |
} | |
mutate { |
#!/bin/bash | |
usage=" | |
This is a script used to configure your logstash tunables through delivery.rb, and to scale the number of \n | |
logstash processes running on your Automate server.\n | |
\n | |
You can specify the following options:\n | |
--workers The number of filter workers per logstash process. Defaults to number of virtual cores.\n | |
--total-procs The number of total logstash processes to run. Defaults to 2.\n | |
--heap-size The heap size allotted to each logstash process. Defaults to 2g.\n |
Used this guy to generate a new cert, then concatenated its root ca.crt with the server cert and put it in place. https://github.com/xenolinguist/pseudo_ca
cd /etc/ssl
git clone https://github.com/xenolinguist/pseudo_ca.git
rake generate_server[hr.puffin.stuff.lxc]
With this sequence of commands, we will enable the rabbitmqadmin web interface for rabbit. All commands should be run as root
PATH=/opt/opscode/embedded/bin:$PATH /opt/opscode/embedded/bin/rabbitmqctl list_queues -p /analytics
PATH=/opt/opscode/embedded/bin:$PATH /opt/opscode/embedded/bin/rabbitmqctl list_consumers -p /analytics
PATH=/opt/opscode/embedded/bin:$PATH /opt/opscode/embedded/service/rabbitmq/sbin/rabbitmq-plugins enable rabbitmq_management
exit unless ARGV.length == 3 | |
nodename = ARGV[2] | |
50.times do | |
%w{role1 role2}.each do |currentrole| | |
n = nodes.load(nodename) | |
n.run_list("role[#{currentrole}]") | |
n.save | |
n = nodes.load(nodename) |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'chef/knife' | |
Chef::Config.from_file(File.join(Chef::Knife.chef_config_dir, 'knife.rb')) | |
rest = Chef::REST.new(Chef::Config[:chef_server_url]) | |
Chef::Node.list.each do |node| | |
%w{read update delete grant}.each do |perm| |
These instructions are for an HA system specifically.
To use for a Standalone, just replace the /var/opt/opscode/drbd/data
path to /var/opt/opscode
and ignore the stages for Secondary Backend and Frontends.
All commands as root
##On the Source EC 11.0.2 system
private-chef-ctl stop
# OC-11643 | |
# OC-11644 | |
# You can use this script by running `knife exec` | |
# knife exec cleanup_orphaned_invites_via_api.rb -s https://CHEF_SERVER_URL/organizations/ORG_NAME | |
invites = api.get('association_requests') | |
orphaned_invites = invites.select { |invite| invite['username'].nil? } |