Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Aug 28, 2013
1 parent 94aba76 commit 1310184
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ analysis utilities, and plug-in features that database engineers often
require. Some (like `pgbench`) are executable. Others (like
`pg_buffercache`) would need to be installed into the database.

Also installs any contrib module extensions defined in the
Also installs any contrib module extensions defined in the
`node['postgresql']['contrib']['extensions']` attribute. These will be
available in any subsequently created databases in the cluster, because
they will be installed into the `template1` database using the
Expand Down
4 changes: 2 additions & 2 deletions libraries/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def locale_date_order
return 'mdy'
end
end

#######
# Timezone Configuration
require 'find'
Expand Down Expand Up @@ -275,7 +275,7 @@ def select_default_timezone(tzdir)

system_timezone = nil

# Check TZ environment variable
# Check TZ environment variable
tzname = ENV['TZ']
if !tzname.nil? && !tzname.empty? && validate_zone(tzname)
system_timezone = tzname
Expand Down
6 changes: 3 additions & 3 deletions recipes/config_initdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
# etc. through these node.default['postgresql']['config'] attributes:
#
# - Where to Log -
# * log_destination = 'stderr'
# * log_directory = 'pg_log'
# * log_destination = 'stderr'
# * log_directory = 'pg_log'
# * log_filename = 'postgresql-%a.log'
# (Default was: postgresql-%Y-%m-%d_%H%M%S.log)
# * logging_collector = true # on
# (Turned on to capture stderr logging and redirect into log files)
# (Default was: false # off)
# * log_rotation_age = 1d
# * log_rotation_age = 1d
# * log_rotation_size = 0
# (Default was: 10MB)
# * log_truncate_on_rotation = true # on
Expand Down
8 changes: 4 additions & 4 deletions recipes/config_pgtune.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
}.fetch(db_type)

node.default['postgresql']['config']['effective_cache_size'] = binaryround(effective_cache_size*1024*1024)

# (4) work_mem
# Sets the maximum memory to be used for query workspaces.
work_mem =
Expand Down Expand Up @@ -239,7 +239,7 @@
}.fetch(db_type)

node.default['postgresql']['config']['checkpoint_segments'] = checkpoint_segments

# (7) checkpoint_completion_target
# Time spent flushing dirty buffers during checkpoint, as fraction
# of checkpoint interval.
Expand All @@ -252,7 +252,7 @@
}.fetch(db_type)

node.default['postgresql']['config']['checkpoint_completion_target'] = checkpoint_completion_target

# (8) wal_buffers
# Sets the number of disk-page buffers in shared memory for WAL.
# Starting with 9.1, wal_buffers will auto-tune if set to the -1 default.
Expand All @@ -264,7 +264,7 @@
else
node.default['postgresql']['config']['wal_buffers'] = "-1"
end

# (9) default_statistics_target
# Sets the default statistics target. This applies to table columns
# that have not had a column-specific target set via
Expand Down
2 changes: 1 addition & 1 deletion recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# it should actually install a password (as opposed to disable password
# login for user 'postgres'). However, a random password wouldn't be
# useful if it weren't saved as clear text in Chef Server for later
# retrieval.
# retrieval.
node.set_unless['postgresql']['password']['postgres'] = secure_password
node.save
end
Expand Down
2 changes: 1 addition & 1 deletion templates/default/pgsql.sysconfig.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PGDATA=<%= node['postgresql']['dir'] %>
<% if node['postgresql']['config'].attribute?("port") -%>
PGPORT=<%= node['postgresql']['config']['port'] %>
<% end -%>
<% end -%>

0 comments on commit 1310184

Please sign in to comment.