create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
$ grep 'node\[:network\]\[:interfaces\].' \#chef.log | |
10:15 < mkent_> node[:network][:interfaces][:eth1][:addresses] | |
22:24 <+Damm> msf, just pulling in the node[:network][:interfaces] attributes | |
20:44 < randybias> node[:network][:interfaces][:eth0][:addresses] | |
09:13 < sinBot> so fujin if I wanted to use that in an erb template, it'd be <%= @node[:network][:interfaces]["en1"]["addresses"].select{address}.flatten.to_str %> ? | |
12:27 < cwj> if i have an ipv4 ip address set on eth0, will it always be in @node[:network][:interfaces][:eth0][1] ? | |
02:19 < pluesch0r> however, i don't seem to be able to access @node[:network][:interfaces]... from inside the attributes file. | |
19:52 <@jtimberman> or node[:network][:interfaces][:eth0][:addresses][0] | |
20:09 < seryl> well, it's searchable. I'm trying the @node[:network][:interfaces][:eth0][:addresses][0] route, but getting blanks right now, playing around with it in chef solo | |
20:29 < kallistec> pp node[:network][:interfaces].current_attribute |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
#!/bin/bash | |
#---------------------------------------# | |
# Python 2.7.3 Install on CentOS 5 # | |
# https://gist.github.com/timss/5122008 # | |
# # | |
# Installs to /usr/local/{bin,lib} # | |
# Seperate from system default # | |
# /usr/bin/python(2.4) # | |
#---------------------------------------# |
#!/bin/bash | |
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
# Install stuff # | |
################# | |
# Install development tools and some misc. necessary packages | |
yum -y groupinstall "Development tools" | |
yum -y install zlib-devel # gen'l reqs |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = "Adrien Pujol - http://www.crashdump.fr/" | |
__copyright__ = "Copyright 2013, Adrien Pujol" | |
__license__ = "Mozilla Public License" | |
__version__ = "0.3" | |
__email__ = "adrien.pujol@crashdump.fr" | |
__status__ = "Development" | |
__doc__ = "Check a TLS certificate validity." |
Let's say alice
is a github.com user, with 2 or more private repositories repoN
.
For this example we'll work with just two repositories named repo1
and repo2
https://github.com/alice/repo1
https://github.com/alice/repo2
You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.
snippet azure | |
azure: | |
name=${1} | |
location=${2} | |
subscription_id=${3} | |
management_cert_path=${4} | |
storage_account=${5} | |
image=${6} | |
role_size=${7} | |
endpoints=${8} |
chef-server-ctl stop | |
chef-server-ctl kill | |
chef-server-ctl cleanse | |
chef-server-ctl uninstall | |
pkill -9 -u opscode | |
pkill -9 -f postgres | |
pkill -9 -f beam | |
pkill -9 -f /opt/chef | |
rm -rf /etc/opscode /etc/chef /opt/opscode /opt/chef /var/chef | |
rm -rf /etc/chef-server /etc/chef /opt/chef-server /opt/chef /root/.chef /var/opt/chef-server |
#!/bin/bash | |
# Interpret whether the input needs to go to ansible, or ansible-playbook and run appropriately | |
# First update the git repos for each project | |
/usr/bin/update-git-repos | |
export ANSIBLE_FORCE_COLOR=1 | |
export ANSIBLE_RETRY_FILES_ENABLED=False |
TTL=300 | |
HOSTED_ZONE_ID= | |
REVERSE_HOSTED_ZONE_ID= | |
INSTANCE_ID= | |
REGION= |