Skip to content
Snippets Groups Projects
Commit 01cd4cf1 authored by Đào Hoàng Sơn's avatar Đào Hoàng Sơn Committed by Antoine Legrand
Browse files

Remove vault role from inventory_builder. (#3863)

parent 1712314f
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ import re ...@@ -41,7 +41,7 @@ import re
import sys import sys
ROLES = ['all', 'kube-master', 'kube-node', 'etcd', 'k8s-cluster:children', ROLES = ['all', 'kube-master', 'kube-node', 'etcd', 'k8s-cluster:children',
'calico-rr', 'vault'] 'calico-rr']
PROTECTED_NAMES = ROLES PROTECTED_NAMES = ROLES
AVAILABLE_COMMANDS = ['help', 'print_cfg', 'print_ips', 'load'] AVAILABLE_COMMANDS = ['help', 'print_cfg', 'print_ips', 'load']
_boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True, _boolean_states = {'1': True, 'yes': True, 'true': True, 'on': True,
...@@ -250,7 +250,6 @@ class KubesprayInventory(object): ...@@ -250,7 +250,6 @@ class KubesprayInventory(object):
def set_etcd(self, hosts): def set_etcd(self, hosts):
for host in hosts: for host in hosts:
self.add_host_to_group('etcd', host) self.add_host_to_group('etcd', host)
self.add_host_to_group('vault', host)
def load_file(self, files=None): def load_file(self, files=None):
'''Directly loads JSON, or YAML file to inventory.''' '''Directly loads JSON, or YAML file to inventory.'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment