You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are the default variables with their default values as defined in `defaults/main.yml`
32
31
32
+
```
33
+
teleport_nodename: ""
34
+
```
35
+
The nodename to apply in the configuration. Keep it as an empty string to let teleport use the hostname of the machine.
36
+
37
+
```
38
+
teleport_autodetect_version: false
39
+
```
40
+
Whether or not try to autodetect the server version by querying its API.
41
+
33
42
```
34
43
teleport_version
35
44
```
36
-
The version of teleport to install. See [teleport downloads](https://goteleport.com/teleport/download/) for available versions.
45
+
The version of teleport to install. See [teleport downloads](https://goteleport.com/teleport/download/) for available versions. Keep it as an empty string if you want the role to autodetect the server version.
37
46
38
47
```
39
48
teleport_architecture
@@ -45,6 +54,21 @@ Change `teleport_architecture` any of the following:
45
54
-`amd64-bin` if you are running on x86_64/AMD64 based devices.
46
55
-`386-bin` if you are running on i386/Intel based devices.
47
56
57
+
```
58
+
teleport_install_method: "tar"
59
+
```
60
+
The method used for installation, currently supported by the role:
61
+
-`tar` Download an archive.
62
+
-`apt` Install gravitational keyring and the packages requested via apt.
63
+
64
+
```
65
+
teleport_edition: "oss"
66
+
```
67
+
This is only used with teleport_install_method: "apt":
68
+
-`oss` if you are using the community edition.
69
+
-`enterprise` if you are using the self-hosted edition.
70
+
-`cloud` if you are using the cloud edition.
71
+
48
72
```
49
73
teleport_config_template
50
74
```
@@ -53,24 +77,29 @@ The template to use for the teleport configuration file. The default is `templat
53
77
There are many [options available](https://goteleport.com/docs/setup/reference/config/) and you can substitute in your own template and add any variables you want.
54
78
55
79
```
56
-
teleport_service_template
80
+
teleport_ssh_labels
57
81
```
58
-
The template to use for the teleport service file. The default is `templates/default_teleport.service.j2`. You can substitute in your own template and add any variables you want.
82
+
A list of list of key and values to template into the default teleport_config_template. Examples are shown as defaults above.
83
+
84
+
```
85
+
teleport_ssh_commands
86
+
```
87
+
A list of dictionaries to template into the default teleport_config_template. Examples are shown as defaults above.
59
88
60
89
```
61
90
teleport_ca_pin
62
91
```
63
92
The CA pin to use for the teleport configuration. This is optional, but [recommended](https://goteleport.com/docs/setup/admin/adding-nodes/#untrusted-auth-servers).
64
93
65
94
```
66
-
teleport_config_path
95
+
teleport_auth_server
67
96
```
68
-
The path to the teleport configuration file. The default is `/etc/teleport.yaml`.
97
+
The authentication server to use for the teleport configuration. Examples are shown as defaults above.
69
98
70
99
```
71
-
teleport_auth_servers
100
+
teleport_proxy_server
72
101
```
73
-
The list of authentication servers to use for the teleport configuration. Examples are shown as defaults above.
102
+
The proxy server to user for the teleport configuration. Examples are shown as defaults above.
74
103
75
104
```
76
105
backup_teleport_config
@@ -89,7 +118,9 @@ Default `yes`. Controls if this role modifies the teleport config file.
89
118
90
119
## Upgrading Teleport
91
120
92
-
When the role is run, it checks if the installed version matches the version specified in `teleport_version`. If different then it will download the latest version and install it.
121
+
For `tar` installation method, when the role is run, it checks if the installed version matches the version specified in `teleport_version`. If different then it will download the latest version and install it.
122
+
123
+
For `apt` installation method, the role will update the packages from the repository.
93
124
94
125
When performing an upgrade, a backup of the current configuration file in `teleport_config_path` will be created and a new configuration file templated in its place. When doing this a `teleport_auth_token` and `teleport_ca_pin` do not need to be provided, as they are pulled from the existing configuration file, and then templated into the new configuration file.
95
126
@@ -116,10 +147,22 @@ For example to install teleport on a node:
0 commit comments