Load Profiles and Templates
Prerequisites¶
Ensure the following requirements are met before starting:
-
Package URLs:
- URL to download the installer package for profiles/templates and dependencies
- URL to download template images (required only for air-gapped controllers)
-
Access to Ops Console of the target Rafay Controller with Partner Admin permissions
-
A NOC node (Ubuntu, AMD architecture) for setup with:
- Access to the controller domain
- Minimum 130 GB free disk space
- Python 3.x installed
Setup¶
1. Create Partner API Key¶
- Login to the controller Ops Console. Example:
https://ops-console.<example.com>. - Ensure the user account has Partner Admin access.
- Navigate to Users.
- Locate the username and click the options menu (⋮).
- Select Manage Keys

- Click on New API Key
- Copy and securely store the generated API key for use in the configuration file.

2. Download the Package¶
- Create a setup directory. Example:
packagesetup -
Download the package from the URLs provided by Rafay into the setup directory
packagesetup.- Download the images package only for air-gapped controllers.
-
Extract the downloaded packages inside the setup directory
packagesetup.- Extract the images package only if downloaded.
After extraction, the directory contains:
catalog-templates.tar.gz
config.yaml
loader-utility.py
Changelog.md
Configuring config.yaml¶
The config.yaml file must be updated before running the loader utility.
Example configuration:
# environment
hostenv: <hostenv>
opsenv: <opsenv>
# API key
apikey: <apikey>
# Project name
projectname: default-catalog
untar: True
load_images: False
images_file_name: rafay-cluster-images-3.1.38.tar.gz
Update the following fields¶
<hostenv>→ Controller console URL (Example:console.<example.com>)<opsenv>→ Ops Console URL (Example:ops-console.<example.com>)load_imagesTrue→ Air-gapped controller (images are loaded into controller registry)False→ Templates pull images from Rafay Nexus registry
If load_images is set to True, ensure the images package is downloaded and available in the extracted directory.
Note: Optionally, update
projectnameif templates need to be loaded to a project other thandefault-catalog.
Loading Profiles and Templates¶
From the setup directory, run:
python3 loader-utility.py
After successful execution:
- Templates appear under Template Catalog in the Infra Portal.
- Profiles appear under Profile Catalog in SKU Studio.