goldyfruit.ibmcloud_automation.ic_cis_baremetal_reload_os (1.0.4) — module

Reload CIS baremetal server configuration on IBM Cloud.

| "added in version" 2.9 of goldyfruit.ibmcloud_automation"

Authors: Gaëtan Trellu (@goldyfruit)

preview | supported by community

Install collection

Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4


Add to requirements.yml

  collections:
    - name: goldyfruit.ibmcloud_automation
      version: 1.0.4

Description

This module reloads operating system on baremetal server in CIS (Cloud Infrastructure).

Depending the configuration, the operating system could be replaced, firmwares upgraded, BIOS updated, LVM enabled, etc...


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve baremetal images with their item price ID
  ic_cis_baremetal_image_info:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Reload default operating system and configuration
  ic_cis_baremetal_reload_os:
    baremetal: ibmcloud-baremetal-baby
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Deploy a new operating system
  ic_cis_baremetal_reload_os:
    baremetal: ibmcloud-baremetal-baby
    image: 12429
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add new items to the baremetal server
  ic_cis_baremetal_reload_os:
    baremetal: ibmcloud-baremetal-baby
    item_prices:
      - 12429
      - 45678
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Erase drives, enable LVM and deploy a new operating system
  ic_cis_baremetal_reload_os:
    baremetal: gtrellu-bm.ibm.cloud
    enable_lvm: true
    erase_drives: true
    image: 44992

Inputs

    
image:
    description:
    - Operating system image to deploy on the baremetal server. If no image is set the
      current operating system will be re-applied.
    - C(image) and C(item_prices) cannot be set together.
    - Item price ID must be used, run C(ic_cis_baremetal_image_info) module to retrieve
      this information.
    type: str

ssh_keys:
    description:
    - SSH keys to add to the server for authentication. SSH Keys will not be added to
      servers with Microsoft Windows.
    type: list

baremetal:
    description:
    - Baremetal name or ID.
    required: true
    type: str

enable_lvm:
    choices:
    - true
    - false
    description:
    - The provision should use LVM for all logical drives.
    type: bool

spare_pool:
    choices:
    - true
    - false
    description:
    - Server will be moved into the spare pool after an sperating system reload.
    type: bool

hard_drives:
    description:
    - The hard drive partitions that a server can be partitioned with.
    type: str

item_prices:
    description:
    - Item prices that the server can be configured with.
    type: dict

erase_drives:
    choices:
    - true
    - false
    description:
    - All data will be erased from drives during an sperating system reload.
    type: bool

upgrade_bios:
    choices:
    - true
    - false
    description:
    - BIOS will be updated when installing the operating system.
    type: bool

drive_retention:
    choices:
    - true
    - false
    description:
    - Primary drive will be converted to a portable storage volume during an operating
      system reload.
    type: bool

upgrade_firmware:
    choices:
    - true
    - false
    description:
    - Firmware on all hard drives will be updated when installing the operating system.
    type: bool

image_template_id:
    description:
    - An image template ID that will be deployed to the host. If provided no item prices
      are required.
    type: str

reset_ipmi_password:
    choices:
    - true
    - false
    description:
    - The remote management cards password will be reset.
    type: bool

provision_script_uri:
    description:
    - Will be used to download and execute a customer defined script on the host at the
      end of provisioning.
    type: str