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

     1  ---
     2  layout: "cobbler"
     3  page_title: "Cobbler: cobbler_distro"
     4  sidebar_current: "docs-cobbler-resource-distro"
     5  description: |-
     6    Manages a distribution within Cobbler.
     7  ---
     8  
     9  # cobbler_distro
    10  
    11  Manages a distribution within Cobbler.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "cobbler_distro" "ubuntu-1404-x86_64" {
    17    name       = "foo"
    18    breed      = "ubuntu"
    19    os_version = "trusty"
    20    arch       = "x86_64"
    21    kernel     = "/var/www/cobbler/ks_mirror/Ubuntu-14.04/install/netboot/ubuntu-installer/amd64/linux"
    22    initrd     = "/var/www/cobbler/ks_mirror/Ubuntu-14.04/install/netboot/ubuntu-installer/amd64/initrd.gz"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `arch` - (Required) The architecture of the distro. Valid options
    31    are: i386, x86_64, ia64, ppc, ppc64, s390, arm.
    32  
    33  * `breed` - (Required) The "breed" of distribution. Valid options
    34    are: redhat, fedora, centos, scientific linux, suse, debian, and
    35    ubuntu. These choices may vary depending on the version of Cobbler
    36    in use.
    37  
    38  * `boot_files` - (Optional) Files copied into tftpboot beyond the
    39    kernel/initrd.
    40  
    41  * `comment` - (Optional) Free form text description.
    42  
    43  * `fetchable_files` - (Optional) Templates for tftp or wget.
    44  
    45  * `kernel` - (Required) Absolute path to kernel on filesystem. This
    46    must already exist prior to creating the distro.
    47  
    48  * `kernel_options` - (Optional) Kernel options to use with the
    49    kernel.
    50  
    51  * `kernel_options_post` - (Optional) Post install Kernel options to
    52    use with the kernel after installation.
    53  
    54  * `initrd` - (Required) Absolute path to initrd on filesystem. This
    55    must already exist prior to creating the distro.
    56  
    57  * `mgmt_classes` - (Optional) Management classes for external config
    58    management.
    59  
    60  * `name` - (Required) A name for the distro.
    61  
    62  * `os_version` - (Required) The version of the distro you are
    63    creating. This varies with the version of Cobbler you are using.
    64    An updated signature list may need to be obtained in order to
    65    support a newer version. Example: `trusty`.
    66  
    67  * `owners` - (Optional) Owners list for authz_ownership.
    68  
    69  * `redhat_management_key` - (Optional) Red Hat Management key.
    70  
    71  * `redhat_management_server` - (Optional) Red Hat Management server.
    72  
    73  * `template_files` - (Optional) File mappings for built-in config
    74    management.
    75  
    76  ## Attributes Reference
    77  
    78  All of the above Optional attributes are also exported.
    79  
    80  ## Notes
    81  
    82  The path to the `kernel` and `initrd` files must exist before
    83  creating a Distro. Usually this involves running `cobbler import ...`
    84  prior to creating the Distro.