Enabling integration

To enable integration with CloudBlue Connect, first deploy a CentOS 7 virtual machine in any cloud environment, then install the connector service inside it as follows:

  1. Add the following repository:

    cat << EOF > /etc/yum.repos.d/hci.repo
    [hci-base]
    name=Hybrid Infrastructure Base Repo
    baseurl=http://repo.virtuozzo.com/vz-platform/releases/5.4/x86_64/os/
    priority=51
    enabled=1
    gpgcheck=0
    
    EOF
  2. Install the cloudblue-connector package:

    yum install <path_to_the_package>/cloudblue-connector-<version>.vl7.noarch.rpm
  3. Install the Connect SDK:

    easy_install connect-sdk==20.2

If you want to use flat billing, do the following:

  1. Copy the configuration file example to config.json and open the latter for editing:

    cp /etc/cloudblue-connector/config.json.example /etc/cloudblue-connector/config.json
    vi /etc/cloudblue-connector/config.json
    { "infraKeystoneEndpoint": "https://192.168.1.40:5000/v3", "infraDomain": "Default", "infraProject": "admin", "infraUser": "vstorage-service-user", "infraPassword": "***********", "apiEndpoint": "https://api.connect.cloud.im/public/v1", "apiKey": "ApiKey SU-469-692-689:*****************", "products": ["PRD-063-065-206","PRD-022-814-775"], "templates": { "PRD-022-814-775": {"grant": "TL-699-973-660", "revoke": "Access to VDC has been revoked"}, "PRD-063-065-206": {"grant": "TL-101-949-609", "revoke": "Access to VDC has been revoked"} } }
  2. Change the default parameters:

    • In "infraKeystoneEndpoint", replace the example IP address with the IP address of the Virtuozzo Hybrid Infrastructure cluster that you want to connect to.
    • In "infraDomain", "infraProject", "infraUser", and "infraPassword", change the domain, project, and user credentials to the ones of a Virtuozzo Hybrid Infrastructure system administrator.
    • In "apiEndpoint", specify the API endpoint to interact with the Connect API copied from the vendor portal on the Extensions > General page.

    • In "apiKey", specify the API key copied from the vendor portal on the Extensions > Tokens page.

    • In "products", specify product IDs copied from the vendor portal on the Products page.

    • In "templates", specify template IDs for each product copied from the vendor portal on the Products > product > Embedding page. Click the Templates tab and go to the Activation tile templates section.

  3. Run the command:

    cloudblue-fulfillments
  4. Enable and start the cloudblue-fulfillments service:

    systemctl enable cloudblue-fulfillments
    systemctl start cloudblue-fulfillments

If you want to use the pay-as-you-go model, do the following:

  1. Copy the configuration usage example to config-usage.json and open the latter for editing:

    cp /etc/cloudblue-connector/config-usage.json.example /etc/cloudblue-connector/config-usage.json
    vi /etc/cloudblue-connector/config-usage.json
    { "infraKeystoneEndpoint": "https://192.168.1.40:5000/v3", "infraDomain": "Default", "infraProject": "admin", "infraUser": "vstorage-service-user", "infraPassword": "****", "apiEndpoint": "https://api.connect.cloud.im/public/v1", "apiKey": "ApiKey SU-469-692-689:**************************", "products": ["PRD-063-065-206"], "templates": { "PRD-263-056-411": {"grant": "TL-304-029-298", "revoke": "Access to VDC has been revoked"}, "PRD-063-065-206": {"grant": "TL-101-949-609", "revoke": "Access to VDC has been revoked"} } }
  2. Change the default parameters:

    • In "infraKeystoneEndpoint", replace the example IP address with the IP address of the Virtuozzo Hybrid Infrastructure cluster that you want to connect to.
    • In "infraDomain", "infraProject", "infraUser", and "infraPassword", change the domain, project, and user credentials to the ones of a Virtuozzo Hybrid Infrastructure system administrator.
    • In "apiEndpoint", specify the API endpoint to interact with the Connect API copied from the vendor portal on the Extensions > General page.

    • In "apiKey", specify the API key copied from the vendor portal on the Extensions > Tokens page.

    • In "products", specify the ID of the product with the pay-as-you-go billing model. Copy the product ID from the vendor portal on the Products page.

    • In "templates", specify template IDs for each product copied from the vendor portal on the Products > product > Embedding page. Click the Templates tab and go to the Activation tile templates section.

  3. Enable and start the cloudblue-usage service:

    systemctl enable cloudblue-usage
    systemctl start cloudblue-usage