Skip to content

GCE Plugins : support "disk_encryption_key" in the create_<linux|windows>_instance.yml #319

@mattBil

Description

@mattBil

Hello,

I noticed that the parameter "disk_encryption_key" is not supported for GCE instances (here : https://github.com/ansible-community/molecule-plugins/blob/980db38a12043e1685dd0e91e9845f1ae684cab1/src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml).
Its existing in the official google module : https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_compute_instance_module.html#parameter-disks/disk_encryption_key

can I propose an implementation for that in the plugins ?
It would look something like :

    disks:
      - auto_delete: true
        boot: true
        disk_encryption_key:
          raw_key: "{{ item. disk_encryption_key | default(omit) }}"
        initialize_params:
          disk_size_gb: "{{ item.disk_size_gb | default(omit) }}"
          source_image: "{{ item.image | default('projects/debian-cloud/global/images/family/debian-10') }}"
          source_image_encryption_key:
            raw_key: "{{ item.image_encryption_key | default(omit) }}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions