Skip to content

Commit

Permalink
Merge pull request #100 from scality/allow_disabling_es
Browse files Browse the repository at this point in the history
Fix #98: allow elasticsearch to be disabled via configuration flag
  • Loading branch information
Zempashi committed Jul 4, 2018
2 parents 38a344b + d76220b commit 551d03d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions metal-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
tags: ['heapster']
- role: kube_elasticsearch
tags: ['elasticsearch']
when: metalk8s_elasticsearch_enabled|bool
- role: kube_metrics_server
tags: ['metrics-server']

Expand Down
3 changes: 3 additions & 0 deletions roles/kube_elasticsearch/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
metalk8s_elasticsearch_enabled: True


debug: false

remove_metal_k8s_temporary_file: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ metal_k8s_storage_class:
size: 11G
lv02:
size: 8G

metalk8s_elasticsearch_enabled: False
2 changes: 1 addition & 1 deletion tests/single-node/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ setup_suite() {
make_shell true

echo "Deploy the cluster"
make_shell ansible-playbook -i "$(pwd)/inventory" metal-k8s.yml --skip elasticsearch || die
make_shell ansible-playbook -i "$(pwd)/inventory" metal-k8s.yml|| die

KUBECONFIG=$(pwd)/inventory/artifacts/admin.conf
export KUBECONFIG
Expand Down

0 comments on commit 551d03d

Please sign in to comment.