environments:
  - name: dcn
    title: Distributed Compute Node
    description: |-
      Environment file for deploying a remote site of distributed compute nodes
      (DCN) in a separate stack (multi-stack) deployment.
    files: &dcn_files
      deployment/nova/nova-az-config.yaml:
        parameters:
          - NovaComputeAvailabilityZone
      network/external.yaml:
        parameters:
          - ManageNetworks
      deployment/nova/nova-base-puppet.yaml:
        parameters:
          - NovaCrossAZAttach
      deployment/nova/nova-compute-container-puppet.yaml:
        parameters:
          - NovaDisableImageDownloadToRbd
    sample_values: &sample_values
      ManageNetworks: false
      NovaCrossAZAttach: false
      NovaDisableImageDownloadToRbd: true
    resource_registry: &dcn_resource_registry
      OS::TripleO::Services::GlanceApiEdge: ../deployment/glance/glance-api-edge-container-puppet.yaml
      OS::TripleO::Services::HAproxyEdge: ../deployment/haproxy/haproxy-edge-container-puppet.yaml
      OS::TripleO::Services::NovaAZConfig: ../deployment/nova/nova-az-config.yaml
    children:
      - name: dcn-storage
        title: Distributed Compute Node with storage
        description: |-
          Environment file for deploying a remote site of distributed compute
          nodes (DCN) in a separate stack (multi-stack) deployment with storage;
          either HCI or with separate storage nodes. It should be used in
          combination with environments/ceph-ansible/ceph-ansible.yaml.
        files:
          <<: *dcn_files
          deployment/cinder/cinder-base.yaml:
            parameters:
              - CinderStorageAvailabilityZone
          deployment/cinder/cinder-volume-container-puppet.yaml:
            parameters:
              - CinderVolumeCluster
              - CinderEtcdLocalConnect
          deployment/glance/glance-api-container-puppet.yaml:
            parameters:
              - GlanceEnabledImportMethods
        sample_values:
          <<: *sample_values
          CinderStorageAvailabilityZone: dcn
          CinderVolumeCluster: dcn
          CinderEtcdLocalConnect: True
          GlanceEnabledImportMethods: web-download,copy-image
        resource_registry:
          <<: *dcn_resource_registry
          OS::TripleO::Services::Etcd: ../deployment/etcd/etcd-container-puppet.yaml
          OS::TripleO::Services::CinderVolumeEdge: ../deployment/cinder/cinder-volume-container-puppet.yaml