Skip to content

Commit a961ea3

Browse files
committed
Updated vagrant readme
Added docs about the berkshelf dependency for --ssl-verify and the local chef server hostname.
1 parent 5c2a849 commit a961ea3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

contrib/vagrant/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ bear in mind that a local Chef Server VM will take up at least 1GB of RAM.
1717
* copy the admin.pem and validation.pem files for your own knife client
1818
`scp -r root@chefserver.local:/etc/chef-server/admin.pem [DEIS_DIR]/contrib/vagrant/knife-config/`
1919
`scp -r root@chefserver.local:/etc/chef-server/chef-validator.pem [DEIS_DIR]/contrib/vagrant/knife-config/`
20+
* If you are on a OS X your should `vagrant ssh` into the chef server and set the hostname to `chefserver.local`.
21+
Do this by running:
22+
23+
```
24+
sudo hostname 'chefserver.local'
25+
echo "chefserver.local" | sudo tee /etc/hostname
26+
sudo chef-server-ctl reconfigure
27+
```
2028

2129
**Hosted Chef Server**
2230
* Goto https://getchef.opscode.com/signup and fill in your details.
@@ -28,12 +36,14 @@ bear in mind that a local Chef Server VM will take up at least 1GB of RAM.
2836
interface and has more features, like being able to add clients to permission groups.
2937

3038
3. Now you can follow the standard deis setup:
39+
* If your running a local chef server you should adjust the `Gemfile` and make sure the version of berkshelf is 3.0.x. This is needed for the `--ssl-verify=false` to work correctly.
3140
```bash
3241
bundle install # Installs gem files like the knife tool
3342
berks install # Downloads the relevant cookbooks
3443
# '--ssl-verify' is only needed when using a local Chef Server
3544
berks upload [--ssl-verify=false] # Upload the cookbooks to the Chef Server
3645
```
46+
3747

3848
4. The Controller needs to be able to run Vagrant commands on your host machine. It does this via SSH. Therefore
3949
you will need a running SSH server open on port 22 and a means to broadcast your hostname to local DNS.

0 commit comments

Comments
 (0)