Sha256: 03bdbbc18ce6a8675cbd37adc993c095d5aa17ecdbaa0aa906483d5a1be1c9fb
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
Standup.script :node do def run install_package 'postgresql-8.4 libpq-dev' upload script_file('postgresql.conf'), :to => '/etc/postgresql/8.4/main/postgresql.conf', :sudo => true tune_kernel sudo 'service postgresql-8.4 restart' end def tune_kernel sysctl_params = ['kernel.shmmax=134217728', 'kernel.shmall=2097152'] remote_update '/etc/sysctl.conf', sysctl_params.join("\n"), :delimiter => '# standup script postgresql', :sudo => true sysctl_params.each {|p| sudo "sysctl -w #{p}"} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
standup-0.3.7 | scripts/postgresql.rb |
standup-0.3.6 | scripts/postgresql.rb |
standup-0.3.5 | scripts/postgresql.rb |
standup-0.3.4 | scripts/postgresql.rb |