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
%define ver 0.8.2 | |
%define rel 1 | |
%define jobs 2 | |
Name: nodejs | |
Version: %{ver} | |
Release: %{rel} | |
Summary: Node's goal is to provide an easy way to build scalable network programs. | |
Group: Applications/Internet | |
License: Copyright Joyent, Inc. and other Node contributors. |
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
libraries/restorecon.rb | |
def restorecon_cmd(path) | |
%Q(restorecon "#{path}") | |
end | |
# restores selinux label for path | |
def restorecon(path) | |
execute restorecon_cmd(path) do | |
action :nothing |
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
import re | |
def strip_margin(text): | |
return re.sub('\n[ \t]*\|', '\n', text) | |
def strip_heredoc(text): | |
indent = len(min(re.findall('\n[ \t]*(?=\S)', text) or [''])) | |
pattern = r'\n[ \t]{%d}' % (indent - 1) | |
return re.sub(pattern, '\n', text) |
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-server 2012-04-18 16:17:39.168100001 +0900 | |
+++ rabbitmq-server 2012-04-18 16:17:13.304100001 +0900 | |
@@ -102,7 +102,7 @@ | |
exec erl \ | |
${RABBITMQ_EBIN_PATH} \ | |
${RABBITMQ_START_RABBIT} \ | |
- -sname ${RABBITMQ_NODENAME} \ | |
+ -name ${RABBITMQ_NODENAME} \ | |
-boot ${RABBITMQ_BOOT_FILE} \ | |
${RABBITMQ_CONFIG_ARG} \ |
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
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
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
# Source accepts http/https or the protocol region:// with the host as the bucket | |
# access_key_id and secret_access_key are just that | |
# Note resource name has changed from s3_file to s3_aware_remote_file | |
# for the eu-west-1 region: | |
s3_aware_remote_file "/var/bulk/the_file.tar.gz" do | |
source "s3-eu-west-1://your.bucket/the_file.tar.gz" | |
access_key_id your_key | |
secret_access_key your_secret | |
owner "root" |
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
# Source accepts the protocol region:// with the host as the bucket | |
# access_key_id and secret_access_key are just that | |
# for the eu-west-1 region: | |
s3_file "/var/bulk/the_file.tar.gz" do | |
source "s3-eu-west-1://your.bucket/the_file.tar.gz" | |
access_key_id your_key | |
secret_access_key your_secret | |
owner "root" | |
group "root" |