Skip to main content

Infrastructure as code

Project description

Tamarin - Infra as Code

Tamarin is a tool to provide Virtual Machines on any operating systems.

It was created initally to replace vagrant for the Mac M1, once the VirtualBox was not compatible with this new processor.

Installation on Mac

brew install qemu
python3 -m pip install tamarin-iac

How to use it

First create a file called inventory.yml

Example:

inventory:
    image: debian
    ssh-user: root
    ssh-password: alisson
    vms:
        - name: webserver
          memory: 512
          address: 192.168.55.10/24
          port-forward:
            - "4022:22"
            - "8080:80"
          provision_script: setup_webserver.sh    

Then you can check your iventory using:

$ tamarin status

+-----------+---------+
| Name      | status  |
+-----------+---------+
| webserver | Stopped |
| database  | Stopped |
+-----------+---------+

Run your VM:

$ tamarin start webserver
[+] Creating VM: webserver
[+] Setting up VM: webserver on port 4022
[!] Waiting port 4022 to be open
[+] VM Ready!
[+] Setting the hostname

Access via ssh:

(base) alissonmachado@Alissons-Air Tamarin % ssh root@localhost -p 4022
root@localhost's password: 

Linux webserver 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64
root@webserver:~# 

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

tamarin-iac-0.2.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tamarin_iac-0.2.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file tamarin-iac-0.2.0.1.tar.gz.

File metadata

  • Download URL: tamarin-iac-0.2.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for tamarin-iac-0.2.0.1.tar.gz
Algorithm Hash digest
SHA256 6200a51ed67c934574bd03201bd85d19faa9b76a63d0fe4b363ebc7eec6a3436
MD5 082123a489c936c0bbced6d7a3d12f96
BLAKE2b-256 eab1b3e245f294e6e320e37648a301b6f8cc4b575ab65e4c034e8cd2b6be6d3b

See more details on using hashes here.

File details

Details for the file tamarin_iac-0.2.0.1-py3-none-any.whl.

File metadata

  • Download URL: tamarin_iac-0.2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for tamarin_iac-0.2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a520bc9456ea8af984fd972cde65ef67b34754df406643170c090d4d49a97ff
MD5 e27ee7426a0026cb698387a3a47a25fa
BLAKE2b-256 717f3e21d45617132f0d9b92b50e2272ba50006f77e1fa020b26a2b23451acb7

See more details on using hashes here.

Supported by

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