next up previous contents
Next: 0.3 Basic Usage Up: 0.2 Getting Started Previous: 0.2.1.3 Installing from source   Contents


0.2.2 Configuring

All configuration data is stored in text file  /.lcrc. It doesn't exist by default so you have to create it:

      touch ~/.lcrc
      chmod 600 ~/.lcrc

We need chmod to be sure others can't access you secret keys. If file mode will be too permissive, lc-tools will not run.

Structure of the file is following:

      [default]
      driver = foogrid
      access_id = your_key_id
      secret_key = your_password

      [barcloud]
      driver = barcloud
      access_id = somekey
      secret_key = some_key

You probably noted that config file is separated by sections (default, barcloud in the example above). Each section corresponds to a single cloud account, it's possible to switch them and default section is used by default and should always be present.

All fields are necessary and cannot be omitted.

driver

name of the specific cloud provider for the account. To get a list of all available drivers please execute

            lc-drivers-list|cut -d "." -f3|sort|uniq

access_id

access_id for the account. It could be either login or some generated key
secret_key

secretkey for the account, in other words it's a password for given access_id

Please refer to your cloud prover for detailed documentation on getting account's credentials.


next up previous contents
Next: 0.3 Basic Usage Up: 0.2 Getting Started Previous: 0.2.1.3 Installing from source   Contents
Roman Bogorodskiy 2011-05-30