Skip to main content

A powerful Infrastructure as Code (IAC) framework

Project description

Carthage is an Infrastructure as Code (IAC) framework. Carthage provides models for infrastructure concepts such as machines, networks, and domains or groups of machines. There are concrete implementations of these models including containers and virtual machines.

Carthage allows experts to quickly construct infrastructure from a Carthage layout. Infrastructure can be real, virtual, or a mixture. Often the same layout is used to produce both real and virtual infrastructure.

Examples of applications written using Carthage include:

  • A test framework to run tests against a distributed product by replicating virtual network infrastructure and running tests against that structure.

  • A cyber training application to produce training environments with thousands of virtual machines and realistic training environments including firewalls, routers, and Internet services. The training environment is entirely isolated from the Internet.

  • A devops application to maintain the real infrastructure on which the cyber training environment runs.

Installing Carthage

Carthage typically requires a container environment as well as a virtualization requirement. On Debian or Ubuntu systems, install the following:

apt install socat systemd-container libvirt-clients qemu-utils bridge-utils fai-setup-storage
apt install --no-install-recommends fai-server dosfstools

You may also want either python3-pyvmomi or libvirt-daemon-system.

Then install Carthage like any other source distribution, perhaps using python3 setup.py install or python3 setup.py install --user.

Alternatively you can podman pull ghcr.io/hadron/carthage:latest

Learning Carthage

Documentation is available here.

For a look at a sample application take a look at https://github.com/hartmans/industrial-algebra.carthage . This application configures the laptop of one of the Carthage developers.

Join Us

As you start to use Carthage, you will probably have questions. The best approach is to discuss them in real time on our Matrix chat <https://matrix.to/#/#carthage-users:matrix.org>.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carthage-0.33.tar.gz (258.6 kB view details)

Uploaded Source

Built Distribution

carthage-0.33-py3-none-any.whl (299.4 kB view details)

Uploaded Python 3

File details

Details for the file carthage-0.33.tar.gz.

File metadata

  • Download URL: carthage-0.33.tar.gz
  • Upload date:
  • Size: 258.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for carthage-0.33.tar.gz
Algorithm Hash digest
SHA256 e87e661d4411ce7a627b41ce6014412b31c1f1cada28ea5970fbedddfd5e4462
MD5 38126b498c902518e40fbae8a320598c
BLAKE2b-256 8444636a9dca1a6029367644bf3a8558583dc6c9628fe9ed79b070746dd351b4

See more details on using hashes here.

File details

Details for the file carthage-0.33-py3-none-any.whl.

File metadata

  • Download URL: carthage-0.33-py3-none-any.whl
  • Upload date:
  • Size: 299.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for carthage-0.33-py3-none-any.whl
Algorithm Hash digest
SHA256 e123fb3c9fbc475d6cd704feb2acdb777b5a60e3cad7999c689f03f56dec3cfe
MD5 96917c7be1b9860f838499785d38922f
BLAKE2b-256 be90eaaf7e6d6f68f518c9e2f0f30590f93aeb52476ecde926a4d6ffbf1f3e65

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page