You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: docs/operations/provision-controller.rst
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,35 @@ Add Controller to Admins Group
74
74
Whether you used automatic or manual provisioning,
75
75
you must add "deis-controller" to the "admins" group on the Chef Server.
76
76
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
+
77
106
If you skip this step, you will receive errors when scaling down nodes as the
78
107
controller will not have permissions to delete "client" and "node" records from the Chef Server.
79
108
@@ -82,4 +111,5 @@ controller will not have permissions to delete "client" and "node" records from
0 commit comments