github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/cobbler/r/system.html.markdown (about)

     1  ---
     2  layout: "cobbler"
     3  page_title: "Cobbler: cobbler_system"
     4  sidebar_current: "docs-cobbler-resource-system"
     5  description: |-
     6    Manages a System within Cobbler.
     7  ---
     8  
     9  # cobbler_system
    10  
    11  Manages a System within Cobbler.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "cobbler_system" "my_system" {
    17    name         = "my_system"
    18    profile      = "${cobbler_profile.my_profile.name}"
    19    name_servers = ["8.8.8.8", "8.8.4.4"]
    20    comment      = "I'm a system"
    21  
    22    interface {
    23      name        = "eth0"
    24      mac_address = "aa:bb:cc:dd:ee:ff"
    25      static      = true
    26      ip_address  = "1.2.3.4"
    27      netmask     = "255.255.255.0"
    28    }
    29  
    30    interface {
    31      name        = "eth1"
    32      mac_address = "aa:bb:cc:dd:ee:fa"
    33      static      = true
    34      ip_address  = "1.2.3.5"
    35      netmask     = "255.255.255.0"
    36    }
    37  }
    38  ```
    39  
    40  ## Argument Reference
    41  
    42  The following arguments are supported:
    43  
    44  * `boot_files` - (Optional) TFTP boot files copied into tftpboot.
    45  
    46  * `comment` - (Optional) Free form text description
    47  
    48  * `enable_gpxe` - (Optional) Use gPXE instead of PXELINUX.
    49  
    50  * `fetchable_files` - (Optional) Templates for tftp or wget.
    51  
    52  * `gateway` - (Optional) Network gateway.
    53  
    54  * `hostname` - (Optional) Hostname of the system.
    55  
    56  * `image` - (Optional) Parent image (if no profile is used).
    57  
    58  * `interface` - (Optional)
    59  
    60  * `ipv6_default_device` - (Optional) IPv6 default device.
    61  
    62  * `kernel_options` - (Optional) Kernel options.
    63    ex: selinux=permissive.
    64  
    65  * `kernel_options_post` - (Optional) Kernel options (post install).
    66  
    67  * `kickstart` - (Optional) Path to kickstart template.
    68  
    69  * `ks_meta` - (Optional) Kickstart metadata.
    70  
    71  * `ldap_enabled` - (Optional) Configure LDAP at next config update.
    72  
    73  * `ldap_type` - (Optional) LDAP management type.
    74  
    75  * `mgmt_classes` - (Optional) Management classes for external config
    76    management.
    77  * `mgmt_parameters` - (Optional) Parameters which will be handed to
    78    your management application. Must be a valid YAML dictionary.
    79  
    80  * `monit_enabled` - (Optional) Configure monit on this machine at
    81    next config update.
    82  
    83  * `name_servers_search` - (Optional) Name servers search path.
    84  
    85  * `name_servers` - (Optional) Name servers.
    86  
    87  * `name` - (Required) The name of the system.
    88  
    89  * `netboot_enabled` - (Optional) (re)Install this machine at next
    90    boot.
    91  
    92  * `owners` - (Optional) Owners list for authz_ownership.
    93  
    94  * `power_address` - (Optional) Power management address.
    95  
    96  * `power_id` - (Optional) Usually a plug number or blade name if
    97    power type requires it.
    98  
    99  * `power_pass` - (Optional) Power management password.
   100  
   101  * `power_type` - (Optional) Power management type.
   102  
   103  * `power_user` - (Optional) Power management user.
   104  
   105  * `profile` - (Required) Parent profile.
   106  
   107  * `proxy` - (Optional) Proxy URL.
   108  
   109  * `redhat_management_key` - (Optional) Red Hat management key.
   110  
   111  * `redhat_management_server` - (Optional) Red Hat management server.
   112  
   113  * `status` - (Optional) System status (development, testing,
   114    acceptance, production).
   115  
   116  * `template_files` - (Optional) File mappings for built-in
   117    configuration management.
   118  
   119  * `template_remote_kickstarts` - (Optional) template remote
   120    kickstarts.
   121  
   122  * `virt_auto_boot` - (Optional) Auto boot the VM.
   123  
   124  * `virt_cpus` - (Optional) Number of virtual CPUs in the VM.
   125  
   126  * `virt_disk_driver` - (Optional) The on-disk format for the
   127    virtualization disk.
   128  
   129  * `virt_file_size` - (Optional) Virt file size.
   130  
   131  * `virt_path` - (Optional) Path to the VM.
   132  
   133  * `virt_pxe_boot` - (Optional) Use PXE to build this VM?
   134  
   135  * `virt_ram` - (Optional) The amount of RAM for the VM.
   136  
   137  * `virt_type` - (Optional) Virtualization technology to use: xenpv,
   138    xenfv, qemu, kvm, vmware, openvz.
   139  
   140  The `interface` block supports:
   141  
   142  * `name` - (Required) The device name of the interface. ex: eth0.
   143  
   144  * `cnames` - (Optional) Canonical name records.
   145  
   146  * `dhcp_tag` - (Optional) DHCP tag.
   147  
   148  * `dns_name` - (Optional) DNS name.
   149  
   150  * `bonding_opts` - (Optional) Options for bonded interfaces.
   151  
   152  * `bridge_opts` - (Optional) Options for bridge interfaces.
   153  
   154  * `gateway` - (Optional) Per-interface gateway.
   155  
   156  * `interface_type` - (Optional) The type of interface: na, master,
   157    slave, bond, bond_slave, bridge, bridge_slave, bonded_bridge_slave.
   158  
   159  * `interface_master` - (Optional) The master interface when slave.
   160  
   161  * `ip_address` - (Optional) The IP address of the interface.
   162  
   163  * `ipv6_address` - (Optional) The IPv6 address of the interface.
   164  
   165  * `ipv6_mtu` - (Optional) The MTU of the IPv6 address.
   166  
   167  * `ipv6_static_routes` - (Optional) Static routes for the IPv6
   168    interface.
   169  
   170  * `ipv6_default_gateway` - (Optional) The default gateawy for the
   171    IPv6 address / interface.
   172  
   173  * `mac_address` - (Optional) The MAC address of the interface.
   174  
   175  * `management` - (Optional) Whether this interface is a management
   176    interface.
   177  
   178  * `netmask` - (Optional) The IPv4 netmask of the interface.
   179  
   180  * `static` - (Optional) Whether the interface should be static or
   181    DHCP.
   182  
   183  * `static_routes` - (Optional) Static routes for the interface.
   184  
   185  * `virt_bridge` - (Optional) The virtual bridge to attach to.
   186  
   187  ## Attribute Reference
   188  
   189  All optional attributes listed above are also exported.