cwilloughby_bw.racktables.racktables_object_port (1.0.9) — module

Manages object ports in Racktables

| "added in version" 2.4 of cwilloughby_bw.racktables"

Authors: Chandler Willoughby (@cwilloughby-bw)

preview | supported by community

Install collection

Install with ansible-galaxy collection install cwilloughby_bw.racktables:==1.0.9


Add to requirements.yml

  collections:
    - name: cwilloughby_bw.racktables
      version: 1.0.9

Description

Create, update, and delete object ports in Racktables

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create a port on an object in Racktables
- name: Create a new port
  racktables_object_port:
    object: "test.lab1"
    name: "eth0"
    innerinterface: "SFP+"
    type: "10G Twinax"
    l2address: "DE:AD:BE:EF:12:34"
    reservation: "Firewall Upgrade"
    label: "WAN link"

Inputs

    
name:
    description:
    - The name of the port
    required: true

type:
    default: 1000Base-T
    description:
    - The type of outer interface of the port
    required: false

label:
    description:
    - An optional label for the port
    required: false

state:
    default: present
    description:
    - Specify wether the port should be present or absent
    required: false

object:
    description:
    - The name of the object
    required: true

rt_host:
    description:
    - Hostname of the database server backing Racktables
    required: true

rt_port:
    description:
    - Port for the database connection, defaults to 3306
    required: false

l2address:
    description:
    - Optional L2 address of the port
    required: false

reservation:
    description:
    - An optional reservation comment
    required: false

rt_database:
    description:
    - Name of the database which backs Racktables
    required: true

rt_password:
    description:
    - Password for the administrative user
    required: true

rt_username:
    description:
    - Username that has administrative access to the racktables database
    required: true

innerinterface:
    default: hardwired
    description:
    - The type of inner interface of the port. Expects one of (CFP, CFP2, CPAK, GBIC,
      hardwired, QSFP+, SFP-100, SFP-1000, SFP+, X2, XENPAK, XFP, XPAK)
    required: false

Outputs

message:
  description: The output message that the test module generates
  returned: always
  type: str
original_message:
  description: The original name param that was passed in
  returned: always
  type: str