foreman_image – Manage Foreman Images using Foreman API

Synopsis

  • Create and Delete Foreman Images using Foreman API

Requirements

The below requirements are needed on the host that executes this module.

  • apypie

Parameters

Parameter Choices/Defaults Comments
architecture
string / required
architecture of the image
compute_resource
string / required
Compute resource the image is assigned to
image_password
string
Password that is used to login into the operating system
image_username
string / required
Username that is used to login into the operating system
name
string / required
Image name
operatingsystem
string / required
Operating system that will be deployed using the image
password
string / required
Password of the user accessing the Foreman server
server_url
string / required
URL of the Foreman server
state
string
    Choices:
  • present ←
  • absent
State of the entity in Foreman
user_data
boolean
    Choices:
  • no
  • yes
Image supports user_data
username
string / required
Username accessing the Foreman server
uuid
string / required
UUID or Marketplace URN of the operatingsystem image

aliases: image_uuid
validate_certs
boolean
    Choices:
  • no
  • yes ←
Whether or not to verify the TLS certificates of the Foreman server

aliases: verify_ssl

Examples

- name: create Image for EC2
  foreman_image:
     name: CentOS
     image_uuid: "ami-0ff760d16d9497662"
     image_username: "centos"
     operatingsystem: "CentOS 7"
     compute_resource: "AWS"
     architecture: "x86_64"

Status

Authors

  • Mark Hlawatschek (@hlawatschek) ATIX AG

Hint

If you notice any issues in this documentation, you can edit this document to improve it.