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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d3007d65309f6486e5bd40ca16d667d6e0f8363e45e3698381415422a739a7f |
|
MD5 | c2c4318be647b936d29861e990530665 |
|
BLAKE2b-256 | dfd55d8f389fd5df4037808a83fb06ec4ccec6d2ef902db1c23780e08980cb01 |
Hashes for edwh_multipass_plugin-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f85557242e44b21c5ccc8050f744272303b4ab2cf71054497c3b2277c926ea |
|
MD5 | a47449a833b70b28f228e62b85bce1bd |
|
BLAKE2b-256 | d2c3b306b0e6cfc110396e79ea9ce6772000339114cb28a0d2d0923185d1d754 |