Skip to content

Commit 5959dc4

Browse files
hkajtruthbk
authored andcommitted
[flare] add auto_conf templates
1 parent 472509e commit 5959dc4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/flare.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
# DD imports
3737
from checks.check_status import CollectorStatus, DogstatsdStatus, ForwarderStatus
3838
from config import (
39+
get_auto_confd_path,
3940
get_confd_path,
4041
get_config,
4142
get_config_path,
@@ -316,6 +317,14 @@ def _add_conf_tar(self):
316317
self.CHECK_CREDENTIALS
317318
)
318319

320+
for file_path in glob.glob(os.path.join(get_auto_confd_path(), '*.yaml')):
321+
if self._can_read(file_path, output=False):
322+
self._add_clean_conf(
323+
file_path,
324+
os.path.join('etc', 'confd', 'auto_conf'),
325+
self.CHECK_CREDENTIALS
326+
)
327+
319328
# Collect SDK-package related information
320329
def _add_sdk_info_tar(self):
321330
sdk_manifest = {}

0 commit comments

Comments
 (0)