server/rakefile.rb in pauldowman-ec2onrails-0.9.10.0 vs server/rakefile.rb in pauldowman-ec2onrails-0.9.10.1
- old
+ new
@@ -47,10 +47,12 @@
less
libmysqlclient-dev
libmysql-ruby
libpcre3-dev
libssl-dev
+ libxml2-dev
+ libxslt1-dev
libyaml-ruby
libzlib-ruby
logrotate
make
mailx
@@ -65,10 +67,11 @@
rsync
ruby-full
subversion
sysstat
unzip
+ varnish
vim
wget
xfsprogs
)
@@ -157,11 +160,10 @@
fair_bal_img = "http://github.com/gnosek/nginx-upstream-fair/tarball/master"
src_dir = "/tmp/src/nginx"
# Make sure the dir is created but empty...lets start afresh
run_chroot "mkdir -p -m 755 #{src_dir}/ && rm -rf #{src_dir}/*"
run_chroot "sh -c 'cd #{src_dir} && wget -q #{nginx_img} && tar -xzf #{nginx_tar}'"
-
run_chroot "sh -c 'cd #{src_dir}/#{nginx_version} && \
./configure \
--sbin-path=/usr/sbin \
--conf-path=/etc/nginx/nginx.conf \
--pid-path=/var/run/nginx.pid \
@@ -200,19 +202,21 @@
# Create symlinks to run scripts on startup
run_chroot "update-rc.d ec2-first-startup start 91 S ."
run_chroot "update-rc.d ec2-every-startup start 92 S ."
# Disable the services that will be managed by god, depending on the roles
- %w(nginx mysql memcached).each do |service|
+ %w(nginx mysql memcached varnish).each do |service|
run_chroot "update-rc.d -f #{service} remove"
run_chroot "update-rc.d #{service} stop 20 2 3 4 5 ."
end
# God is started by upstart so that it will be restarted automatically if it dies,
# see /etc/event.d/god
# Create the mail aliases db
run_chroot "postalias /etc/aliases"
+
+ run_chroot "chmod 0440 /etc/sudoers"
end
end
desc "This task is for deploying the contents of /files to a running server image to test config file changes without rebuilding."
task :deploy_files do |t|
\ No newline at end of file