This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from roquie/full_cfg
Added full configuration and public IP auto-resolving feature. Powered by issue #4.
- Loading branch information
Showing
6 changed files
with
174 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,59 @@ | ||
--- | ||
|
||
## Role variables ## | ||
|
||
ka_resolvconf_install: yes | ||
|
||
## Kontena main Variables ## | ||
|
||
# Kontena Master websocket uri (required) | ||
ka_master_uri: "ws://127.0.0.1:8080" | ||
|
||
# Kontena Grid token (required) | ||
ka_token: "secret_token" | ||
|
||
# network interface for peer/private communication (default: eth1) | ||
ka_peer_interface: "eth1" | ||
|
||
ka_config_path: "{{ (ansible_distribution_release == 'xenial') | ternary('/etc/kontena-agent.env', '/etc/default/kontena-agent') }}" | ||
|
||
|
||
## Kontena other variables ## | ||
|
||
# ka public_ip variable will be overridden if this parameter is enabled | ||
#ka_public_ip_auto_resolve: yes | ||
|
||
# Specify node public ip, overrides default resolving | ||
#ka_public_ip: "" | ||
|
||
# Specify node private ip, overrides default resolving | ||
#ka_private_ip: "" | ||
|
||
# Logging level, http://www.rubydoc.info/gems/logger/1.2.8/Logger/Severity#INFO-constant | ||
#ka_log_level: 1 | ||
|
||
# etcd image (default: kontena/etcd) | ||
#ka_etcd_image: "kontena/etcd" | ||
|
||
# etcd image version | ||
#ka_etcd_version: "2.3.7" | ||
|
||
# cadvisor image (default: kontena/cadvisor) | ||
#ka_cadvisor_image: "kontena/cadvisor" | ||
|
||
# cadvisor image version | ||
#ka_cadvisor_version: "v0.24.1" | ||
|
||
# if set to `true` agent won't start cadvisor at all | ||
#ka_cadvisor_disabled: "false" | ||
|
||
# weave net image (default: weaveworks/weave) | ||
#ka_weave_image: "weaveworks/weave" | ||
|
||
# weave exec image (default: weaveworks/weaveexec) | ||
#ka_weaveexec_image: "weaveworks/weaveexec" | ||
|
||
# weave net version | ||
#ka_weave_version: "1.9.3" | ||
|
||
# websocket timeout in seconds (default: 5.0) | ||
#ka_websocket_timeout: 5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# | ||
# {{ ansible_managed }} | ||
# | ||
|
||
# Set URL of your kontena server | ||
KONTENA_URI={{ ka_master_uri|default('ws://127.0.0.1:8080') }} | ||
|
||
# Set Kontena token | ||
KONTENA_TOKEN={{ ka_token|default('secret_token') }} | ||
|
||
# Kontena peer interface (overlay network interface) | ||
KONTENA_PEER_INTERFACE={{ ka_peer_interface }} | ||
|
||
# Specify node public ip, overrides default resolving | ||
{% if ka_public_ip is defined %} | ||
KONTENA_PUBLIC_IP={{ ka_public_ip }} | ||
{% else %} | ||
#KONTENA_PUBLIC_IP={{ ka_public_ip|default('') }} | ||
{% endif %} | ||
|
||
# Specify node private ip, overrides default resolving | ||
{% if ka_private_ip is defined %} | ||
KONTENA_PRIVATE_IP={{ ka_private_ip }} | ||
{% else %} | ||
#KONTENA_PRIVATE_IP={{ ka_private_ip|default('') }} | ||
{% endif %} | ||
|
||
# Logging level, http://www.rubydoc.info/gems/logger/1.2.8/Logger/Severity#INFO-constant | ||
{% if ka_log_level is defined %} | ||
LOG_LEVEL={{ ka_log_level }} | ||
{% else %} | ||
#LOG_LEVEL={{ ka_log_level|default(1) }} | ||
{% endif %} | ||
|
||
# etcd image (default: kontena/etcd) | ||
{% if ka_etcd_image is defined %} | ||
ETCD_IMAGE={{ ka_etcd_image }} | ||
{% else %} | ||
#ETCD_IMAGE={{ ka_etcd_image|default('kontena/etcd') }} | ||
{% endif %} | ||
|
||
# etcd image version | ||
{% if ka_etcd_version is defined %} | ||
ETCD_VERSION={{ ka_etcd_version }} | ||
{% else %} | ||
#ETCD_VERSION={{ ka_etcd_version|default('2.3.7') }} | ||
{% endif %} | ||
|
||
# cadvisor image (default: kontena/cadvisor) | ||
{% if ka_cadvisor_image is defined %} | ||
CADVISOR_IMAGE={{ ka_cadvisor_image }} | ||
{% else %} | ||
#CADVISOR_IMAGE={{ ka_cadvisor_image|default('kontena/cadvisor') }} | ||
{% endif %} | ||
|
||
# cadvisor image version | ||
{% if ka_cadvisor_version is defined %} | ||
CADVISOR_VERSION={{ ka_cadvisor_version }} | ||
{% else %} | ||
#CADVISOR_VERSION={{ ka_cadvisor_version|default('v0.24.1') }} | ||
{% endif %} | ||
|
||
# if set to `true` agent won't start cadvisor at all | ||
{% if ka_cadvisor_disabled is defined %} | ||
CADVISOR_DISABLED={{ ka_cadvisor_disabled }} | ||
{% else %} | ||
#CADVISOR_DISABLED={{ ka_cadvisor_disabled|default('false') }} | ||
{% endif %} | ||
|
||
# weave net image (default: weaveworks/weave) | ||
{% if ka_weave_image is defined %} | ||
WEAVE_IMAGE={{ ka_weave_image }} | ||
{% else %} | ||
#WEAVE_IMAGE={{ ka_weave_image|default('weaveworks/weave') }} | ||
{% endif %} | ||
|
||
# weave exec image (default: weaveworks/weaveexec) | ||
{% if ka_weaveexec_image is defined %} | ||
WEAVEEXEC_IMAGE={{ ka_weaveexec_image }} | ||
{% else %} | ||
#WEAVEEXEC_IMAGE={{ ka_weaveexec_image|default('weaveworks/weaveexec') }} | ||
{% endif %} | ||
|
||
# weave net version | ||
{% if ka_weave_version is defined %} | ||
WEAVE_VERSION={{ ka_weave_version }} | ||
{% else %} | ||
#WEAVE_VERSION={{ ka_weave_version|default('1.9.3') }} | ||
{% endif %} | ||
|
||
# websocket timeout in seconds (default: 5.0) | ||
{% if ka_websocket_timeout is defined %} | ||
WEBSOCKET_TIMEOUT={{ ka_websocket_timeout }} | ||
{% else %} | ||
#WEBSOCKET_TIMEOUT={{ ka_websocket_timeout|default('5.0') }} | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters