Skip to content

Commit 3fb1c1d

Browse files
committed
updated README
1 parent b0a2faf commit 3fb1c1d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# chef-server
22

3-
chef-server will run Chef Server 12 in an Ubuntu Trusty 14.04 LTS container.<br>
3+
chef-server will run Chef Server 12 in an Ubuntu Trusty 14.04 LTS container.
44
Image Size: 1.124 GB
55

66
This is a fork of: [base/chef-server](https://registry.hub.docker.com/u/base/chef-server/).
@@ -20,10 +20,10 @@ $ docker run --privileged -e CHEF_PORT=443 --name chef-server -d -p 443:443 cbui
2020
```
2121
$ docker run --privileged -e CHEF_PORT=443 --name chef-server -d -v ~/chef-logs:/var/log -v ~/install-chef-out:/root -p 443:443 cbuisson/chef-server
2222
```
23-
<br>
23+
2424
**Note:** By default `chef-server-ctl reconfigure` will create SSL certificates based on the container's FQDN (i.e "103d6875c1c5" which is its "CONTAINER ID"), I have changed that behiavior to always have a SSL certificate file named "chef-server.crt". You can change the certificate name by adding `-e CONTAINER_NAME=new_name` to the `docker run` command. Remember to reflect that change in config.rb!
2525

26-
'chef-server' or $CONTAINER_NAME **need to be resolvable by hostname!**
26+
'chef-server' or $CONTAINER_NAME **need to be DNS resolvable!**
2727

2828
## Setup knife
2929

@@ -51,7 +51,7 @@ chef_server_url 'https://chef-server:$CHEF_PORT/organizations/my_org'
5151
When the config.rb file is ready, you will need to get the SSL certificate file from the container to access Chef Server:
5252

5353
```bash
54-
cbuisson@t530:~/.chef# knife ssl fetch
54+
cbuisson@server:~/.chef# knife ssl fetch
5555
WARNING: Certificates from chef-server will be fetched and placed in your trusted_cert
5656
directory (/home/cbuisson/.chef/trusted_certs).
5757

@@ -63,15 +63,15 @@ Adding certificate for chef-server in /home/cbuisson/.chef/trusted_certs/chef-se
6363
6464
You should now be able to use the knife command!
6565
```bash
66-
cbuisson@t530:~# knife user list
66+
cbuisson@server:~# knife user list
6767
admin
6868
```
6969
**Done!**
7070
7171
##### Note
72-
Chef-Server running inside a container isn't officially supported by [Chef](https://www.chef.io/about/) and as a result the webui isn't available.<br>
73-
However the webui is not a required since you can interact with Chef-Server with the `knife` and `chef-server-ctl` commands.
72+
Chef-Server running inside a container isn't officially supported by [Chef](https://www.chef.io/about/) and as a result the webui isn't available.
73+
However the webui is not required since you can interact with Chef-Server via the `knife` and `chef-server-ctl` commands.
7474
7575
##### Tags
76-
v1.0: Chef Server 11<br>
76+
v1.0: Chef Server 11
7777
v2.X: Chef Server 12

0 commit comments

Comments
 (0)