Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install the billing packages. The package name for Azure is "abiquo-billing-arm" and the package name for Amazon is "abiquo-billing-ec2".
  2. Create the local billing databases and import schemas

    AWS:

    Code Block
    mysql -e "create database ec2_billing"
    mysql -h -p -u ec2_billing < /opt/abiquo-billing-ec2/lib/app/schema.sql

    Azure:

    Code Block
    mysql -e "create database arm_billing"
    mysql -h -p -u arm_billing < /opt/abiquo-billing-arm/lib/app/schema.sql


  3. Grant privileges to a user for the local billing databases

  4. Configure the billing packages, edit the config.yml file. By default for AWS, this is file is located at /opt/abiquo-billing-ec2/config/config.yml and the following example file shows the values that must replace.

    Code Block
    abiquo_database:
      host: 10.10.10.36
      user: user
      password: password
      port: 3306
    billing_database:
      host: 10.10.10.38
      user: user
      password: password
      port: 3306
    abiquo:
      api_url: http://10.10.10.32/api
      user: admin
      password: xabiquo
      seed: 


    Notes: 

    1. The billing database is the one you created in the above steps, so it can be hosted on localhost

    2. "seed" is the name of a custom seed that encrypts the Abiquo database. Copy the custom seed into the same directory as the config.yml file for each provider

  5. On the Abiquo database, grant select privileges from this host to the abiquo_database user that will run the bililng scripts 
  6. In Abiquo, check that the Abiquo API user has the Manage bills privilege
  7. In Abiquo, configure Enterprise properties with the name of billing properties 
    AWS EC2 
       
      • Configure the "billing_bucket" property, with a value of the name of the billing bucket you created
      Azure ARM requiresAzure 
      • OfferDurableID
      • Currency, the default is "USD"
      • Locale, the default is "en-US"
      • RegionInfo, the default is "US"
    • Assign Abiquo users the privileges to Display hybrid dashboard tab, View bills, and optionally to Display VM cost view widget (hybrid tab)

...