Enabling integration
Prerequisites
1. Install the CloudBlue connector on a dedicated RHEL 9 virtual machine.
CloudBlue Connect configuration file
To ensure the smooth connection of the CloudBlue Connect API with Virtuozzo Infrastructure, adjust the config.yaml file and start the cloudblue-connector service.
1. Copy the config-logging.json config from the example. No further adjustments are required for this file.
| |
2. Copy the main configuration file example as your config.yaml file:
| |
The default configuration file looks as follows:
| |
3. Change the default parameters in the /etc/cloudblue-connector/config.yaml configuration file:
3.1. In the api cloudblue section, set the following parameters:
url: Specify the CloudBlue Connect API endpoint URL. You can copy the API endpoint URL from the Integrations > API page.

vendorKeyanddistributorKey: Specify the API key for secure interaction with the CloudBlue Connect API. To generate this key, go to the Integrations > Tokens page and click Create token. Once, the token is created, copy the API key on the token details page.

3.2. In the api vhi section, set the following parameters:
url: Replace[KEYSTONE_URL]with the public IP address or domain name of your Virtuozzo Infrastructure cluster.username: Keep the defaultvstorage-service-useruser name.password: Specify the password of thevstorage-service-useruser. You can copy this password from the/etc/kolla/admin-openrc.shfile. If this file does not exist, generate it by running:
| |
domain: Keep theDefaultdomain.project: Keep theadminproject.verify: Keep thefalsevalue. If you have a valid SSL certificate, you can change this parameter totrue.
3.3. In the appConfig section, set the following parameters:
interval: Specify the interval for processing fulfillments and usage data. The default value is 30 seconds.timeout: Specify the timeout for one cycle of processing fulfillments and usage data. The default value is 3600 seconds (one hour).dataRetentionPeriod: Specify the number of days a subscription remains active after cancellation. Set 0 to disable data retention.marketplaces: Specify a list of marketplace IDs or leave empty.contracts: Specify a list of contract IDs or leave empty.
3.4. In the products section, set the following parameters:
- Replace
PRD-000-000-001with your product ID. You can copy the product ID from the Products > General page.

approveTemplate: Specify the template ID that is used for your product when fulfillment is confirmed or cancelled. You can copy the template ID from the Products > Embedding > Approved Templates page.

name: Specify your product name.type: Keep thevhitype.reportUsage: Change tofalseif you are using the reservation resource model.reportUnitsIn: Specify units for usage reports. Supported values areMBandGB.reportUsageAutoAccept: Change tofalseif you want to disable automatic acceptance of usage reports. Note that this parameter works only ifdistributorKeyis set.reportPeriod: Specify the reporting period. Supported values arehourly,daily, andmonthly.uploadImages: Change tofalseif you want to disable image upload.paidImages: Specify a list of chargeable images in the following format:<image_name>: "<image_uuid>". The image name must be the same as you specified when creating an image item, as described in Creating products. You can copy the image UUID from the Virtuozzo Infrastructure admin panel.

4. For security reasons, it is recommended to set sensitive data, such as keys and passwords, using the cloudblue-connector auth set command. Use the --service option to specify the service name (cloudblue or vhi) for which to set the password. If omitted, the passwords will be set for both services. For example:
| |
To view your passwords, use the cloudblue-connector auth list command.
5. To secure the configuration files, change the file permissions as follows:
| |
6. Enable and start the cloudblue-connector service:
| |