Skip to main content

An `edwh`plugin to work with multipass instances for local development.

Project description

edwh-multipass-plugin

PyPI - Version PyPI - Python Version


Table of Contents

Installation

Install just this plugin:

pip install edwh-multipass-plugin

But probably you want to install the whole edwh package:

pipx install edwh[plugins,omgeving]
# or
pipx install edwh[multipass]

if you want to use the edwh command line tool with just the multipass plugin:

pipx install edwh
edwh plugin.add multipass

mp.fix-host

aka mp.fix-dns

Fixes the ip adres in the hosts file for a multipass instance.

When issuing on the first run fix-host will add an entry to your hosts file, and you can enter different hostnames you want to register for the instance.

mp.fix-host dockers -h dockers.local -h delen.dockers.local -h web2py.dockers.local ... 

After this initial registration, you can update the ip address of the instance by running mp.fix-host dockers again. Be aware that you cannot register new hostnames after the initial registration. Update your /etc/hosts file instead.


mp.install

Installs multipass on an ubuntu based machine if not already installed.


mp.prepare

Allows you to ssh into a multipass instance, so you are able to run fabric commands against it.

mp.prepare will generate a multipass_keyfile ~/.ssh/multipass.key (if not already present) and add the public key to the multipass instance's authorized_keys file.

mp.prepares automatically runs mp.install.


License

edwh-multipass-plugin is distributed under the terms of the MIT license. See the license for details.

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

edwh_multipass_plugin-1.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

edwh_multipass_plugin-1.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file edwh_multipass_plugin-1.1.0.tar.gz.

File metadata

File hashes

Hashes for edwh_multipass_plugin-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4485f8dbd7e04e2c37061a5d0bbed29feb1dc558d972823a11bb5c8f0cdf04f0
MD5 653a130aa9c732dc83173c01c7a8cd94
BLAKE2b-256 324906384563b094f34f1f78a2bfaac2108e7a2c268558cab13e77e5bdc192aa

See more details on using hashes here.

File details

Details for the file edwh_multipass_plugin-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_multipass_plugin-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c5b871cc34190d555184d0cba4eae0b70e167c84cfaacc54a166d5e19e72c5f
MD5 6f033fa2d6131d9e868d4baaee1d3631
BLAKE2b-256 5f3b1c0e1fafe95d2593259c48a0d72f6f086c5d7fbd4ce49ee4898cd817a503

See more details on using hashes here.

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