30 lines
600 B
Markdown
30 lines
600 B
Markdown
|
---
|
||
|
layout: "cobbler"
|
||
|
page_title: "Cobbler: cobbler_snippet"
|
||
|
sidebar_current: "docs-cobbler-resource-snippet"
|
||
|
description: |-
|
||
|
Manages a Snippet within Cobbler.
|
||
|
---
|
||
|
|
||
|
# cobbler\_snippet
|
||
|
|
||
|
Manages a Snippet within Cobbler.
|
||
|
|
||
|
## Example Usage
|
||
|
|
||
|
```
|
||
|
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`.
|