Skip to main content

Simple TOSCA orchestrator

Project description

opera aims to be a lightweight orchestrator compliant with OASIS TOSCA. The initial compliance is with the TOSCA Simple Profile YAML v1.2.

Quickstart

The simplest way to test opera is to install it into virtual environment:

$ mkdir ~/opera && cd ~/opera
$ python3 -m venv .venv && . .venv/bin/activate
(.venv) $ pip install opera

To test if everything is working as expected, we can now try to deploy a hello-world service:

(.venv) $ curl -L \
      https://github.com/xlab-si/xopera-examples/archive/master.tar.gz \
  | tar -xzf -
(.venv) $ cd xopera-examples-master/01-hello-world
(.venv) $ opera deploy hello service.yaml

If nothing went wrong, new empty file has been created at /tmp/playing-opera/hello/hello.txt.

Prerequisites

opera requires python 3 and a virtual environment. In a typical modern Linux environment, we should already be set. In Ubuntu, however, we might need to run the following commands:

$ sudo apt update
$ sudo apt install -y python3-venv python3-wheel python-wheel-common

OpenStack client setup

Because using OpenStack modules from Ansible playbooks is quite common, we can install opera with all required OpenStack libraries by running:

(.venv) $ pip install -U opera[openstack]

Before we can actually use the OpenStack functionality, we also need to obtain the OpenStack credentials. If we log into OpenStack and navigate to the Access & Security -> API Access page, we can download the rc file with all required information.

At the start of each session (e.g., when we open a new command line console), we must source the rc file by running:

(venv) $ . openstack.rc

After we enter the password, we are ready to start using the OpenStack modules in playbooks that implement life cycle operations.

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

opera-0.1.4.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

opera-0.1.4-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file opera-0.1.4.tar.gz.

File metadata

  • Download URL: opera-0.1.4.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.6

File hashes

Hashes for opera-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3d0adf32cc051353524822e7c0b98cb9e70a118163fe968bf59c48548ad2e0df
MD5 1820e6946e7f9f4ee59c4623dde1fa05
BLAKE2b-256 a5c1bde3ecc2a2acb8f86715d7599db6f4bcb5d85bb5be24b6005d5ba6ea55f3

See more details on using hashes here.

File details

Details for the file opera-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: opera-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.6

File hashes

Hashes for opera-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 10b89f68cc6efa7ac31693790e0078bbd2db42403755450b12e00113e28f5efb
MD5 e2a1928c26aeb6a66cdd669d1c1c52fc
BLAKE2b-256 40616ff4d46e3e622e7786cf09be982157333097e21db3161338b40fdfc8777c

See more details on using hashes here.

Supported by

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