ansible_vorteil.cloud.vorteil_create_injection_disk (0.1.6) — module

Create the actual disk and store to location or return location only

| "added in version" 2.10.0 of ansible_vorteil.cloud"

Authors: Wilhelm Wonigkeit (@bigwonig), Jon Alfaro (@jalfvort)

preview | supported by community

Install collection

Install with ansible-galaxy collection install ansible_vorteil.cloud:==0.1.6


Add to requirements.yml

  collections:
    - name: ansible_vorteil.cloud
      version: 0.1.6

Description

Create the disk image or location of disk

This is step 3 out of 3 in the disk build process with injection


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: get the disk from the injection URI
  ansible_vorteil.cloud.vorteil_create_injection_disk:
    repo_key: "{{ var_repo_key }}"
    repo_address: "{{ var_repo_address }}"
    repo_port: "{{ var_repo_port }}"
    repo_proto: "{{ var_repo_proto }}"
    repo_bucket: '{{ var_bucket }}'
    repo_app: '{{ var_app }}'
    injection_uuiduri: '{{ geturicreateresponse }}'
    repo_disktype: "{{ var_repo_disktype }}"
    inject_directory: "/tmp/"

Inputs

    
repo_app:
    description:
    - Repo application to query within the bucket
    required: true
    type: str

repo_key:
    description:
    - The access key for the Vorteil.io repo (user specific and generated during user
      configuration).
    - Only required if the repo has been configured for authenticated connections.
    required: false
    type: str

repo_port:
    description:
    - Admin port on which the repository is configured to listen (default 7472)
    required: false
    type: str

repo_proto:
    choices:
    - http
    - https
    default: http
    description:
    - Protocol to use (either http[default] or https)
    required: false
    type: str

repo_bucket:
    description:
    - Repo bucket to query for a list of applications
    required: true
    type: str

repo_address:
    description:
    - FQDN for the Vorteil.io Repository to query
    - This can be set to "localhost" to connect you a systems local vorteil daemon process.
    required: true
    type: str

repo_disktype:
    choices:
    - gcp
    - ova
    - raw
    - stream-optimized-disk
    - vhd
    - vmdk
    description:
    - Disk type to be built
    required: true
    type: str

disk_directory:
    description:
    - Directory where the disk is going to be stored
    required: true
    type: str

injection_uuiduri:
    description:
    - Dict object created using the vorteil_create_injection_uri call
    required: true
    type: dict

Outputs

results:
  description:
  - Returns two properties
  - 1) The file location of the built disk
  - 2) The file name of the built disk
  returned: success
  sample:
    file_location: /tmp/Vorteil-gnatsd-1573182184.8061945.ova
    file_name: Vorteil-gnatsd-1573182184.8061652.ova
  type: dict