summaryrefslogtreecommitdiffstats
path: root/doc/14-Fields-example-interfaces-array.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:12 +0000
commitcd989f9c3aff968e19a3aeabc4eb9085787a6673 (patch)
treefbff2135e7013f196b891bbde54618eb050e4aaf /doc/14-Fields-example-interfaces-array.md
parentInitial commit. (diff)
downloadicingaweb2-module-director-cd989f9c3aff968e19a3aeabc4eb9085787a6673.tar.xz
icingaweb2-module-director-cd989f9c3aff968e19a3aeabc4eb9085787a6673.zip
Adding upstream version 1.10.2.upstream/1.10.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/14-Fields-example-interfaces-array.md')
-rw-r--r--doc/14-Fields-example-interfaces-array.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/14-Fields-example-interfaces-array.md b/doc/14-Fields-example-interfaces-array.md
new file mode 100644
index 0000000..e2a3ba6
--- /dev/null
+++ b/doc/14-Fields-example-interfaces-array.md
@@ -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:
+
+![Dashboard - Define data fields](screenshot/director/14_fields-for-interfaces/141_define_datafields.png)
+
+Then create a new data field and select `Array` as its data type:
+
+![Define data field - Array](screenshot/director/14_fields-for-interfaces/142_add_datafield.png)
+
+Then create a new `Host template` (or use an existing one):
+
+![Define host template](screenshot/director/14_fields-for-interfaces/143_add_host_template.png)
+
+Now add your formerly created data field to your template:
+
+![Add field to template](screenshot/director/14_fields-for-interfaces/144_add_template_field.png)
+
+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:
+
+![Create host with given field](screenshot/director/14_fields-for-interfaces/145_create_host.png)
+
+Have a look at the config preview, it will show you how your `Array`-based
+custom variable will look like once deployed:
+
+![Host config preview with Array](screenshot/director/14_fields-for-interfaces/146_config_preview.png)