Skip to content
Browse files

Use short host names; right perm on id_rsa

  • Loading branch information...
1 parent f820ed8 commit c7598c89db6f313c7068cbe6105cee6e05b603db @jgn jgn committed Apr 12, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 Vagrantfile
  2. +1 −0 pg-ms-setup/setup-generic-2
View
4 Vagrantfile
@@ -2,13 +2,13 @@ Vagrant::Config.run do |config|
config.vm.define :master do |master|
master.vm.box = "lucid64"
master.vm.customize ["modifyvm", :id, "--memory", "384"]
- master.vm.host_name = "master.vagrant.icisapp.com"
+ master.vm.host_name = "master"
master.vm.network :hostonly, "33.33.33.12"
end
config.vm.define :slave do |slave|
slave.vm.box = "lucid64"
slave.vm.customize ["modifyvm", :id, "--memory", "384"]
- slave.vm.host_name = "slave.vagrant.icisapp.com"
+ slave.vm.host_name = "slave"
slave.vm.network :hostonly, "33.33.33.13"
end
end
View
1 pg-ms-setup/setup-generic-2
@@ -11,4 +11,5 @@ sudo mkdir -p /var/lib/postgresql/.ssh
sudo cp /tmp/pg-ms-setup/ssh/id_rsa /var/lib/postgresql/.ssh
sudo cp /tmp/pg-ms-setup/ssh/id_rsa.pub /var/lib/postgresql/.ssh/authorized_keys
sudo chown -R postgres:postgres /var/lib/postgresql/.ssh
+sudo chmod go-r /var/lib/postgresql/.ssh/id_rsa
sudo chmod go-w /var/lib/postgresql/.ssh /var/lib/postgresql/.ssh/authorized_keys

0 comments on commit c7598c8

Please sign in to comment.
Something went wrong with that request. Please try again.