We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8daecf4 commit 6e651cfCopy full SHA for 6e651cf
1 file changed
manifests/config.pp
@@ -1,6 +1,12 @@
1
# == Class: influxdb::config
2
# More information on these settings available at: http://influxdb.org/docs/configuration.html
3
class influxdb::config {
4
+ $admin_presence = $admin_port ? {
5
+ "" => absent,
6
+ undef => absent,
7
+ default => present,
8
+ }
9
+
10
ini_setting { 'hostname':
11
section => '',
12
setting => 'hostname',
@@ -28,12 +34,14 @@
28
34
29
35
# [admin]
30
36
ini_setting { 'admin_port':
37
+ ensure => $admin_presence,
31
38
section => 'admin',
32
39
setting => 'port',
33
40
value => $influxdb::admin_port,
41
}
42
43
ini_setting { 'admin_assets':
44
45
46
setting => 'assets',
47
value => "\"${influxdb::admin_assets}\"",
0 commit comments