Skip to content

Commit

Permalink
need separate templates for .operations and project.
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Jun 7, 2017
1 parent 5685b58 commit 195d475
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
5 changes: 2 additions & 3 deletions templates/openshift/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
TEMPLATE_NAME = com.redhat.viaq-openshift

.PHONY: all clean

all:
python ../../scripts/generate_template.py template.yml ../../namespaces/
python ../../scripts/generate_template.py template-project.yml ../../namespaces/
python ../../scripts/generate_template.py template-operations.yml ../../namespaces/

clean:
rm *.template.json
18 changes: 18 additions & 0 deletions templates/openshift/template-operations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
skeleton_path: ../skeleton.json
skeleton_index_pattern_path: ../skeleton-index-pattern.json

elasticsearch_template:
name: com.redhat.viaq-openshift-operations
index_pattern: ".operations.*"
order: 10

namespaces:
- rsyslog.yml
- systemd.yml
- kubernetes.yml
- docker.yml
- pipeline_metadata.yml
- ovirt.yml
- aushape.yml
- tlog.yml
# - openshift/app_log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ skeleton_path: ../skeleton.json
skeleton_index_pattern_path: ../skeleton-index-pattern.json

elasticsearch_template:
name: com.redhat.viaq-openshift
index_pattern: "*"
name: com.redhat.viaq-openshift-project
index_pattern: "project.*"
order: 10

namespaces:
Expand Down

0 comments on commit 195d475

Please sign in to comment.