github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/ignition/d/systemd_unit.html.md (about)

     1  ---
     2  layout: "ignition"
     3  page_title: "Ignition: ignition_systemd_unit"
     4  sidebar_current: "docs-ignition-datasource-systemd-unit"
     5  description: |-
     6    Describes the desired state of the systemd units.
     7  ---
     8  
     9  # ignition\_systemd\_unit
    10  
    11  Describes the desired state of the systemd units.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "ignition_systemd_unit" "example" {
    17  	name = "example.service"
    18  	content = "[Service]\nType=oneshot\nExecStart=/usr/bin/echo Hello World\n\n[Install]\nWantedBy=multi-user.target"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `name` - (Required) Tthe name of the unit. This must be suffixed with a valid unit type (e.g. _thing.service_).
    27  
    28  * `enable` - (Optional) Whether or not the service shall be enabled. When true, the service is enabled. In order for this to have any effect, the unit must have an install section. (default true)
    29  
    30  * `mask` - (Optional) Whether or not the service shall be masked. When true, the service is masked by symlinking it to _/dev/null_.
    31  
    32  * `content` - (Required) The contents of the unit. Optional when a dropin is provided.
    33  
    34  * `dropin` - (Optional) The list of drop-ins for the unit.
    35  
    36  The `dropin` block supports:
    37  
    38  * `name` - (Required) The name of the drop-in. This must be suffixed with _.conf_.
    39  
    40  * `content` - (Optional) The contents of the drop-in.
    41  
    42  ## Attributes Reference
    43  
    44  The following attributes are exported:
    45  
    46  * `id` - ID used to reference this resource in _ignition_config_.