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]
# 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
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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cc3bd9786a4bebf4fd0e47ca14b4e3a6fe0a54a33ed0308b591da0bfa8f4cc5 |
|
MD5 | 5a2173532a5a4824776cc83cb84b6d13 |
|
BLAKE2b-256 | d190b447d9610e4dd791d9f2154160a1b97e0e8bcdd879fc0e8f4178114f8d3a |
Hashes for edwh_multipass_plugin-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fca7e8b0a5778bc3b78d714240e9498284778706fa36947251eb6ec69a07dab |
|
MD5 | df40603382d28827c52590dbb4a7038e |
|
BLAKE2b-256 | 7118a5f7fde21988b44e17dcf271163e509c7eb2b3f3ee5f906d945194e0d298 |