# salt.pillar.azureblob

Use Azure Blob as a Pillar source.

New in version 3001.

maintainer:

  <devops@eitr.tech>

maturity:

  new

depends:

  - azure-storage-blob >= 12.0.0

The Azure Blob ext_pillar can be configured with the following parameters:

    ext_pillar:
      - azureblob:
          container: 'test_container'
          connection_string: 'connection_string'
          multiple_env: False
          environment: 'base'
          blob_cache_expire: 30
          blob_sync_on_update: True

param container:

  The name of the target Azure Blob Container.

param connection_string:

  The connection string to use to access the specified Azure Blob Container.

param multiple_env:

  Specifies whether the pillar should interpret top level folders as pillar environments. Defaults to false.

param environment:

  Specifies which environment the container represents when in single environment mode. Defaults to 'base' and is ignored if multiple_env is set as True.

param blob_cache_expire:

  Specifies expiration time of the Azure Blob metadata cache file. Defaults to 30s.

param blob_sync_on_update:

  Specifies if the cache is synced on update. Defaults to True.

salt.pillar.azureblob.ext_pillar(minion_id, pillar, container, connection_string, multiple_env=False, environment='base', blob_cache_expire=30, blob_sync_on_update=True)

  Execute a command and read the output as YAML.

  Parameters:

    - container -- The name of the target Azure Blob Container.

    - connection_string -- The connection string to use to access the specified Azure Blob Container.

    - multiple_env -- Specifies whether the pillar should interpret top level folders as pillar environments. Defaults to false.

    - environment -- Specifies which environment the container represents when in single environment mode. Defaults to 'base' and is ignored if multiple_env is set as True.

    - blob_cache_expire -- Specifies expiration time of the Azure Blob metadata cache file. Defaults to 30s.

    - blob_sync_on_update -- Specifies if the cache is synced on update. Defaults to True.