# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

blueprint_name: custom-vm-image

vars:
  project_id:  ## Set GCP Project ID Here ##
  deployment_name: hpc-slurm1
  region: europe-west4
  zone: europe-west4-a

resource_groups:
- group: network
  resources:
  - source: resources/network/vpc
    kind: terraform
    id: network1
    settings:
      network_name: $(vars.deployment_name)
- group: packer
  resources:
  - source: resources/packer/custom-image
    kind: packer
    id: my-custom-image
    settings:
      subnetwork: "subnet-central1"
      use_iap: true
      omit_external_ip: true
      disk_size: 100
      ansible_playbooks:
      - playbook_file: ./example-playbook.yml
        galaxy_file: ./requirements.yml
        extra_arguments: ["-vv"]

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

blueprint_name: custom-vm-image

vars:
  project_id:  ## Set GCP Project ID Here ##
  deployment_name: hpc-slurm1
  region: europe-west4
  zone: europe-west4-a

resource_groups:
- group: network
  resources:
  - source: resources/network/vpc
    kind: terraform
    id: network1
    settings:
      network_name: $(vars.deployment_name)
- group: packer
  resources:
  - source: resources/packer/custom-image
    kind: packer
    id: my-custom-image
    settings:
      use_iap: true
      omit_external_ip: true
      disk_size: 100
      ansible_playbooks:
      - playbook_file: ./example-playbook.yml
        galaxy_file: ./requirements.yml
        extra_arguments: ["-vv"]

Remove explicit subnetwork setting from Packer integration test
Remove explicit subnetwork setting from Packer integration test
