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:
- 
                                    Install the following packages: yum install epel-release.noarch 
 yum install centos-release-openstack-stein.noarch
- 
                                    Install the cloudblue-connectorpackage:yum install <path_to_the_package>/cloudblue-connector-<version>.vl7.noarch.rpm 
- 
                                    Install the Connect SDK: easy_install connect-sdk==20.2 
If you want to use flat billing, do the following:
- 
                                    Copy the configuration file example to config.jsonand 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"} } }
- 
                                    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
 
- in 
- 
                                    Run the command: cloudblue-fulfillments 
- 
                                    Enable and start the cloudblue-fulfillmentsservice:systemctl enable cloudblue-fulfillments 
 systemctl start cloudblue-fulfillments
If you want to use the pay-as-you-go model, do the following:
- 
                                    Copy the configuration usage example to config-usage.jsonand 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"} } }
- 
                                    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
 
- in 
- 
                                    Enable and start the cloudblue-usageservice:systemctl enable cloudblue-usage 
 systemctl start cloudblue-usage



