I hereby claim:
- I am zanshin on github.
- I am zanshin (https://keybase.io/zanshin) on keybase.
- I have a public key whose fingerprint is 297F 5FD4 0275 D2E5 48E9 F834 6CCF 1568 5344 5200
To claim this, I am signing this object:
# determine if we are an alpha or production node | |
if node.chef_environment == "ome-alpha" | |
local_environment = "alpha" | |
else | |
local_environment = "prod" | |
end | |
# get the list of nodes... | |
sources = search(:node, "tags:#{node['memcached']['memcached_instance']} AND tags:#{local_environment}") |
knife bootstrap ome-vm33.campus.ksu.edu -N ome-vm33.campus.ksu.edu --ssh-user mhn --sudo --run-list "role[est_base], role[ome_base]" --bootstrap-proxy http://www-proxy.ksu.edu:3128 | |
Connecting to ome-vm33.campus.ksu.edu | |
ome-vm33.campus.ksu.edu knife sudo password: | |
Enter your password: | |
ome-vm33.campus.ksu.edu | |
ome-vm33.campus.ksu.edu Starting first Chef Client run... | |
ome-vm33.campus.ksu.edu [2014-11-13T09:05:45-06:00] WARN: | |
ome-vm33.campus.ksu.edu * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
ome-vm33.campus.ksu.edu SSL validation of HTTPS requests is disabled. HTTPS connections are still | |
ome-vm33.campus.ksu.edu encrypted, but chef is not able to detect forged replies or man in the middle |
# use UTF8 | |
set -g utf8 | |
set-window-option -g utf8 on | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# set scrollback history to 10000 (10k) | |
set -g history-limit 10000 |
I have a cookbook that installs Tomcat7, sets up an `/etc/init.d` service to start, stop, or restart Tomcat, and provides a LWRP to deploy applications to the instance from our Artifactory setup. | |
It all works with one caveat: Tomcat gets restarted every time the chef-client daemon runs, or every 15 minutes in this case. | |
Here is the `default` recipe, which installs Tomcat and sets up the service: | |
# Create a tomcat user | |
user node['tomcat']['tomcat_user'] do | |
comment 'tomcat user' | |
system true |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.hostname = "ome-telecom-creditcard-berkshelf" | |
config.vm.box = "ome-devvm-ubuntu-12.04.4a" | |
config.vm.box_url = "https://tools.ome.ksu.edu/artifacts/devvm/ome-devvm-ubuntu-12.04.4a.box" |
mhn@ome-alpha-vm1:/etc$ sudo chef-client | |
Starting Chef Client, version 11.6.2 | |
resolving cookbooks for run list: ["est-ntp", "est-rsyslog", "est-chef-client", "est-ssh", "est-firewall", "est-mount", "estenv-ome", "est-user::required", "ome_wse_accounts", "est-cis-benchmark", "ome_dev_accounts", "ome_tomcat", "ome_tomcat::properties", "ome_nginx", "ome_telecom_creditcard"] | |
Synchronizing Cookbooks: | |
- ome_nginx | |
- ome_tools | |
- ome_tomcat | |
- ome_telecom_creditcard | |
- ohai | |
- yum |
± gem list ruby-2.1.1 | |
*** LOCAL GEMS *** | |
addressable (2.3.6) | |
berkshelf (3.1.1) | |
berkshelf-api-client (1.2.0) | |
bigdecimal (1.2.4) | |
buff-config (0.4.0) | |
buff-extensions (0.5.0) |
1 # -*- mode: ruby -*-¬ | |
2 # vi: set ft=ruby :¬ | |
3 ¬ | |
4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!¬ | |
5 VAGRANTFILE_API_VERSION = "2"¬ | |
6 ¬ | |
7 Vagrant.require_version ">= 1.5.0"¬ | |
8 ¬ | |
9 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|¬ | |
10 config.vm.hostname = "test-cookbook-berkshelf"¬ |
# assign a prompt color by hashing the letters of the hostname | |
# idea copied from the irssi script 'nickcolor.pl' | |
# Daniel Kertesz <daniel@spatof.org> | |
autoload -U colors | |
colors | |
setopt prompt_subst | |
colnames=( |
I hereby claim:
To claim this, I am signing this object: