feature: the CA certificates and CRLs are always published over HTTP and HTTPS on the status and Manager ports, the Shell page is an entry of the page menu, and the web interface passes its lint.
Release / release (push) Successful in 26s
Release / release (push) Successful in 26s
This commit is contained in:
1 parent
4b5318c676
commit
0cec95c19b
72 files changed
+910
-861
No files matched your search
+10
-8
@@ -10,15 +10,15 @@ password of .lm-dev-config/vm-PROJECT-VM.json, and a TOTP token, the key VM-admi
|
||||
engine made from the file's otp_url, unless --no-otp is given; lm-dev-otp-code.py prints its codes. A password or
|
||||
otp_url the file lacks, or all of them when there is no file, is generated and kept in the file, so a VM made again
|
||||
has the same password and token until they are deleted from the file.
|
||||
The VM gets a configuration from tests/remote/configs/ (--config, core.json by default), whose @ETH0@ is the
|
||||
The VM gets a configuration from tests/remote/configs/ (--config, dev.json by default), whose @ETH0@ is the
|
||||
interface of its default route, @CIDR0@ its network and @PSK@ a generated key. The VM gets an AppRole of its own in the project's Vault
|
||||
(lm_dev.enrol_instance), with which it reads the debconf preseed with the admin's password and the
|
||||
configuration with its key, kept there as VM/preseed and VM/config, and its TOTP key, generated or from otp_url; no
|
||||
secret is an argument or on standard input, so create needs a project with a Vault
|
||||
(lm-dev-lxd-project.py vault create). The admin's password is also kept there as VM/admin.
|
||||
|
||||
The VM's leased address is pinned on its NIC, and ports 7080 and 7081 of a listen address lead to
|
||||
the same ports of the VM, and port 2222 to its SSH port. In a test project the listen address is a
|
||||
The VM's leased address is pinned on its NIC, and ports 7080, 7081, 7443 and 7444 of a listen address
|
||||
lead to the same ports of the VM, and port 2222 to its SSH port. In a test project the listen address is a
|
||||
network forward's on the project's WAN, --forward-address (LXD_FORWARD_ADDRESS) or else one allocated
|
||||
from its uplink's routes; elsewhere NAT proxy
|
||||
devices listen on the host address --listen (LXD_LISTEN, by default the IPv4 address of the host of
|
||||
@@ -41,8 +41,9 @@ from lm_dev import HANDOVER_DIR, PROJECT, VM, ROOT, TESTS, VAULT_MOUNT, MissingS
|
||||
credentials_path, enrol_instance, enrol_otp, forget_instance, hand_over, host_address, lxc_exec, newest_deb, \
|
||||
setting, store_secret, vault_state, write_private
|
||||
|
||||
# The listen port and the VM port of each forward or proxy: the Manager, the status web service and SSH.
|
||||
PORTS = ((7080, 7080), (7081, 7081), (2222, 22))
|
||||
# The listen port and the VM port of each forward or proxy: the Manager and the status web service over HTTP and
|
||||
# HTTPS, and SSH.
|
||||
PORTS = ((7080, 7080), (7081, 7081), (7443, 7443), (7444, 7444), (2222, 22))
|
||||
|
||||
|
||||
def main():
|
||||
@@ -54,8 +55,8 @@ def main():
|
||||
parser.add_argument('--vm', default=VM, help=f'the name of the VM (default {VM})')
|
||||
parser.add_argument('--image', default=setting('LXD_IMAGE', 'ubuntu:26.04'),
|
||||
help='the image of the VM (LXD_IMAGE, default ubuntu:26.04)')
|
||||
parser.add_argument('--config', default='core.json',
|
||||
help='the configuration from tests/remote/configs/ (default core.json)')
|
||||
parser.add_argument('--config', default='dev.json',
|
||||
help='the configuration from tests/remote/configs/ (default dev.json)')
|
||||
parser.add_argument('--listen', default=setting('LXD_LISTEN', None),
|
||||
help="outside a test project, the LXD host address the proxies listen on (LXD_LISTEN, "
|
||||
"default the IPv4 address of the remote URL's host)")
|
||||
@@ -247,7 +248,8 @@ def main():
|
||||
if not args.no_otp:
|
||||
print(f'administrator TOTP: otp_url in {credentials}; codes: bin/lm-dev-otp-code.py --project {args.project} '
|
||||
f'--vm {args.vm}')
|
||||
print(f'manager: http://{args.listen}:7080/ status: http://{args.listen}:7081/ ssh: {args.listen} port 2222')
|
||||
print(f'manager: https://{args.listen}:7443/ status: https://{args.listen}:7444/ and http://{args.listen}:7081/ '
|
||||
f'ssh: {args.listen} port 2222')
|
||||
print(f'shell: lxc exec {args.remote}:{args.vm} --project {args.project} -- su -l')
|
||||
print(f'remove: {sys.argv[0]} remove --remote {args.remote} --project {args.project} --vm {args.vm}')
|
||||
|
||||
|
||||
Reference in new issue
Block a user