Skip to content

Commit 4e79646

Browse files
shredder12mboersma
authored andcommitted
Added detailed steps to add deis-controller to admin group
Updated documentation for provisioning controller. Added steps describing the addition of 'deis-controller' user to admin group for both - Hosted Chef and Open Source Chef Server. Signed-off-by: Shashank Sahni <shredder12@gmail.com>
1 parent 738da5a commit 4e79646

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/operations/provision-controller.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,35 @@ Add Controller to Admins Group
7474
Whether you used automatic or manual provisioning,
7575
you must add "deis-controller" to the "admins" group on the Chef Server.
7676

77+
Hosted Chef
78+
~~~~~~~~~~~
79+
Users using Hosted Chef can perform these `steps` to add deis-controller to admin group.
80+
81+
Open Source Chef
82+
~~~~~~~~~~~~~~~~
83+
84+
For opensource chef one can use knife cli tool. First, set the EDITOR environment variable to your favourite text editor.
85+
86+
``$ export EDITOR=vim``
87+
88+
Now issue the command to edit ``deis-controller`` user.
89+
90+
``$ knife client edit deis-controller``
91+
92+
and update the 'admin' key to 'true'. The updated content should look similar to this.
93+
94+
.. code-block:: console
95+
96+
{
97+
"name": "deis-controller",
98+
"public_key": "-----BEGIN PUBLIC KEY-----\nMaaBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwzKA3YNTw0qD8hcPiJpT\naYSpJI0sQF4u6/WpE4HAlGRHpjpoG/QwtuA4sosW+ebNXDbxKhDoQxsHnz97jDuZ\n4nvnTdaJRGygXABEkuUG68cV7asdGzn76bRT3GNa4LD+ekqJON7nCA/K8V3AZ1P4\nWfnPc/RfmK3InQC92w1xsX2hpZ/qzeL3Y+jxaJ7SnGgm9Q5O7PnDObNW4exzo6936\nkZFCdmQIdVfy4sGASc8ep6NW8ZHuej8vcCdFKJut9QV3S8kDl1XF2sG2DV4qMbC/\nalFRnZUy0TckSgm3fiqfi89u2bbSlfzrTHv2NU9xaYDv7QQpFoZ62PKG9SdJ9R5G\nUwIDAQAB\n-----END PUBLIC KEY-----\n",
99+
"admin": true,
100+
"json_class": "Chef::ApiClient",
101+
"chef_type": "client"
102+
}
103+
104+
Save and close the file. The user is now in admin group.
105+
77106
If you skip this step, you will receive errors when scaling down nodes as the
78107
controller will not have permissions to delete "client" and "node" records from the Chef Server.
79108

@@ -82,4 +111,5 @@ controller will not have permissions to delete "client" and "node" records from
82111
.. _`Digital Ocean`: https://github.com/opdemand/deis/tree/master/contrib/digitalocean#readme
83112
.. _`add the controller to the admins group`: #add-controller-to-admins-group
84113
.. _`knife`: http://docs.opscode.com/knife.html
114+
.. _`steps`: http://docs.opscode.com/manage_server_hosted_groups.html#add-user-to-group
85115

0 commit comments

Comments
 (0)