# salt.cloud.clouds.clc

## CenturyLink Cloud Module

Added in version 2018.3.0.

The CLC cloud module allows you to manage CLC Via the CLC SDK.

codeauthor:

  Stephan Looney <slooney@stephanlooney.com>

## Dependencies

- clc-sdk Python Module

- flask

### CLC SDK

clc-sdk can be installed via pip:

    pip install clc-sdk

Note

For sdk reference see: https://github.com/CenturyLinkCloud/clc-python-sdk

### Flask

flask can be installed via pip:

    pip install flask

## Configuration

To use this module: set up the clc-sdk, user, password, key in the cloud configuration at `/etc/salt/cloud.providers` or `/etc/salt/cloud.providers.d/clc.conf`:

    my-clc-config:
      driver: clc
      user: 'web-user'
      password: 'verybadpass'
      token: ''
      token_pass:''
      accountalias: 'ACT'

Note

The `provider` parameter in cloud provider configuration was renamed to `driver`. This change was made to avoid confusion with the `provider` parameter that is used in cloud profile configuration. Cloud provider configuration now uses `driver` to refer to the salt-cloud driver that provides the underlying functionality to connect to a cloud provider, while cloud profile configuration continues to use `provider` to refer to the cloud provider configuration that you define.

salt.cloud.clouds.clc.avail_images(call=None)

  returns a list of images available to you

salt.cloud.clouds.clc.avail_locations(call=None)

  returns a list of locations available to you

salt.cloud.clouds.clc.avail_sizes(call=None)

  use templates for this

salt.cloud.clouds.clc.create(vm_)

  get the system build going

salt.cloud.clouds.clc.destroy(name, call=None)

  destroy the vm

salt.cloud.clouds.clc.get_build_status(req_id, nodename)

  get the build status from CLC to make sure we don't return to early

salt.cloud.clouds.clc.get_configured_provider()

salt.cloud.clouds.clc.get_creds()

salt.cloud.clouds.clc.get_dependencies()

  Warn if dependencies aren't met.

salt.cloud.clouds.clc.get_group_estimate(call=None, for_output=True, **kwargs)

  Return a list of the VMs that are on the provider usage: "salt-cloud -f get_group_estimate clc group=Dev location=VA1"

salt.cloud.clouds.clc.get_month_to_date(call=None, for_output=True)

  Return a list of the VMs that are on the provider

salt.cloud.clouds.clc.get_monthly_estimate(call=None, for_output=True)

  Return a list of the VMs that are on the provider

salt.cloud.clouds.clc.get_queue_data(call=None, for_output=True)

salt.cloud.clouds.clc.get_server_alerts(call=None, for_output=True, **kwargs)

  Return a list of alerts from CLC as reported by their infra

salt.cloud.clouds.clc.list_nodes_full(call=None, for_output=True)

  Return a list of the VMs that are on the provider