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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
2e6a260a
Unverified
Commit
2e6a260a
authored
Apr 18, 2018
by
Spencer Smith
Committed by
GitHub
Apr 18, 2018
Browse files
Options
Downloads
Plain Diff
Merge pull request #2683 from rsmitty/custom-etcd-vars
support custom env vars for etcd
parents
b2756d14
49c6bf8f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/etcd/defaults/main.yml
+6
-0
6 additions, 0 deletions
roles/etcd/defaults/main.yml
roles/etcd/templates/etcd.env.j2
+4
-0
4 additions, 0 deletions
roles/etcd/templates/etcd.env.j2
with
10 additions
and
0 deletions
roles/etcd/defaults/main.yml
+
6
−
0
View file @
2e6a260a
...
...
@@ -31,6 +31,12 @@ etcd_election_timeout: "5000"
etcd_metrics
:
"
basic"
## A dictionary of extra environment variables to add to etcd.env, formatted like:
## etcd_extra_vars:
## ETCD_VAR1: "value1"
## ETCD_VAR2: "value2"
etcd_extra_vars
:
{}
# Limits
# Limit memory only if <4GB memory on host. 0=unlimited
etcd_memory_limit
:
"
{%
if
ansible_memtotal_mb
<
4096
%}512M{%
else
%}0{%
endif
%}"
...
...
This diff is collapsed.
Click to expand it.
roles/etcd/templates/etcd.env.j2
+
4
−
0
View file @
2e6a260a
...
...
@@ -27,3 +27,7 @@ ETCD_PEER_TRUSTED_CA_FILE={{ etcd_cert_dir }}/ca.pem
ETCD_PEER_CERT_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}.pem
ETCD_PEER_KEY_FILE={{ etcd_cert_dir }}/member-{{ inventory_hostname }}-key.pem
ETCD_PEER_CLIENT_CERT_AUTH={{ etcd_peer_client_auth }}
{% for key, value in etcd_extra_vars.iteritems() %}
{{ key }}={{ value }}
{% endfor %}
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