ansible_vorteil.cloud.vorteil_create_injection_uri (0.1.6) — module

Create the configuration injection URI for disk build

| "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 an injection URI to be used for disk building process

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

A build process will be created and returned with a uri, that can be used for injections.

A uuid will also be created and returned to so that the injection can be identified by the build process.

A build process is only satisfied when they have been injected at there created uuid.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create the injection URI
  ansible_vorteil.cloud.vorteil_create_injection_uri:
    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 }}'
    repo_disktype: "ova"

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

Outputs

results:
  description:
  - Returns the uri, uuid of the initialized built process, and the job id of this
    process
  - uri is the endpoint of where to inject to and pull from.
  - uuid is the unique identifer used to set the target of where to inject a configuration
    to.
  returned: success
  sample:
    build:
      job:
        id: job-ieiqpk
      uri: GOpJCKylkDcUrdtEtRbyxFyXLcxFVXAhHLQfaXWRKhTHwCAtpuRDznaIDAFRyiWP
      uuid: 8a2e2f16-6591-4773-b2ac-e6c2a2ff52c7
  type: dict