Skip to content

Commit

Permalink
Remove lxd support
Browse files Browse the repository at this point in the history
Although lxd itself is still a viable, maintained platform (5.0 LTS was
just released in April 2022), and has some advantages over using Docker,
the support for lxd in tpaexec is unused and unmaintained.

Since there hasn't been any perceptible interest in using it for a long
time, we're better off removing the support until that changes.

Closes #327
  • Loading branch information
amenonsen committed Apr 11, 2022
1 parent 39a211d commit 451150d
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 218 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ tpa-venv/*
pip-packages/*
.python-version
platforms/aws/inventory/ec2.py
platforms/lxd/inventory/lxd.py
*tags*
cscope*
pdf/*
Expand Down
1 change: 0 additions & 1 deletion bin/tpaexec
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ _install_pip_packages() {
declare -A contribs
contribs=(
[inventory/ec2.py]=platforms/aws
[inventory/lxd.py]=platforms/lxd
)
for f in "${!contribs[@]}"; do
cp -v "$CONTRIB_DIR/$f" \
Expand Down
39 changes: 0 additions & 39 deletions docs/src/platform-lxd.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/tpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ nav:
- AWS: platform-aws.md
- Bare metal: platform-bare.md
- Docker: platform-docker.md
- LXD: platform-lxd.md
- Vagrant: platform-vagrant.md
- Customisations:
- Cluster configuration: configure-cluster.md
Expand Down
2 changes: 1 addition & 1 deletion lib/tpaexec/platform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def all_platforms():
"""
Returns a list of all platform names
"""
return ["aws", "bare", "docker", "lxd", "vagrant"]
return ["aws", "bare", "docker", "vagrant"]

@property
def default_volume_device_name(self):
Expand Down
9 changes: 0 additions & 9 deletions lib/tpaexec/platform/lxd.py

This file was deleted.

4 changes: 1 addition & 3 deletions platforms/common/inventory/inventory.j2
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{# © Copyright EnterpriseDB UK Limited 2015-2022 - All rights reserved. #}
[{{ cluster_tag }}]
{% for h in instance_vars %}
{% if h.platform == 'lxd' %}
{{ h.Name }} ansible_connection=lxd node={{ h.node }} platform={{ h.platform }}
{% elif h.platform == 'docker' %}
{% if h.platform == 'docker' %}
{{ h.Name }} ansible_connection=docker node={{ h.node }} platform={{ h.platform }}
{% else%}
{{ h.Name }} ansible_host={{ h|deploy_ip_address }} node={{ h.node }} platform={{ h.platform }}
Expand Down
1 change: 0 additions & 1 deletion platforms/lxd/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions platforms/lxd/_metadata

This file was deleted.

20 changes: 0 additions & 20 deletions platforms/lxd/deprovision.yml

This file was deleted.

5 changes: 0 additions & 5 deletions platforms/lxd/inventory/lxd.ini.j2

This file was deleted.

14 changes: 0 additions & 14 deletions platforms/lxd/inventory/write.yml

This file was deleted.

73 changes: 0 additions & 73 deletions platforms/lxd/provision.yml

This file was deleted.

46 changes: 0 additions & 46 deletions platforms/lxd/validate.yml

This file was deleted.

3 changes: 1 addition & 2 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
],
"exclude": [
"tpa-venv",
"platforms/aws/inventory",
"platforms/lxd/inventory"
"platforms/aws/inventory"
],
"venvPath": ".",
"venv": "tpa-venv"
Expand Down

0 comments on commit 451150d

Please sign in to comment.