Skip to content

Commit 4982f00

Browse files
authored
Add/Update UserData / Update SSH Keys / Add LDAP Note (#495)
1 parent 1578b1e commit 4982f00

File tree

3 files changed

+69
-10
lines changed

3 files changed

+69
-10
lines changed

source/adminguide/accounts.rst

+2
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ OpenLDAP)
532532
- `uniquemember`
533533
- Attribute for uniquemembers within a group.
534534

535+
.. note:: ``ldap.search.group.principle`` is required when using ``linkaccounttoldap``.
535536

536537
Once configured, on Add Account page, you will see an "Add LDAP Account" button which opens a dialog and the selected Users can be imported.
537538

@@ -550,6 +551,7 @@ directly in CloudStack.
550551

551552

552553

554+
.. note:: this is required when using ``linkaccounttoldap``.
553555

554556
LDAP SSL:
555557
~~~~~~~~~

source/adminguide/virtual_machines.rst

+34-6
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,25 @@ Create an Instance Template that supports SSH Keys.
12641264
Creating the SSH Keypair
12651265
------------------------
12661266

1267-
You must make a call to the createSSHKeyPair api method. You can either
1267+
#. Log in to the CloudStack UI.
1268+
1269+
#. In the left navigation bar, click Compute --> SSH Key Pairs.
1270+
1271+
#. Click Create a SSH Key Pair.
1272+
1273+
#. In the dialog, make the following choices:
1274+
1275+
- **Name**: Any desired name for the SSH Key Pair.
1276+
1277+
- **Public key**: (Optional) Public key material of the SSH Key Pair.
1278+
1279+
.. note:: If this field is filled in, CloudStack will register the public key. If this field is left blank, CloudStack will create a new SSH key pair.
1280+
1281+
- **Domain**: (Optional) domain for the SSH Key Pair.
1282+
1283+
.. note:: If Cloudstack generates a New SSH Key Pair using a public key, it will not save the private key. When shown, be sure to save a copy of it.
1284+
1285+
You can also use the ``createSSHKeyPair`` api method to create an SSH Keypair. You can either
12681286
use the CloudStack Python API library or the curl commands to make the
12691287
call to the cloudstack api.
12701288

@@ -1363,11 +1381,21 @@ The -i parameter tells the ssh client to use a ssh key found at
13631381
Resetting SSH Keys
13641382
------------------
13651383

1366-
With the API command resetSSHKeyForVirtualMachine, a user can set or
1367-
reset the SSH keypair assigned to an Instance. A lost or compromised
1368-
SSH keypair can be changed, and the user can access the Instance
1369-
by using the new keypair. Just create or register a new keypair, then
1370-
call resetSSHKeyForVirtualMachine.
1384+
A lost or compromised SSH keypair can be changed, and the user can access the Instance by using the new keypair.
1385+
1386+
#. Log in to the CloudStack UI.
1387+
1388+
#. In the left navigation bar, click Compute --> Instances.
1389+
1390+
#. Choose the Instance.
1391+
1392+
#. Click on Reset SSH Key Pair button the Instance.
1393+
1394+
.. note:: The Instance must be in a Stopped state.
1395+
1396+
#. Select the SSH Key Pair(s) to add to instance
1397+
1398+
.. note:: This can also be performed via API: ``resetSSHKeyForVirtualMachine``: Resets the assigned SSH keypair for an Instance.
13711399

13721400
.. include:: virtual_machines/user-data.rst
13731401

source/adminguide/virtual_machines/user-data.rst

+33-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
KIND, either express or implied. See the License for the
1313
specific language governing permissions and limitations
1414
under the License.
15-
16-
1715
User-Data and Meta-Data
18-
-----------------------
16+
=======================
1917

2018
Users can register userdata in CloudStack and refer the registered userdata while
2119
deploying or editing or reset userdata on an instance. The userdata content can also be
2220
directly provided while deploying the instance. Userdata content length can be up to 32kb.
2321

22+
Register Userdata
23+
-----------------
24+
2425
To register a new userdata:
2526

2627
#. Log in to the CloudStack UI.
@@ -123,7 +124,7 @@ Based on these override policies, "Add Instance" UI form provides relevant optio
123124
override or append. If it is "Deny Override" then "Add Instance" will not allow adding user specific userdata
124125

125126
Storing and accessing userdata
126-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127+
------------------------------
127128

128129
HTTP GET parameters are limited to a length of 2048 bytes, but it is possible
129130
to store larger user-data blobs by sending them in the body via HTTP POST
@@ -163,6 +164,34 @@ For metadata type, use one of the following:
163164

164165
- ``instance-id``. The instance name of the instance
165166

167+
Resetting UserData
168+
------------------
169+
170+
#. Log in to the CloudStack UI.
171+
172+
#. In the left navigation bar, click Compute --> Instances.
173+
174+
#. Choose the Instance to reset userdata.
175+
176+
.. note:: The Instance must be in a stopped state.
177+
178+
#. Click on Reset Userdata button on the Instance.
179+
180+
.. note:: If the instance already has userdata applied to it, an extra dialog box will appear.
181+
182+
- ``Disabled`` (Default) - This will reset the userdata using the already configured values. Skip the next step.
183+
184+
- ``Enabled`` - Choose this to override the already configured values. Continue to next step.
185+
186+
#. In the dialog box, choose one of the following:
187+
188+
- Stored Userdata: Choose another userdata entry.
189+
190+
.. note:: Stored Userdata is created under Instances --> User Data
191+
192+
- Manual Userdata Entry: Manually provide userdata for this Instance
193+
194+
.. note:: This can also be performed via API: ``resetUserDataForVirtualMachine``: Resets the UserData for virtual machine.
166195

167196
Determining the virtual router address without DNS
168197
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)