Skip to main content

task core

Project description

CI Status

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/Directord/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

task-core-0.2.1.tar.gz (80.6 kB view details)

Uploaded Source

Built Distribution

task_core-0.2.1-py3-none-any.whl (130.6 kB view details)

Uploaded Python 3

File details

Details for the file task-core-0.2.1.tar.gz.

File metadata

  • Download URL: task-core-0.2.1.tar.gz
  • Upload date:
  • Size: 80.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8

File hashes

Hashes for task-core-0.2.1.tar.gz
Algorithm Hash digest
SHA256 712af964f5725b6bc88aadb3dce82a8595de37b9c2650db2c83ff5b630c826c5
MD5 ce5d52829c86b0abbbad56579e1d03a9
BLAKE2b-256 3430f1c3a518b6bf7ad1e41f6651b6ab2c47c0d3d5fe0f4f2826d1a527413f40

See more details on using hashes here.

Provenance

File details

Details for the file task_core-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: task_core-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 130.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8

File hashes

Hashes for task_core-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9ff3e3ff09de49c7055ffa0dbd239d2756d0661354774b508f0df1e48e147a
MD5 9f33031bbacd0e060c2a2f35c62adafc
BLAKE2b-256 2fbfa852d57eeb8a0ceaf6579f3f062f45a0c55b0433ee1374bef96b22713367

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page