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
{% if servers == empty %} | |
<div style="text-align:center;padding:20px">-no matching servers-</div> | |
{% else %} | |
{% counter total_count = 0 %} | |
{% assign my_table_contents = "" %} | |
{% for s in servers %} | |
{% increment total_count %} | |
{% capture my_server_table_contents %} | |
{{ my_server_table_contents }} | |
<tr> |
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
# monkey patch: right_rackspace currently depends on rails .blank? method. | |
class Object | |
def blank? | |
respond_to?(:empty?) ? empty? : !self | |
end | |
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
#!/bin/bash -e | |
# This script is for controlling OSX v5.7.4 tftpserver | |
case "$1" in | |
'start') | |
launchctl load -F /System/Library/LaunchDaemons/tftp.plist | |
launchctl start com.apple.tftpd | |
echo "tftpserver started..." | |
;; |
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
# Use jiffies and clock independent from hypervisor is recommended by Citrix: http://support.citrix.com/article/CTX128034 | |
echo "jiffies" > /sys/devices/system/clocksource/clocksource0/current_clocksource | |
[ -d /proc/sys/xen ] && echo 1 > /proc/sys/xen/independent_wallclock |
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
config.vm.provision :chef_zero do |chef| | |
chef.verbose_logging = true | |
chef.environment = "vagrant" | |
chef.cookbooks_path = "cookbooks" | |
chef.environments_path = "environments" | |
chef.data_bags_path = "data_bags" | |
chef.roles_path = "roles" | |
chef.nodes_path = "nodes" | |
OlderNewer