Skip to content

Commit

Permalink
op-guide: update tidb-ansible and version note (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 authored and CaitinChen committed Sep 11, 2018
1 parent 84acfa3 commit f42b99f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions op-guide/ansible-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,15 @@ Make sure you have logged in to the Control Machine using the `root` user accoun
```
4. Generate the SSH key.
Execute the `su` command to switch the user from `root` to `tidb`. Create the SSH key for the `tidb` user account and hit the Enter key when `Enter passphrase` is prompted. After successful execution, the SSH private key file is `/home/tidb/.ssh/id_rsa`, and the SSH public key file is `/home/tidb/.ssh/id_rsa.pub`.
Execute the `su` command to switch the user from `root` to `tidb`.
```
# su - tidb
```
Create the SSH key for the `tidb` user account and hit the Enter key when `Enter passphrase` is prompted. After successful execution, the SSH private key file is `/home/tidb/.ssh/id_rsa`, and the SSH public key file is `/home/tidb/.ssh/id_rsa.pub`.
```
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/tidb/.ssh/id_rsa):
Expand All @@ -119,11 +124,16 @@ Make sure you have logged in to the Control Machine using the `root` user accoun
## Step 3: Download TiDB-Ansible to the Control Machine
1. Log in to the Control Machine using the `tidb` user account and enter the `/home/tidb` directory.
1. Log in to the Control Machine using the `tidb` user account and enter the `/home/tidb` directory. The corresponding relationship between the `tidb-ansible` branch and TiDB versions is as follows:
| tidb-ansible branch | TiDB version | Note |
| ------------------- | ------------ | ---- |
| release-2.0 | 2.0 version | This is the latest stable version. You can use it in production. |
| master | master version | This version includes the latest features with a daily update. |
2. Download the corresponding TiDB-Ansible version from the [TiDB-Ansible project](https://github.com/pingcap/tidb-ansible). The default folder name is `tidb-ansible`.
2. Download the corresponding TiDB-Ansible branch from the [TiDB-Ansible project](https://github.com/pingcap/tidb-ansible). The default folder name is `tidb-ansible`.
- Download the 2.0 GA version:
- Download the 2.0 version:
```bash
$ git clone -b release-2.0 https://github.com/pingcap/tidb-ansible.git
Expand Down

0 comments on commit f42b99f

Please sign in to comment.