#Ubuntu Setup
###Prerequisites:
- Make sure you're on the employee network or VPN!
##Run this to install your development environment:
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/devops_setup.sh | sudo bash
###Afterwards
<%= form_for(@user) do |f| %> | |
<% if @user.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2> | |
<ul> | |
<% @user.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
2013/11/15 15:02:37 Packer Version: 0.3.11 | |
2013/11/15 15:02:37 Packer Target OS/Arch: darwin amd64 | |
2013/11/15 15:02:37 Detected home directory from env var: /Users/vmontalbano | |
2013/11/15 15:02:37 Attempting to open config file: /Users/vmontalbano/.packerconfig | |
2013/11/15 15:02:37 File doesn't exist, but doesn't need to. Ignoring. | |
2013/11/15 15:02:37 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean openstack:packer-builder-openstack virtualbox:packer-builder-virtualbox vmware:packer-builder-vmware] Commands:map[build:packer-command-build fix:packer-command-fix inspect:packer-command-inspect validate:packer-command-validate] PostProcessors:map[vagrant:packer-post-processor-vagrant] Provisioners:map[ansible-local:packer-provisioner-ansible-local chef-solo:packer-provisioner-chef-solo file:packer-provisioner-file puppet-masterless:pa |
class ApplicationController < ActionController::Base | |
# Prevent CSRF attacks by raising an exception. | |
# For APIs, you may want to use :null_session instead. | |
protect_from_forgery with: :exception | |
if Rails.env.development? | |
# https://github.com/RailsApps/rails-devise-pundit/issues/10 | |
include Pundit | |
# https://github.com/elabs/pundit#ensuring-policies-are-used | |
after_action :verify_authorized, except: :index |
#cloud-config | |
hostname: vjm-coreos | |
coreos: | |
etcd: | |
addr: $private_ipv4:4001 | |
peer-addr: $private_ipv4:7001 | |
units: | |
- name: etcd.service |
sudo apt-get install -y supervisor | |
sudo mkdir /usr/share/elasticsearch | |
cd /usr/share/elasticsearch | |
sudo wget https://download.elasticsearch.org/kibana/kibana/kibana-4.0.1-linux-x64.tar.gz | |
sudo wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz | |
sudo wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz | |
sudo tar -zxvf elasticsearch-0.90.0.tar.gz |
#Ubuntu Setup
###Prerequisites:
##Run this to install your development environment:
curl -s https://gist.githubusercontent.com/vjm/9a41042ec1b6f53042df/raw/devops_setup.sh | sudo bash
###Afterwards
#Ubuntu Setup
curl -sSL https://gist.githubusercontent.com/vjm/150f4ac913195b8ca44a/raw/install.sh | sudo sh
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-setup.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/jenkins-update.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-setup.sh)
bash <(curl -s https://gist.githubusercontent.com/vjm/fea77232e2bd6bb49f24/raw/elk-update.sh)
curl -s https://gist.githubusercontent.com/vjm/1a873d0b7cd63cb4f8b7/raw/toggle_spotify.sh | bash
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
# External Network |