Commit 9707570a authored by ogom's avatar ogom

Fix aws_vagrant.md to doc

parent c36aad18
......@@ -20,18 +20,15 @@ vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.
git clone https://gitlab.com/gitlab-org/cookbook-gitlab.git ./gitlab
cd ./gitlab/
cp ./example/Vagrantfile_aws ./Vagrantfile
editor ./Vagrantfile
```
Fill in the AWS credentials under the aws section in Vagrantfile and then run:
```bash
vagrant up --provider=aws --provision
```
HostName setting:
```bash
vagrant ssh-config | awk '/HostName/ {print $2}'
editor ./Vagrantfile
vagrant up --provider=aws
eval $(vagrant ssh-config | awk '/HostName/ {print "HostName=" $2}')
sed -i.bak "s/example.com/$HostName/g" Vagrantfile
sed -i.bak 's/chef.run_list = \[\]/chef.run_list = \["gitlab::default"\]/g' Vagrantfile
vagrant provision
```
......
......@@ -19,35 +19,14 @@ Vagrant.configure("2") do |config|
override.ssh.private_key_path = "~/.ssh/vagrant_aws.pem"
end
config.omnibus.chef_version = :latest
config.omnibus.chef_version = "11.4.4"
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.json = {
:postfix => {
:mail_type => "client",
:myhostname => "mail.example.com",
:mydomain => "example.com",
:myorigin => "mail.example.com",
:smtp_use_tls => "no"
},
:postgresql => {
:password => {
:postgres => "psqlpass"
}
},
:mysql => {
:server_root_password => "rootpass",
:server_repl_password => "replpass",
:server_debian_password => "debianpass"
},
:gitlab => {
:host => "example.com",
:url => "http://example.com/",
:email_from => "gitlab@example.com",
:support_email => "support@example.com",
:database_adapter => "postgresql",
:database_password => "datapass"
:url => "http://example.com/"
}
}
chef.run_list = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment