Skip to content

Commit be45748

Browse files
committed
Instructions to add Controller to Chef's admin group and note to install avahi-daemon/Bonjour
1 parent 0c0f7ca commit be45748

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

Vagrantfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Vagrant.configure("2") do |config|
1111
# Avahi-daemon will broadcast the server's address as deis-controller.local
1212
config.vm.host_name = "deis-controller"
1313

14-
# IP will be associated to 'chefserver.local' using avahi-daemon
14+
# IP will be associated to 'deis-controller.local' using avahi-daemon
1515
config.vm.network :private_network, ip: "192.168.61.100"
1616

17-
# Chef Server requires at least 1G of RAM to install.
17+
# The Deis Controller requires at least 1G of RAM to install.
1818
# You may be able to run it with less once it's installed.
1919
config.vm.provider :virtualbox do |vb|
2020
vb.customize ["modifyvm", :id, "--memory", "1024"]

contrib/vagrant/README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ them all.
77
1. You'll need VirtualBox >= `4.2.18`. We recommend installing Vagrant with their binary installer from http://downloads.vagrantup.com
88
Vagrant 1.3.5 has support for VirtualBox 4.3
99

10-
2. Firstly you need to decide whether to use your own Chef Server or the free tier of the hosted enterprise
10+
2. Firstly you need to decide whether to use your own Chef Server or the free tier of the hosted enterprise
1111
service from Opscode. The free tier has a limit of 5 nodes which is more then enough for development. Also
1212
bear in mind that a local Chef Server VM will take up at least 1GB of RAM.
1313

@@ -24,6 +24,8 @@ bear in mind that a local Chef Server VM will take up at least 1GB of RAM.
2424
* Click on the 'Administration' tab and choose your organisation. There should be a tab in the sidebar that says
2525
'Starter Kit'. Click it and it will start a small download.
2626
* Inside the Starter Kit there is a '.chef' folder. Copy it to the root of your Deis codebase.
27+
* **NB**: You can also manage your Chef Server through https://manage.opscode.com This is the old
28+
interface and has more features, like being able to add clients to permission groups.
2729

2830
3. Now you can follow the standard deis setup:
2931
```bash
@@ -34,25 +36,28 @@ bear in mind that a local Chef Server VM will take up at least 1GB of RAM.
3436
```
3537

3638
4. Use the provision script to boot the deis controller.
37-
* If you don't already have the deis-node Vagrant box installed (~1GB). This step might take a long time! If for some reason
39+
* If you don't already have the deis-node Vagrant box installed (~1GB). This step might take a long time! If for some reason
3840
you want to manually add it, use:
3941
`vagrant box add deis-node https://s3-us-west-2.amazonaws.com/opdemand/deis-node.box`
4042
* `cd contrib/vagrant && ./provision-controller.sh`
4143
* You will be asked to add the Controller's SSH key to your local SSH server. This will allow the Controller
4244
to run vagrant commands on your machine to bootstrap new nodes.
43-
* If you are using a local Chef Server you will need to tell it that your new controller has permission to create
44-
nodes. Use:
45-
`knife client edit deis-controller`
46-
and your default text editor will launch, you need to set 'admin' to 'true'.
45+
* You need to tell the Chef Server that your new Controller has permission to create
46+
and delete nodes. Use:
47+
* For a local Chef Server just type `knife client edit deis-controller` and your default text
48+
editor will launch, you need to set 'admin' to 'true'.
49+
* For Hosted Chef you need to log into https://manage.opscode.com/ Then goto the Groups tab,
50+
click the 'edit' link on the 'admins' row and then under the 'clients' heading toggle the
51+
'deis-controller' radio button to be enabled. Then confirm the change by saving the group.
4752

4853
5. The Controller needs to be able to run Vagrant commands on your host machine. It does this via SSH. Therefore
49-
you will need a running SSH server open on port 22.
54+
you will need a running SSH server open on port 22 and a means to broadcast your hostname to local DNS.
5055
* On Debian-flavoured Linux you just need to;
5156
`sudo apt-get install openssh-server`
5257
* On Mac OSX you just need to go to **System Preferences -> Sharing** and enable 'Remote Login'.
53-
* **NB** If your machine's IP changes the Controller won't be able to run commands any more. Currently you aren't informed
54-
of this, you just get a 500 error from the client. If you tail `/var/log/deis/celeryd.log` though you'll know. When this
55-
does happen just reupload your IP with `deis providers:discover`.
58+
* [Mac OSX user's should already be broadcasting their hostname](http://support.apple.com/kb/ht3473).
59+
* Linux user's will need to install avahi-daemon, so that their machine is accessible via
60+
[hostname].local. Eg; `sudo apt-get install avahi-daemon`.
5661

5762
6. If you want to hack on the actual codebase, you can mount your local codebase onto the VM
5863
by using the custom Vagrantfile.local.

0 commit comments

Comments
 (0)