Update README.md
This commit is contained in:
parent
9b081ed314
commit
9bb2fcfb21
16
README.md
16
README.md
@ -12,21 +12,21 @@ of servers within a production environment.
|
||||
QUICK START
|
||||
-----------
|
||||
|
||||
For the impatient, `sudo pip install ansible` and add these lines to your group_vars/all:
|
||||
|
||||
For the impatient, `sudo pip install ansible` :
|
||||
```bash:
|
||||
# install pip (Python package manager) and ansible
|
||||
$ sudo easy_install pip
|
||||
$ sudo pip install ansible
|
||||
```
|
||||
|
||||
and add these lines to your group_vars/all:
|
||||
```YAML:group_vars/all
|
||||
# deploy tag
|
||||
tag: Deploy1
|
||||
|
||||
# path
|
||||
seeder_files_path: ~/builds
|
||||
destination_path: /opt/hoge
|
||||
destination_path: /directorypath/hoge/
|
||||
```
|
||||
|
||||
|
||||
@ -70,6 +70,7 @@ MANUAL USAGE (ansible-lssd without a deploy strategy)
|
||||
|
||||
Modify a ./production and ./group_vars/all, manually define servers:
|
||||
|
||||
./production:
|
||||
```INI:production
|
||||
# ansible host
|
||||
[ansible_host]
|
||||
@ -90,6 +91,7 @@ localhost ansible_connection=local
|
||||
10.1.1.3
|
||||
```
|
||||
|
||||
group_vars/all:
|
||||
```YAML:group_vars/all
|
||||
# deploy tag
|
||||
tag: Deploy1
|
||||
@ -111,8 +113,13 @@ $ ansible-playbook -i prodction start_tracker.yml
|
||||
2. Create a torrent from a directory of files on the seeder, and start seeding:
|
||||
|
||||
```bash:
|
||||
$ scp -r ./builds host1:~/builds
|
||||
# copy to seeder node
|
||||
$ scp -r ./builds 10.0.0.1:~/builds
|
||||
|
||||
# create torrent file
|
||||
$ ansible-playbook -i prodction create_torrent.yml
|
||||
|
||||
# start seeding
|
||||
$ ansible-playbook -i prodction start_seeder.yml
|
||||
```
|
||||
|
||||
@ -121,6 +128,7 @@ $ ansible-playbook -i prodction start_seeder.yml
|
||||
```bash:
|
||||
$ ansible-playbook -i prodction deploy.yml
|
||||
```
|
||||
|
||||
4. Stop the seeder and tracker:
|
||||
|
||||
```bash:
|
||||
|
Loading…
Reference in New Issue
Block a user