An `edwh`plugin to work with multipass instances for local development.
Project description
edwh-multipass-plugin
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]
if you want to use the edwh
command line tool with just the multipass
plugin:
pipx install edwh
pipx inject edwh edwh-multipass-plugin
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
Release history Release notifications | RSS feed
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
Hashes for edwh_multipass_plugin-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6567cd8384dc97572ce55b310a7de7b7114233c076d97fa5d4699a3769d962d5 |
|
MD5 | 8ea89a568149c0e6fcde0ae19868b4c4 |
|
BLAKE2b-256 | 279b3a90e22bef9d389f7ac4829379cdf975e1e26192d52a11f42e4f7f3a4e08 |
Hashes for edwh_multipass_plugin-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a1b7c341d61360468dcf10d3ec235fd77d85d6e3572788dcd6d82b69e03d0b2 |
|
MD5 | 9c7e79f8e6267b69ac1635d47b9da928 |
|
BLAKE2b-256 | 0b88eed005be2170c31e4c51c7a8387b3bbf702aadaf6920e20ab95f6dd1b246 |