- use origin cmd
- first, install ansible:
pip install ansible - second, edit two hosts file at your machine,
- one is /etc/hosts,here is a content example:
10.131.0.1 agent01.starwhale.com 10.131.0.2 agent02.starwhale.com storage.starwhale.com controller.starwhale.com 10.131.0.3 agent03.starwhale.com 10.131.0.4 agent04.starwhale.com
- another one is $PWD/hosts,here is a content example:
[controller] controller.starwhale.com [storage] storage.starwhale.com [agent] agent01.starwhale.com agent02.starwhale.com agent03.starwhale.com agent04.starwhale.com ...
- one is /etc/hosts,here is a content example:
- then, exec:
ansible-playbook bootstrap.yaml -i hosts --user ${sudoer} --check - finally, exec:
ansible-playbook bootstrap.yaml -i hosts --user {sudoer}
- first, install ansible:
- use make cmd
make install- edit the hosts file at your machine,the same with above example
make check {sudoer}make play {sudoer}
- pip upload tutorials
Metadata
Release files for test-bootstrap 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| test-bootstrap-0.0.1.tar.gz | 7.7 kB | Details |
Release files / test-bootstrap-0.0.1.tar.gz
| Download URL | test-bootstrap-0.0.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce9e1c9460f077437c1342fb3413c426a1c9e7bdd74a2087f855cd4f504c9357
|
|
BLAKE2b-256 checksum How to use checksums |
c43f768d4d2e82cd8dbedbaf9327929e06dc10f774df95ec43f77c9ddf1d5ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|