Skip to content

Commit 1b8af22

Browse files
author
Thijs Scheepers
committed
Set hostname of chefserver in provisioning
1 parent 3c5178a commit 1b8af22

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

contrib/vagrant/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ 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-
```
2820

2921
**Hosted Chef Server**
3022
* Goto https://getchef.opscode.com/signup and fill in your details.

contrib/vagrant/chef-server/Vagrantfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Vagrant.configure("2") do |config|
2727
sudo aptitude install avahi-daemon avahi-discover libnss-mdns -y
2828
sudo wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.8-1.ubuntu.12.04_amd64.deb
2929
sudo dpkg -i chef-server_11.0.8-1.ubuntu.12.04_amd64.deb
30+
sudo hostname 'chefserver.local'
31+
echo "chefserver.local" | sudo tee /etc/hostname
3032
sudo chef-server-ctl reconfigure
3133
sudo chef-server-ctl test # Optional
3234
fi

0 commit comments

Comments
 (0)