Permalink
Browse files

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
1 parent cd793af commit 432d6e2d045b5cf6a786b0972b85e09edf835f85 Gun.io Whitespace Robot committed Dec 19, 2011
@@ -59,7 +59,7 @@ denied_hosts_6=
# to your cache machine with '/apt-cacher/report' on the end, like this:
# http://yourcache.example.com/apt-cacher/report
# Generating reports is very fast even with many thousands of logfile
-# lines, so you can safely turn this on without creating much
+# lines, so you can safely turn this on without creating much
# additional system load.
generate_reports=1
@@ -40,11 +40,11 @@ backends = http://security.ubuntu.com/ubuntu
[debian]
;; Backend servers, in order of preference
-backends =
+backends =
http://debian.osuosl.org/debian/
[security]
;; Debian security archive
-backends =
+backends =
http://security.debian.org/debian-security
http://ftp2.de.debian.org/debian-security
View
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-package "apt-proxy" do
+package "apt-proxy" do
action :install
end
@@ -49,4 +49,4 @@
execute "ensure correct permissions on CouchDB data" do
command "chown -R couchdb:couchdb #{node[:couchdb][:datadir]}"
-end
+end
@@ -26,7 +26,7 @@
next unless instanceRoles.include?('easybibsolr')
Chef::Log.debug('deploy::easybib - Setting deploy for RESEARCH IMPORTERS')
-
+
deploy[:deploy_to] = "/solr/research_importers"
deploy[:restart_command] = ""
@@ -66,7 +66,7 @@
end
Chef::Log.debug("deploy::easybib - ABOUT TO DEPLOY FOR REALZ")
-
+
# we survived until here - so we are good to actually checkout and deploy
# done for every app
@@ -128,7 +128,7 @@
if deploy[:restart_command].any?
restart_command "sleep #{deploy[:sleep_before_restart]} && #{deploy[:restart_command]}"
end
-
+
end
ruby_block "change HOME back to /root after source checkout" do
@@ -68,7 +68,7 @@ $elb_version = "2009-05-15";
]],
["ec2", "cancel-spot-instance-requests cancel csir", CancelSpotInstanceRequests, [
["", SpotInstanceRequestIdN],
- ]],
+ ]],
["ec2", "confirm-product-instance", ConfirmProductInstance, [
["", ProductCode],
["i", InstanceId],
@@ -85,7 +85,7 @@ $elb_version = "2009-05-15";
["end", EndTime],
["instance-type", InstanceType, "m1.small"],
["description", ProductDescription, "Linux/UNIX"],
- ]],
+ ]],
["ec2", "create-volume cvol", CreateVolume, [
["size", Size],
["zone", AvailabilityZone],
@@ -489,7 +489,7 @@ if (!-e "$home/.awsrc" || $sanity_check)
elsif ($isUnix)
{
my $stat = (stat $secrets_file)[2] & 0777;
-
+
if (($stat & 0477) != 0400)
{
my @perm = (qw(x r w)) x 4;
@@ -590,7 +590,7 @@ if (exists $ENV{QUERY_STRING} || $sign)
if ($install)
{
die "Usage: .../aws --install\n" if $install && @argv;
-
+
if (-w "/usr/bin")
{
chomp(my $dir = qx[pwd]);
@@ -1701,7 +1701,7 @@ sub load_file_silent
<$io>;
}
-sub guess_is_unix
+sub guess_is_unix
{
return 1 if $ENV{OS} =~ /windows/i && $ENV{OSTYPE} =~ /cygwin/i;
return 1 if $ENV{OS} !~ /windows/i;
@@ -1861,8 +1861,8 @@ sub sha1_sha1
#constants [4.2.1]
my @K = (0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6);
- # PREPROCESSING
-
+ # PREPROCESSING
+
$msg .= pack(C, 0x80); # add trailing '1' bit to string [5.1.1]
# convert string msg into 512-bit/16-integer blocks arrays of ints [5.2.1]
View
@@ -19,7 +19,7 @@ This cookbook primarily installs git core packages. It can also be used to serve
This creates the directory /srv/git and starts a git daemon, exporting all repositories found. Repositories need to be added manually, but will be available once they are created.
= LICENSE and AUTHOR:
-
+
Author:: Joshua Timberman (<joshua@opscode.com>)
Copyright:: 2009, Opscode, Inc
View
@@ -19,6 +19,6 @@
case node[:platform]
when "debian", "ubuntu"
package "git-core"
-else
+else
package "git"
end
@@ -1,3 +1,3 @@
#!/bin/sh
exec 2>&1
-exec /usr/bin/git daemon --export-all --user=nobody --group=daemon --base-path=/srv/git /srv/git
+exec /usr/bin/git daemon --export-all --user=nobody --group=daemon --base-path=/srv/git /srv/git
@@ -57,7 +57,7 @@ listen application <%= haproxy_host %>:<%= haproxy_port %>
server localhost 127.0.0.1:8080 weight 1 maxconn 5 check
<% end -%>
-<% if !node[:scalarium][:roles][:nginxphpapp][:instances].empty? -%>
+<% if !node[:scalarium][:roles][:nginxphpapp][:instances].empty? -%>
backend php_app_servers
balance roundrobin
option redispatch
@@ -71,7 +71,7 @@ backend php_app_servers
frontend http-in
bind <%= haproxy_host %>:<%= haproxy_port %>
-
+
# all domains of PHP applications
<% node[:haproxy][:php_applications].each do |app_name, app_config| -%>
<% app_config['domains'].each do |domain| -%>
@@ -81,7 +81,7 @@ frontend http-in
<% end -%>
<% end -%>
<% end -%>
-
+
<% unless node[:haproxy][:php_applications].empty? || node[:scalarium][:roles][:nginxphpapp][:instances].empty? -%>
<% node[:haproxy][:php_applications].each do |app_name, app_config| -%>
<% app_config['domains'].each do |domain| -%>
@@ -93,26 +93,26 @@ frontend http-in
<% end -%>
<% end -%>
<% end -%>
-
+
<% if !node[:scalarium][:roles][:nginxphpapp][:instances].empty? -%>
default_backend php_app_servers
<% end -%>
-
+
#frontend https-in
# mode tcp
# bind :443
-
+
# all domains of PHP applications
# <% node[:haproxy][:php_applications].each do |app_name, app_config| -%>
# <% app_config['domains'].each do |domain| -%>
# acl php_applications_ssl hdr_end(host) -i <%= domain %>
# <% end -%>
# <% end -%>
-
+
# <% unless node[:haproxy][:php_applications].empty? || node[:scalarium][:roles][:nginxphpapp][:instances].empty? -%>
# use_backend php_app_servers_ssl if php_applications_ssl
# <% end -%>
-
+
# <% if !node[:scalarium][:roles][:nginxphpapp][:instances].empty? -%>
# default_backend php_app_servers_ssl
# <% end -%>
View
@@ -1,14 +1,14 @@
= DESCRIPTION:
-Jenkins CI
+Jenkins CI
This cookbook based on the hudson package by Ben Mabey <ben@benmabey.com>
= REQUIREMENTS:
This recipe currenly only works with Ubuntu.
-= ATTRIBUTES:
+= ATTRIBUTES:
= USAGE:
@@ -1,16 +1,16 @@
set_unless[:jenkins][:port] = 8080
set_unless[:jenkins][:domain] = "jenkins.codebox"
set_unless[:jenkins][:git_user_name] = "jenkins"
-set_unless[:jenkins][:plugins] = {"checkstyle" => "latest",
- "clover" => "latest",
- "dry" => "latest",
+set_unless[:jenkins][:plugins] = {"checkstyle" => "latest",
+ "clover" => "latest",
+ "dry" => "latest",
"htmlpublisher" => "latest",
- "jdepend" => "latest",
- "plot" => "latest",
- "pmd" => "latest",
- "violations" => "latest",
+ "jdepend" => "latest",
+ "plot" => "latest",
+ "pmd" => "latest",
+ "violations" => "latest",
"xunit" => "latest",
- "git" => "latest",
+ "git" => "latest",
"github" => "latest"}
set_unless[:jenkins][:apt_repository] = "jenkins-ci"
@@ -26,7 +26,7 @@
"PHPDocumentor",
"PHP_CodeSniffer",
"--alldeps phpunit/PHP_CodeBrowser",
- "--alldeps phpunit/PHPUnit",
+ "--alldeps phpunit/PHPUnit",
"Mail", "Mail_Mime", "DB", "MDB2", #for mail_queue
"--force Net_URL2", #for http_request2
]
@@ -26,7 +26,7 @@
source "http://updates.jenkins-ci.org/latest/#{plugin_name}.hpi"
else
source "http://updates.jenkins-ci.org/download/plugins/#{plugin_name}/#{version}/#{plugin_name}.hpi"
- end
+ end
end
end
@@ -1,4 +1,4 @@
-require_recipe "apt"
+require_recipe "apt"
require_recipe "git"
user "jenkins" do
View
@@ -10,7 +10,7 @@
supports :status => true, :restart => true, :reload => true
action [ :restart ]
end
-
+
cookbook_file "/usr/local/bin/deviceid" do
source "deviceid"
mode "0755"
View
@@ -8,7 +8,7 @@ Membase is a distributed key-value database management system, optimized for sto
This recipe currenly only works with Ubuntu.
-= ATTRIBUTES:
+= ATTRIBUTES:
= USAGE:
View
@@ -1,12 +1,12 @@
-require_recipe "apt"
+require_recipe "apt"
case node.platform
when "ubuntu"
membasever = node[:membase][:ver]
architecture = node[:membase][:arch]
package "sqlite3"
-
+
remote_file "/tmp/membase-server-community_#{architecture}_#{membasever}.deb" do
source "#{node[:membase][:download]}"
mode "0644"
@@ -18,26 +18,26 @@
command "dpkg -i /tmp/membase-server-community_#{architecture}_#{membasever}.deb"
not_if "test -f /opt/membase/#{membasever}/bin/membase"
end
-
+
service "membase-server" do
supports :status => true, :restart => true, :start => true, :stop => true
status_command "/etc/init.d/membase-server status | grep 'membase is running'"
action :restart
end
-
+
execute "membase-server init script rocks and is totally awesome, so lets sit here and watch it a litte bit longer" do
#stupid piece of .. - the membase-script exists too early, while membase not fully running
#so a cluster init directly as next step would lead to a connection refused error
#lovin' it.
command "sleep 5"
end
-
+
execute "Cluster Init" do
command "/opt/membase/#{membasever}/bin/cli/membase cluster-init --cluster=localhost --cluster-init-username=#{node[:membase][:adminuser]} --cluster-init-password=#{node[:membase][:adminpassword]} --cluster-init-ramsize=#{node[:membase][:clustersize]}"
end
-
+
execute "Bucket Create" do
command "/opt/membase/#{membasever}/bin/cli/membase bucket-create --user=#{node[:membase][:adminuser]} --password=#{node[:membase][:adminpassword]} --cluster=localhost --bucket=#{node[:membase][:bucketname]} --bucket-type=membase --bucket-ramsize=#{node[:membase][:bucketsize]} --bucket-port=11222 --bucket-replica=1"
end
-
+
end
@@ -12,7 +12,7 @@ group root
ignore_file ~$
#ignore_file [#~]$ # FIX doesn't work. '#' starts a comment
-ignore_file DEADJOE$
+ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
@@ -28,8 +28,8 @@ curhash=curhash.replace(/\#catsection\-/,'');
if (children[i].nodeName.toLowerCase() == 'fieldset') {
function g_seci() {for (ii=0;ii<children[i].childNodes.length;ii++){
if (children[i].childNodes[ii].className=="graphbox") return children[i].childNodes[ii].id;
- }
- }
+ }
+ }
seci=g_seci();
if (sec_0=='') {sec_0=seci;}
children[i].id = seci;
Oops, something went wrong.

0 comments on commit 432d6e2

Please sign in to comment.