Skip to content

Commit

Permalink
Updated trusted cluster documentation for docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
russjones committed Apr 11, 2017
1 parent 64d5b1d commit c4f0b81
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ the YAML file to `tctl` via `-c` flag.

### Trusted Clusters

To setup Trusted Clusters:
#### Trusted Clusters with Resources

1. Update `two-role.yaml` and replace `username_goes_here` with your username.
1. Create a `Role` and `TrustedCluster` resource on Cluster Two.
Expand All @@ -87,6 +87,41 @@ To setup Trusted Clusters:
tctl -c /root/go/src/github.com/gravitational/teleport/docker/two-auth.yaml create -f docker/two-tc.yaml
```

#### Trusted Clusters with File Configuration

##### Export CAs

Run the following commands to export your CAs.

```bash
# enter cluster two and export ca
make enter-two
tctl -c /root/go/src/github.com/gravitational/teleport/docker/two-auth.yaml auth export > docker/data/two/two.ca
exit
# enter cluster one and export ca
make enter-one
tctl auth export > docker/data/one/one.ca
exit
```

##### Upate Configuration

Stop both clusters with `make stop`, update the file configuration for both clusters, and start again with `make`.

```bash
# update docker/one.yaml with the following under "auth_service"
trusted_clusters:
- key_file: /root/go/src/github.com/gravitational/teleport/docker/data/two/two.ca
```
```bash
# update docker/two-auth.yaml with the following under "auth_service"
trusted_clusters:
- key_file: /root/go/src/github.com/gravitational/teleport/docker/data/one/one.ca
allow_logins: root
tunnel_addr: one
```

### Ansible

To setup Ansible:
Expand Down

0 comments on commit c4f0b81

Please sign in to comment.