Skip to content

Commit

Permalink
FIX: update config vars to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsketch committed Apr 15, 2023
1 parent 497ab41 commit 67faccb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,8 @@ For example to install teleport on a node:
v: "label_value"
teleport_auth_token: "super secret auth token"
teleport_ca_pin: "not as secret ca pin"
teleport_auth_servers:
- "1st auth server"
- "2nd auth server"
teleport_proxy_server:
- "proxy server"
teleport_auth_server: "auth server"
teleport_proxy_server: "proxy server"
```

*Created Teleport Config to `/etc/teleport.yaml`*
Expand All @@ -133,10 +130,8 @@ version: v3
teleport:
auth_token: "super secret auth token"
ca_pin: "not as secret ca pin"
auth_servers:
- "1st auth server"
- "2nd auth server"
proxy_server: ['proxy server']
auth_server: "auth server"
proxy_server: proxy server
log:
output: stderr
severity: INFO
Expand Down
4 changes: 1 addition & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ teleport_architecture: "amd64-bin"
# teleport_architecture: "arm-bin"
teleport_auth_token: ""
teleport_ca_pin: ""
teleport_auth_servers:
- "https://auth.example.com"
- "127.0.0.1:3025"
teleport_auth_server: "https://auth.example.com"
teleport_url: "https://get.gravitational.com/teleport-v{{ teleport_version }}-linux-{{ teleport_architecture }}.tar.gz"
teleport_config_path: "/etc/teleport.yaml"
backup_teleport_config: yes
Expand Down
7 changes: 3 additions & 4 deletions templates/default_teleport.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ version: v3
teleport:
auth_token: "{{ teleport_auth_token }}"
ca_pin: "{{ teleport_ca_pin }}"
auth_servers:
{% for auth_server in teleport_auth_servers %}
- "{{ auth_server }}"
{% endfor %}
{% if teleport_auth_server|string %}
auth_server: {{ teleport_auth_server }}
{% endif %}
{% if teleport_proxy_server|string %}
proxy_server: {{ teleport_proxy_server }}
{% endif %}
Expand Down

0 comments on commit 67faccb

Please sign in to comment.