cobbler_system

Manages a System within Cobbler.

Example Usage

resource "cobbler_system" "my_system" {
  name         = "my_system"
  profile      = "${cobbler_profile.my_profile.name}"
  name_servers = ["8.8.8.8", "8.8.4.4"]
  comment      = "I'm a system"

  interface {
    name        = "eth0"
    mac_address = "aa:bb:cc:dd:ee:ff"
    static      = true
    ip_address  = "1.2.3.4"
    netmask     = "255.255.255.0"
  }

  interface {
    name        = "eth1"
    mac_address = "aa:bb:cc:dd:ee:fa"
    static      = true
    ip_address  = "1.2.3.5"
    netmask     = "255.255.255.0"
  }
}

Argument Reference

The following arguments are supported:

The interface block supports:

  • name - (Required) The device name of the interface. ex: eth0.

  • cnames - (Optional) Canonical name records.

  • dhcp_tag - (Optional) DHCP tag.

  • dns_name - (Optional) DNS name.

  • bonding_opts - (Optional) Options for bonded interfaces.

  • bridge_opts - (Optional) Options for bridge interfaces.

  • gateway - (Optional) Per-interface gateway.

  • interface_type - (Optional) The type of interface: na, master, slave, bond, bond_slave, bridge, bridge_slave, bonded_bridge_slave.

  • interface_master - (Optional) The master interface when slave.

  • ip_address - (Optional) The IP address of the interface.

  • ipv6_address - (Optional) The IPv6 address of the interface.

  • ipv6_mtu - (Optional) The MTU of the IPv6 address.

  • ipv6_static_routes - (Optional) Static routes for the IPv6 interface.

  • ipv6_default_gateway - (Optional) The default gateawy for the IPv6 address / interface.

  • mac_address - (Optional) The MAC address of the interface.

  • management - (Optional) Whether this interface is a management interface.

  • netmask - (Optional) The IPv4 netmask of the interface.

  • static - (Optional) Whether the interface should be static or DHCP.

  • static_routes - (Optional) Static routes for the interface.

  • virt_bridge - (Optional) The virtual bridge to attach to.

Attribute Reference

All optional attributes listed above are also exported.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/cobbler/r/system.html