Fuel plugin to deploy OpenStack Telemetry services (Ceilometer, Aodh)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

environment_config.yaml 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. attributes:
  2. metadata:
  3. # Settings group can be one of "general", "security", "compute", "network",
  4. # "storage", "logging", "openstack_services" and "other".
  5. restrictions:
  6. - condition: "settings:ceilometer-redis.metadata.enabled == true"
  7. message: "Please do not use the Telemetry plugin with Redis plugin enabled"
  8. strict: false
  9. action: disable
  10. group: 'other'
  11. advanced_settings:
  12. label: "Advanced settings"
  13. value: false
  14. description: "Enable Ceilometer Event API and Resource API"
  15. weight: 10
  16. type: checkbox
  17. restrictions:
  18. - condition: "(settings:influxdb_grafana == null) or (settings:influxdb_grafana.metadata.enabled != true)"
  19. action: none
  20. strict: false
  21. message: "The StackLight InfluxDB-Grafana plugin must be installed and enabled. Or use InfluxDB in 'remote' mode"
  22. - condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true)
  23. and (settings:telemetry.event_api.value == true or settings:telemetry.resource_api.value == true)"
  24. action: none
  25. strict: false
  26. message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'remote' mode"
  27. event_api:
  28. label: "Enable Ceilometer Event API"
  29. value: false
  30. description: "Enable Ceilometer Event API with Elasticsearch as a backend"
  31. weight: 11
  32. type: checkbox
  33. restrictions:
  34. - condition: "settings:telemetry.advanced_settings.value == false"
  35. action: hide
  36. - condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true) and settings:telemetry.event_api.value == true"
  37. action: none
  38. strict: false
  39. message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'remote' mode"
  40. resource_api:
  41. label: "Enable Ceilometer Resource API"
  42. value: false
  43. description: "Enable Ceilometer Resource API with Elasticsearch as a backend"
  44. weight: 12
  45. type: checkbox
  46. restrictions:
  47. - condition: "settings:telemetry.advanced_settings.value == false"
  48. action: hide
  49. - condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true) and settings:telemetry.resource_api.value == true"
  50. action: none
  51. strict: false
  52. message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'remote' mode"
  53. elasticsearch_mode:
  54. type: "radio"
  55. value: 'local'
  56. weight: 20
  57. label: 'Elasticsearch mode'
  58. values:
  59. - data: "local"
  60. label: "Use local Elasticsearch"
  61. description: "If selected, Elasticsearch installed via the StackLight Elasticsearch-Kibana plugin will be used"
  62. restrictions:
  63. - condition: "(settings:elasticsearch_kibana == null) or (settings:elasticsearch_kibana.metadata.enabled != true)"
  64. action: disable
  65. strict: false
  66. message: "The StackLight Elasticsearch-Kibana plugin must be installed and enabled. Or use Elasticsearch in 'external' mode"
  67. - data: "remote"
  68. label: 'Use external Elasticsearch'
  69. restrictions:
  70. - condition: "settings:telemetry.advanced_settings.value == false"
  71. action: hide
  72. - condition: "(settings:telemetry.event_api.value == false) and (settings:telemetry.resource_api.value == false)"
  73. action: disable
  74. elastic_search_ip:
  75. value: ''
  76. label: 'External Elasticsearch IP or DNS name'
  77. weight: 30
  78. type: "text"
  79. regex:
  80. source: '^[a-zA-Z\d][a-zA-Z\d_\-.]+$'
  81. error: "Invalid address or name."
  82. restrictions:
  83. - condition: "settings:telemetry.elasticsearch_mode.value == 'local'"
  84. action: disable
  85. - condition: "settings:telemetry.advanced_settings.value == false"
  86. action: hide
  87. - condition: "(settings:telemetry.event_api.value == false) and (settings:telemetry.resource_api.value == false)"
  88. action: disable
  89. elastic_search_port:
  90. value: '9200'
  91. label: 'External Elasticsearch port'
  92. weight: 40
  93. type: "text"
  94. regex:
  95. source: '^\d{0,5}$'
  96. error: "You must provide a valid port number"
  97. restrictions:
  98. - condition: "settings:telemetry.elasticsearch_mode.value == 'local'"
  99. action: disable
  100. - condition: "settings:telemetry.advanced_settings.value == false"
  101. action: hide
  102. - condition: "(settings:telemetry.event_api.value == false) and (settings:telemetry.resource_api.value == false)"
  103. action: disable
  104. influxdb_mode:
  105. type: "radio"
  106. value: 'local'
  107. weight: 50
  108. label: 'InfluxDB mode'
  109. values:
  110. - data: 'local'
  111. label: "Use local InfluxDB"
  112. description: "If selected, InfluxDB installed via The StackLight InfluxDB-Grafana plugin will be used"
  113. restrictions:
  114. - condition: "(settings:influxdb_grafana == null) or (settings:influxdb_grafana.metadata.enabled != true)"
  115. action: disable
  116. strict: false
  117. message: "The StackLight InfluxDB-Grafana plugin must be installed and enabled. Or use InfluxDB 'External' option below"
  118. - data: 'remote'
  119. label: "Use external InfluxDB"
  120. influxdb_address:
  121. value: ''
  122. label: 'External InfluxDB'
  123. weight: 51
  124. type: "text"
  125. regex:
  126. source: '^[a-zA-Z\d][a-zA-Z\d_\-.]+$'
  127. error: "Invalid address or name"
  128. restrictions:
  129. - condition: "settings:telemetry.influxdb_mode.value == 'local'"
  130. action: disable
  131. influxdb_port:
  132. value: '8086'
  133. label: 'External InfluxDB port'
  134. weight: 52
  135. type: "text"
  136. regex:
  137. source: '^\d{0,5}$'
  138. error: "You must provide a valid port number"
  139. restrictions:
  140. - condition: "settings:telemetry.influxdb_mode.value == 'local'"
  141. action: disable
  142. influxdb_database:
  143. value: 'ceilometer'
  144. label: 'Extenal database name'
  145. description: ''
  146. weight: 53
  147. type: "text"
  148. regex: &not_empty_parameter
  149. source: '\S'
  150. error: "Invalid value"
  151. restrictions:
  152. - condition: "settings:telemetry.influxdb_mode.value == 'local'"
  153. action: disable
  154. influxdb_user:
  155. value: ''
  156. label: 'External InfluxDB user'
  157. description: "Username for external InfluxDB"
  158. weight: 54
  159. type: "text"
  160. regex:
  161. source: '\S'
  162. error: "You must provide a username"
  163. restrictions:
  164. - condition: "settings:telemetry.influxdb_mode.value == 'local'"
  165. action: disable
  166. influxdb_password:
  167. value: ''
  168. label: 'External InfluxDB password'
  169. description: "Password for external InfluxDB"
  170. weight: 55
  171. type: "password"
  172. regex:
  173. source: '^[\S]{4,}$'
  174. error: "You must provide a password with at least 4 characters"
  175. restrictions:
  176. - condition: "settings:telemetry.influxdb_mode.value == 'local'"
  177. action: disable
  178. metadata_ceilo:
  179. type: "radio"
  180. value: 'no'
  181. weight: 60
  182. label: 'Extra Metadata for Ceilometer samples'
  183. values:
  184. - data: 'yes'
  185. label: "yes"
  186. description: "If selected, extra Metadata can be added"
  187. - data: 'no'
  188. label: "no"
  189. description: "Default values for 'metadata' will be used if set"
  190. metadata_fields:
  191. value: ''
  192. label: 'Extra Metadata'
  193. description: 'Specify the required metadata to be kept along with Ceilometer samples. This field is important if you are going to perform metadata-based Ceilometer queries.'
  194. weight: 61
  195. type: "text"
  196. restrictions:
  197. - condition: "settings:telemetry.metadata_ceilo.value == 'no'"
  198. action: hide