mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
doc: add example showing array-based fields
This commit is contained in:
parent
f0ccd28d3d
commit
e1c05e5a3a
13
doc/12-Handling-custom-variables.md
Normal file
13
doc/12-Handling-custom-variables.md
Normal file
@ -0,0 +1,13 @@
|
||||
Working with custom variables
|
||||
=============================
|
||||
|
||||
Icinga Director allows you to work with custom variables in a very
|
||||
powerful way. It implements the concept of `Data fields`. If you want
|
||||
your users to be able to fill specific custom variables, you need to
|
||||
add corresponding `fields` to
|
||||
|
||||
Examples
|
||||
--------
|
||||
* Add fields for existing commands
|
||||
* Allow to fill an [array of interfaces](14-Fields-example-interfaces-array.md)
|
||||
|
31
doc/14-Fields-example-interfaces-array.md
Normal file
31
doc/14-Fields-example-interfaces-array.md
Normal file
@ -0,0 +1,31 @@
|
||||
<a id="Fields-example-interfaces-array"></a>Working with fields - interfaces array example
|
||||
==============================================
|
||||
|
||||
This example wants to show you how to make use of the `Array` data type
|
||||
when creating fields for custom variables. First, please got to the `Dashboard`
|
||||
and choose the `Define data fields` dashlet:
|
||||
|
||||

|
||||
|
||||
Then create a new data field and select `Array` as it's data type:
|
||||
|
||||

|
||||
|
||||
Then create a new `Host template` (or use an existing one):
|
||||
|
||||

|
||||
|
||||
Now add your formerly created data field to your template:
|
||||
|
||||

|
||||
|
||||
That's it, now you are ready to create your first corresponding host. Once
|
||||
you add your formerly created template, a new form field for your custom
|
||||
variable will show up:
|
||||
|
||||

|
||||
|
||||
Have a look at the config preview, it will show you how your `Array`-based
|
||||
custom variable will look like once deployed:
|
||||
|
||||

|
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Loading…
x
Reference in New Issue
Block a user