Jump to: navigation, search

Configuring BDS for Premise

The following is an outline of configuration:

  1. Create or put the tenant template in the ./cloudbilling-prem.local/templates/ folder. Use the following format for the tenant template name tenant_<short_tenant_name>.tpl, that is, tenant_acme.tpl.
    Use the bundled ./cloudbilling-prem.local/etc/gvars.py file for the initial configuration. See Global Variables for parameter descriptions. Launch BDS in configuration mode by running ./cloudbilling-prem.sh config and wait for the interactive prompt to appear.

  2. Create encryption keys.

    [vagrant@22175551cb8b brs]$ python /usr/lib/python2.7/site-packages/keyczar/keyczart.py create --location=/vagrant/etc/crypto --purpose=crypt --name="BRS keyset"
    [vagrant@22175551cb8b brs]$ python /usr/lib/python2.7/site-packages/keyczar/keyczart.py addkey --location=/vagrant/etc/crypto --status=primary
    [vagrant@22175551cb8b brs]$ ls /vagrant/etc/crypto 1 meta

  3. Encode the required passwords with the generated key:

    [vagrant@796cd88209be brs]$ pwd
    [vagrant@796cd88209be brs]$
    brsctl.py encrypt
    utils.py:__zk_lock_get: Connected to Zookeeper at

  4. For the first deployment, import the configuration templates. You will need to exit configuration mode and launch reset.
      This will reset the configuration to match the configuration that is in the templates, including the current ETL timestamps.

    [genesys@vcd-cat-u004 prem-demo]$ ./cloudbilling-prem.sh reset

  5. Check the output for any errors below the line “Main run, should not produce any errors below this message”.
      If you haven’t yet imported the tenant template, you’ll see the following error: “Cannot read file /vagrant/templates/tenant_*.tpl”.
  6. Import the configuration templates.

    $ /vagrant/bin/reset.sh


  7. Launch the configuration mode again by using ./cloudbilling-prem.sh config and then, verify that the templates are loaded.
    $ ./brsctl.py dataset -l
    $ ./brsctl.py metric -l
    $ ./brsctl.py location -l
    $ ./brsctl.py tenant -l


Comment on this article:

blog comments powered by Disqus
This page was last modified on 11 May 2018, at 01:44.