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.

    ---code---
    [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
    ---code---

  3. Encode the required passwords with the generated key:

    ---code---
    [vagrant@796cd88209be brs]$ pwd
    /vagrant/brs
    [vagrant@796cd88209be brs]$
    brsctl.py encrypt
    utils.py:__zk_lock_get: Connected to Zookeeper at 127.0.0.1:2181
    Password:
    AM1agMm0Thl9KOCUP1qlTqufDy1SwQaHF-Ne-lGr9FhZQoBZ0hD0iBuDZrzFzQcONQSNvQvrJZn1
    ---code---

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

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

  5. Check the output for any errors below the line “Main run, should not produce any errors below this message”.
      Important
      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.

    ---code---
    $ /vagrant/bin/reset.sh

    ---code---

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

Feedback

Comment on this article:

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