2016-03-23 06:00:34 +01:00
|
|
|
---
|
|
|
|
layout: "cobbler"
|
|
|
|
page_title: "Cobbler: cobbler_snippet"
|
|
|
|
sidebar_current: "docs-cobbler-resource-snippet"
|
|
|
|
description: |-
|
|
|
|
Manages a Snippet within Cobbler.
|
|
|
|
---
|
|
|
|
|
2017-04-10 18:15:47 +02:00
|
|
|
# cobbler_snippet
|
2016-03-23 06:00:34 +01:00
|
|
|
|
|
|
|
Manages a Snippet within Cobbler.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-10 18:15:47 +02:00
|
|
|
```hcl
|
2016-03-23 06:00:34 +01:00
|
|
|
resource "cobbler_snippet" "my_snippet" {
|
|
|
|
name = "/var/lib/cobbler/snippets/my_snippet"
|
|
|
|
body = "<content of snippet>"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `body` - (Required) The body of the snippet.
|
|
|
|
|
|
|
|
* `name` - (Required) The name of the snippet. This must be the full
|
|
|
|
path, including `/var/lib/cobbler/snippets`.
|