Previously in the Itential Platform, if a Golden Configuration with the same name already existed and you attempted to import a new one, you would get an error. This limitation is now removed in the UI, thereby enabling you to manage Golden Configs in Configuration Manager through a set of actions that will enhance how you handle the standard by which your devices should be configured.
Importing Golden Configs
When importing Golden Configurations, certain characteristics and behaviors occur if you do not pass in an extra property with each tree. These include:
- If the name is a duplicate, a unique index is used, such as
GC Name (1)
. - If the name is not a duplicate, then the original name is used in the export, such as
GC Name
. - Devices are not imported.
- Task instances are imported.
To import a Golden Configuration:
- Navigate to Configuration Manager under Operation on the main Itential Platform page.
- Select the Search icon (top toolbar) to display the Collection dialog.
- Select the Golden Configurations tab. (Note: For IAP 2023.1 and IAP 2023.2 Only).
- Click the Import icon in the upper-left of the Collection dialog to open your file manager.
- Locate and select the Golden Configurations that you want to import (represented as JSON files).
- Confirm you want to import the file. A notification banner displays in the upper-right upon successful file import.
- If the file is a duplicate, an import dialog will open and prompt you to overwrite the existing version or rename rename it.
Figure 1: Downloads Folder
Figure 2: Golden Config Import Dialog
Exporting Golden Configs
Use the following steps to export a Golden Configuration for import:
-
Login to Itential Platform to open the home page and click Configuration Manager under Operation in the left navigation menu to open the application.
-
Select the Search icon (top toolbar) in Configuration Manager to display the Collection dialog.
-
Select the Golden Configurations tab from the Collection window to display all the card options.
-
Select the checkbox at the bottom of each Golden Configuration you want to export and then click the Export icon (upper-left).
Figure 3: Golden Configurations Collection Tab
Figure 4: Select and Export Golden Configuration
-
A message box appears asking you to confirm the export of the selected configurations. Click Okay.
-
The output file format is JSON. A download of the export file is shown in your browser. Once the download is complete, locate the export file in the downloads folder and perform an import.
Figure 5: Confirm Export
Figure 6: Export File Output JSON
Overwriting Golden Configs
When overwriting Golden Configurations, certain behaviors occur if you pass the overWrite: true
property with each tree. These behaviors are as follows:
- The entire Golden Configuration is replaced except for devices and task instances.
- Versions in the current Golden Configuration that do not exist in the imported Golden Configuration​ are deleted.
- Versions in the imported Golden Configuration that exist but are not available in the current Golden Configuration are added.
To overwrite a Golden Configuration:
-
Navigate to Configuration Manager under Operation on the main Itential Platform page.
-
Select the Search icon (top toolbar) to display the Collection dialog.
-
Select the Golden Configurations tab.
-
Click the Import icon in the upper-left of the Collection dialog to open your file manager.
-
Locate and select the primary file that you want to overwrite with a secondary file of the same name.
- Cisco 3650 - User FW was imported as a primary file.
- Cisco 3650 - User FW in the Downloads folder is the secondary file.
-
Click Open. A warning message appears indicating the primary file already exists.
-
Click Overwrite. The primary file is overwritten. A success banner appears in the upper-right of the Collections window showing the overwritten Cisco 3650 - User FW file.
Figure 7: Open File from Download Folder
Figure 8: Import Dialog Warning
Figure 9: Overwrite Success Banner
Renaming a Golden Configuration
When renaming Golden Configurations, certain behaviors occur if you pass the newName": "some gc name" property
. These behaviors are as follows:
- The Golden Configuration is imported with a new name.
- If that new name already exists, the new name is indexed as
New GC Name (1)
. - Devices are not imported along.
- Task instances are imported.
To rename a Golden Configuration:
-
Navigate to Configuration Manager under Operation on the home page.
-
Select the Search icon (top toolbar) to display the Collection dialog.
-
Select the Golden Configurations tab.
-
Click the Import icon in the upper-left of the Collection dialog to open your file manager.
Figure 10: Downloads Folder
-
Select the Golden Configuration that you want to rename. In the example, JSON is the file to rename.
Figure 11: JSON File
-
Click Open. A warning message appears indicating the file already exists.
Figure 12: Warning Dialog
-
Rename the file name directly in the error message by clicking on the name (e.g., JSON to JSON Copy). Notice that the error message and the Overwrite button changes to Rename instead.
Figure 13: Rename File
-
Click Rename. A success banner (Figure 5) appears and the original JSON and the newly named JSON Copy file are displayed in the Collections window.
Figure 14: Success Confirmation
Using the Import API in Golden Configuration
This section provides the backend developer information for importing, overwriting, and renaming Golden Configurations. Here are the parameters for calling the API:
{
"trees": [
{
"data": [{treeVersion1}, {treeVersion2}],
"overwrite": true
},
{
"data": [{treeVersion1}, {treeVersion2}],
"newName": "New GC Name"
},
{
"data": [{treeVersion1}, {treeVersion2}]
}
],
"options": {}
}
Each element in the trees
array represents a Golden Configuration. Within each Golden Configuration, the data array represents each version that belongs to a Golden Configuration. For example, if a Golden Configuration has three versions, then the data
array is going to have three objects inside of it for each version. Essentially, the payload is saying to import three Golden Configurations and each of those three Golden Configurations has two versions each.
To import a Golden Configuration, you can just pass in the import data and nothing else . It will:
- Either import the tree normally, assuming it’s not a duplicate.
- Index the name if it is a duplicate in which a tree name already exists. For example, if a tree called
IOS Tree
already exists then it will import asIOS Tree (1)
.
Overwrite Property
To overwrite for a Golden Configuration, you have to pass the
overwrite: true
property.
Renaming Property
To rename a Golden Configuration, you have to pass in the newName
property.