Infrastructure as code
Project description
Tamarin - Infrastructure 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 you have to create a base image, like you do with any normal Linux installation:
tamarin image create debian -iso debian.iso
First create a file called inventory.yml
Example:
inventory:
image: debian
ssh-password: alisson
ssh-user: root
vms:
- name: sandbox
memory: 512
port-forward:
- '2222:22'
Then you can check your inventory using:
$ tamarin status
+-----------+---------+
| Name | status |
+-----------+---------+
| webserver | Stopped |
| database | Stopped |
+-----------+---------+
Run your VM:
$ tamarin start
[+] 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tamarin-iac-0.2.0.2.tar.gz.
File metadata
- Download URL: tamarin-iac-0.2.0.2.tar.gz
- Upload date:
- Size: 5.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06532656d1715517b8a19781341108a3fa6a504f97e27eb528707646e25ae5db
|
|
| MD5 |
bef71d0f811d9ddf32c6bc26146aedb5
|
|
| BLAKE2b-256 |
865c96846626ff718bf935359c3bc26c8f845a212a493034170d040c98ae60c4
|
File details
Details for the file tamarin_iac-0.2.0.2-py3-none-any.whl.
File metadata
- Download URL: tamarin_iac-0.2.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a359ef1c2b2a8157bfbce137b4096b73c53ad3d89cdcc8bf9db67907ac0b6045
|
|
| MD5 |
7effa0c121973b1d28fd7f3cc8243de0
|
|
| BLAKE2b-256 |
148a21b86bbee61b278f4d01993bf0392fa3fdd8d638ddd10cf31a24f807b4f4
|