task core
Project description
Install
pip install .
Example invocation (tests framework)
task-core-example
Example invocation (from folder)
task-core --services-dir examples/directord/services \
--inventory-file examples/directord/inventory.yaml \
--roles-file examples/directord/roles.yaml \
--debug
Example directord execution
This is an example that uses [https://github.com/cloudnull/directord] to setup an instance of keystone. The below bit of code assumes 4 nodes available with a stack user that can been connected to via ssh from the user running the bash script.
sudo dnf install python3-virtualenv git -y
virtualenv ~/test-venv
source ~/test-venv/bin/activate
git clone https://github.com/mwhahaha/task-core
pip install directord
pushd task-core
pip install -r requirements.txt
pip install .
popd
ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ""
for H in 2 3 4 5; do
ssh-keyscan -H -t rsa 192.168.24.$H >> ~/.ssh/known_hosts
ssh-copy-id 192.168.24.$H
done
cat > ~/catalog.yaml <<EOF
directord_server:
targets:
- host: 192.168.24.2
port: 22
username: stack
directord_clients:
args:
port: 22
username: stack
targets:
- host: 192.168.24.3
- host: 192.168.24.4
- host: 192.168.24.5
EOF
directord bootstrap --catalog $HOME/catalog.yaml --catalog ~/test-venv/share/directord/tools/directord-bootstrap-catalog.yaml
sudo chmod a+w /var/run/directord.sock
cat > ~/inventory.yaml <<EOF
hosts:
standalone-1:
role: keystone
standalone-2:
role: basic
standalone-3:
role: basic
EOF
task-core \
-s task-core/examples/directord/services/ \
-i $HOME/inventory.yaml \
-r task-core/examples/directord/roles.yaml
ssh standalone-1 openstack --os-auth-url http://standalone-1:5000/v3 --os-user-domain-name default --os-username admin --os-password keystone token issue
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
task_core-0.0.1-py3-none-any.whl
(43.7 kB
view hashes)
Close
Hashes for task-core-0.0.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2058e37046f1ecb78137d0f06dc9be44c479dde0bc5e50c73cd27176842e380 |
|
MD5 | dfc29000794ca90d8a6f9040e01b2d53 |
|
BLAKE2b-256 | 370a42daaee5abbf77aab1d584c784a5a2a3f8801db869f061f2ad2d3b7f8c87 |
Close
Hashes for task_core-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792745dd6b1dae0c9ba8990c3afdf741e58c5fba95cfadf3f82b60ce79ae03fa |
|
MD5 | db35931584e03d4c62bd73a9f2328591 |
|
BLAKE2b-256 | a86af66225faeafc3918ad998febddb14c2137b1a11e8cf353f9d4f38bd64b1e |