Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
4a36b091
Commit
4a36b091
authored
7 years ago
by
Wong Hoi Sing Edison
Browse files
Options
Downloads
Patches
Plain Diff
Update default CONFIG_FILE for contrib/inventory_builder/inventory.py
parent
874ec8fc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/inventory_builder/inventory.py
+2
-2
2 additions, 2 deletions
contrib/inventory_builder/inventory.py
with
2 additions
and
2 deletions
contrib/inventory_builder/inventory.py
+
2
−
2
View file @
4a36b091
...
...
@@ -54,7 +54,7 @@ def get_var_as_bool(name, default):
# Configurable as shell vars start
CONFIG_FILE
=
os
.
environ
.
get
(
"
CONFIG_FILE
"
,
"
./inventory
.cfg
"
)
CONFIG_FILE
=
os
.
environ
.
get
(
"
CONFIG_FILE
"
,
"
./inventory
/sample/hosts.ini
"
)
# Reconfigures cluster distribution at scale
SCALE_THRESHOLD
=
int
(
os
.
environ
.
get
(
"
SCALE_THRESHOLD
"
,
50
))
MASSIVE_SCALE_THRESHOLD
=
int
(
os
.
environ
.
get
(
"
SCALE_THRESHOLD
"
,
200
))
...
...
@@ -318,7 +318,7 @@ Delete a host by id: inventory.py -node1
Configurable env vars:
DEBUG Enable debug printing. Default: True
CONFIG_FILE File to write config to Default: ./inventory
.cfg
CONFIG_FILE File to write config to Default: ./inventory
/sample/hosts.ini
HOST_PREFIX Host prefix for generated hosts. Default: node
SCALE_THRESHOLD Separate ETCD role if # of nodes >= 50
MASSIVE_SCALE_THRESHOLD Separate K8s master and ETCD if # of nodes >= 200
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment