Architect Inventory Backends

Reclass Inventory

Following configuration points to the reclass inventory storage on local filesystem.

inventory:
  reclass-inventory:
    storage_type: yaml_fs
    class_dir: /srv/salt/reclass/classes
    node_dir: /srv/salt/reclass-nodes/{{ inventory-name }}

Hierarchical Inventory

Hier-cluster Inventory

Following configuration points to the hiearchical-cluster inventory storaged on local filesystem.

inventory:
  hier-cluster-inventory:
    engine: hier-cluster
    service_class_dir:
    system_class_dir:
    cluster_class_dir:
    class_dir: /srv/salt/reclass/classes
    formula_dir: /srv/salt/base
    form:
      test:
        name: Generate new cluster class
        layout: page
        templates:
        - file: cluster/{{ cluster_name }}.yml
          content: |
            parameters:
              meta: {{ cluster_name }}
              {%- if cluster_domain %}
              domain: {{ cluster_name }}
              {%- endif %}
        steps:
        - name: form-single
          layout: inline
          fields:
          - name: cluster_name
            label: Cluster name
            value_type: string
            help_text: Name of the cluster, used as cluster/CLUSTER_NAME.yml in directory structure.
            initial: deployment_name
            style: col-md-6
          - name: cluster_domain
            label: Cluster domain
            value_type: boolean
            help_text: Is cluster appended?
            initial: deploy-name.local
            width: half
            style: col-md-6

Hier-deploy Inventory

Following configuration points to the hiearchical-deploy inventory storaged on local filesystem.

inventory:
  hier-deploy-inventory:
    engine: hier-deploy
    class_dir: /srv/salt/reclass/classes
    node_dir: /srv/salt/reclass/nodes