Browse Source

Merge "Purge metric_collector toml files from previous version" into stable/1.0

tags/1.0.0rc3^0
Jenkins 2 years ago
parent
commit
a4a0e3284a
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      deployment_scripts/puppet/manifests/controller.pp

+ 17
- 0
deployment_scripts/puppet/manifests/controller.pp View File

@@ -288,6 +288,23 @@ if hiera('lma::collector::infrastructure_alerting::server', false) {
288 288
     virtual_hostname          => '00-node-clusters',
289 289
   }
290 290
 
291
+  # Purge remaining files from previous 0.10.x version
292
+  $toml_metric_collector_to_purge = prefix([
293
+    'filter-afd_api_backends.toml', 'filter-afd_api_endpoints.toml',
294
+    'filter-afd_service_rabbitmq_disk.toml',
295
+    'filter-afd_service_rabbitmq_memory.toml',
296
+    'filter-afd_service_rabbitmq_queue.toml',
297
+    'filter-afd_workers.toml',
298
+    'filter-service_heartbeat.toml',
299
+    'encoder-nagios_gse_global_clusters.toml',
300
+    'encoder-nagios_gse_node_clusters.toml',
301
+    'output-nagios_gse_global_clusters.toml',
302
+    'output-nagios_gse_node_clusters.toml',
303
+  ], '/etc/metric_collector/')
304
+
305
+  file { $toml_metric_collector_to_purge:
306
+    ensure => absent,
307
+  } ->
291 308
   lma_collector::gse_nagios { 'services':
292 309
     openstack_deployment_name => $deployment_id,
293 310
     server                    => hiera('lma::collector::infrastructure_alerting::server'),

Loading…
Cancel
Save