|
12 | 12 | KIND, either express or implied. See the License for the
|
13 | 13 | specific language governing permissions and limitations
|
14 | 14 | under the License.
|
15 |
| -
|
16 |
| -
|
17 | 15 | User-Data and Meta-Data
|
18 |
| ------------------------ |
| 16 | +======================= |
19 | 17 |
|
20 | 18 | Users can register userdata in CloudStack and refer the registered userdata while
|
21 | 19 | deploying or editing or reset userdata on an instance. The userdata content can also be
|
22 | 20 | directly provided while deploying the instance. Userdata content length can be up to 32kb.
|
23 | 21 |
|
| 22 | +Register Userdata |
| 23 | +----------------- |
| 24 | + |
24 | 25 | To register a new userdata:
|
25 | 26 |
|
26 | 27 | #. Log in to the CloudStack UI.
|
@@ -123,7 +124,7 @@ Based on these override policies, "Add Instance" UI form provides relevant optio
|
123 | 124 | override or append. If it is "Deny Override" then "Add Instance" will not allow adding user specific userdata
|
124 | 125 |
|
125 | 126 | Storing and accessing userdata
|
126 |
| -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 127 | +------------------------------ |
127 | 128 |
|
128 | 129 | HTTP GET parameters are limited to a length of 2048 bytes, but it is possible
|
129 | 130 | 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:
|
163 | 164 |
|
164 | 165 | - ``instance-id``. The instance name of the instance
|
165 | 166 |
|
| 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. |
166 | 195 |
|
167 | 196 | Determining the virtual router address without DNS
|
168 | 197 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
0 commit comments