Skip to content

Commit

Permalink
Add documentation for Icinga 2 templates (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel authored Jul 26, 2023
1 parent a64fe84 commit 05be1a9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions doc/role-icinga2/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,19 @@ vars.attr["key1"] = {

### Examples:

#### Host Template

```
icinga2_objects:
[...]
- name: generic-host
type: Host
file: zones.d/main/hosts/template.conf
check_command: hostalive
check_interval: 3m
template: true
```

#### Host

```
Expand Down Expand Up @@ -238,6 +251,20 @@ icinga2_objects:
- host.vars.os == Linux
```

#### Service Template

```
icinga2_objects:
[...]
- name: generic-service
type: Service
file: zones.d/main/services/template.conf
check_interval: 300s
retry_interval: 30s
order: 1
template: true
```

#### Service Apply

```
Expand Down Expand Up @@ -365,6 +392,18 @@ icinga2_objects:
"sunday": "10:00-11:00"
```

#### Notification Template

```
icinga2_objects:
[...]
- name: notification-template
type: Notification
command: generic-notification
file: zones.d/main/notification/template.conf
template: true
```

#### Notification

```
Expand Down

0 comments on commit 05be1a9

Please sign in to comment.