Aphrael 用サーバのセットアップスクリプト。
- Virtualbox
- Vagrant
$ cd $TEST_SERVER_VAGRANT_ROOT
$ git clone https://github.com/aphrael/aphrael-setups.git
$ cd aphrael-setups
$ vagrant up
$ cd $TEST_SERVER_VAGRANT_ROOT/aphrael-setups
$ bundle install
$ scp ~/.ssh/id_dsa.pub [email protected]:~/
$ vagrant ssh
vagrant@precise64:~$ cat id_dsa.pub >> ./ssh/authorized_keys
vagrant@precise64:~$ sudo apt-get install curl
vagrant@precise64:~$ exit
$ bundle exec rake chef:bootstrap to=test
$ bundle exec rake chef:solo to=test
# config/chef.private.rb
set :common_password, 'SECRET_PASSWORD'
set :private_options, {
postfixadmin: {
setup_password: '1111111111111111111111:111111111111111111111111111111'
}
}
- smbfs
- /home/vmail
- Add vmail(id:150)/mail(gid:8) user