This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :stages, %w[staging production] | |
set :application, "Puppet Manifests" | |
set :repository, "git://localhost/puppet.git" | |
set :scm, :git | |
role :web, "puppetmaster" # set this to the fully qualified domain name of your puppetmaster | |
require 'capistrano/ext/multistage' | |
require 'mcollective' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[puppetmasterd] | |
vardir = /var/lib/puppet | |
logdir = /var/log/puppet | |
rundir = /var/run/puppet | |
ssldir = $vardir/ssl | |
modulepath = /usr/share/puppet/configuration/current/manifests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
node_id: "1", // The UID of the node from the Source of Truth | |
hostname: "FQDN OF HOST", // FQDN is preferable to import into other tools | |
primary_ip { | |
address: "192.168.0.1", // secondary IP addresses could be added if needed as an array | |
gateway: "192.168.0.254", // Default Gateway | |
} | |
location: "Amazon AWS", // could be a datacentre or cloud provider etc. | |
region: "45", // could be a physical room or cloud region | |
sub_region: "12", // Rack or similar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tasks: 1049 total, 5 running, 1044 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 0.3%us, 0.6%sy, 0.0%ni, 98.4%id, 0.2%wa, 0.0%hi, 0.5%si, 0.0%st | |
Mem: 24675188k total, 24580872k used, 94316k free, 24080k buffers | |
Swap: 2096472k total, 304k used, 2096168k free, 20993104k cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
6117 root 17 0 7440 1904 428 S 7.5 0.0 113:54.98 dovecot | |
28786 root 16 0 13428 1748 728 R 4.5 0.0 0:00.08 top | |
28790 264864 15 0 6696 1168 800 S 4.5 0.0 0:00.03 pop3 | |
6577 163605 16 0 23044 11m 884 D 3.0 0.0 0:09.44 imap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top - 14:18:08 up 12 days, 2:37, 1 user, load average: 1.28, 1.00, 0.87 | |
Tasks: 1613 total, 2 running, 1611 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 0.2%us, 1.0%sy, 0.0%ni, 97.8%id, 0.0%wa, 0.1%hi, 1.0%si, 0.0%st | |
Mem: 24675188k total, 24541804k used, 133384k free, 302724k buffers | |
Swap: 2096472k total, 0k used, 2096472k free, 20911132k cached | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
22677 522398 16 0 6764 1444 888 R 3.9 0.0 0:22.04 imap | |
10433 284649 15 0 6620 1300 892 S 1.9 0.0 0:08.38 imap | |
28899 383731 15 0 6588 1100 748 S 1.9 0.0 0:00.59 imap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RabbitMQ: http://www.rabbitmq.com/ | |
STOMP: http://stomp.codehaus.org/ | |
AMQP: http://www.amqp.org/ | |
OpenWire: http://www.activemq.org/ | |
Jabber: http://www.jabber.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@mysql ~]# ifconfig net0 192.168.122.211 | |
[root@mysql ~]# ifconfig -a | |
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 | |
inet 127.0.0.1 netmask ff000000 | |
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 | |
inet 192.168.122.211 netmask ffffff00 broadcast 192.168.122.255 | |
ether 2:8:20:e0:91:63 | |
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 | |
inet6 ::1/128 | |
[root@mysql ~]# ping www.google.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# nventory installation script for Amazon Linux | |
MYSQL_CONFIG_DIR="/usr/bin/mysql_config" | |
RAILS_VER="2.3.14" | |
GEMS_VER="1.8.10" | |
NGINX_VER="1.0.8" | |
NV_VERSION="0.86" | |
NV_MYSQL_PASSWORD="password" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filesets = search(:bacula_filesets, "id:*") | |
filesets.each do | fs | | |
default[:bacula][:dir][:filesets][fs.id]["include"] = fs['include'] | |
default[:bacula][:dir][:filesets][fs.id]["exclude"] = fs['exclude'] | |
end | |
========================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Check to see which environment we are in | |
if node.chef_environment == "_default" then | |
text = "\n\n\nENVIRONMENT ERROR\n=================\n\nYou are currently in environment #{node.chef_environment} which does not" | |
text << "\nhave any roles, recipes or attributes associate with it.\n\nPlease update the node to use one of the following environments:\n\n" | |
Chef::Environment.list.each do | name,uri | | |
if name != "_default" | |
text << "\t* #{name}\n" | |
end | |
end |