You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1032,30 +1032,30 @@ Example usage:
1032
1032
1033
1033
<pre>
1034
1034
icinga2::object::service { 'example_service':
1035
-
$template_to_import = 'generic-service',
1036
-
$display_name = 'Example Service',
1037
-
$host_name = $::fqdn,
1038
-
$groups = ['example-servers', 'linux-servers'],
1039
-
$vars = {
1040
-
var1 = 'somevalue',
1041
-
var2 = 'someothervalue',
1042
-
},
1043
-
$check_command = example-check,
1044
-
$max_check_attempts = 5,
1045
-
$check_interval = '10m',
1046
-
$retry_interval = '1m',
1047
-
$enable_notifications = true,
1048
-
$enable_active_checks = true,
1049
-
$enable_flapping = true,
1050
-
$enable_perfdata = true,
1051
-
$flapping_threshold = '50%',
1052
-
$target_dir = '/etc/icinga2/objects/services',
1053
-
$target_file_name = "${name}.conf",
1054
-
$target_file_ensure = file,
1055
-
$target_file_owner = 'root',
1056
-
$target_file_group = 'root',
1057
-
$target_file_mode = '0644',
1058
-
$refresh_icinga2_service = true,
1035
+
$template_to_import => 'generic-service',
1036
+
$display_name => 'Example Service',
1037
+
$host_name => $::fqdn,
1038
+
$groups => ['example-servers', 'linux-servers'],
1039
+
$vars => {
1040
+
var1 => 'somevalue',
1041
+
var2 => 'someothervalue',
1042
+
},
1043
+
$check_command => example-check,
1044
+
$max_check_attempts => 5,
1045
+
$check_interval => '10m',
1046
+
$retry_interval => '1m',
1047
+
$enable_notifications => true,
1048
+
$enable_active_checks => true,
1049
+
$enable_flapping => true,
1050
+
$enable_perfdata => true,
1051
+
$flapping_threshold => '50%',
1052
+
$target_dir => '/etc/icinga2/objects/services',
1053
+
$target_file_name => "${name}.conf",
1054
+
$target_file_ensure => file,
1055
+
$target_file_owner => 'root',
1056
+
$target_file_group => 'root',
1057
+
$target_file_mode => '0644',
1058
+
$refresh_icinga2_service => true,
1059
1059
}
1060
1060
1061
1061
See [Service](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-service) on [docs.icinga.org](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc) for a full list of parameters.
0 commit comments