Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samifouad/gild-gleam

experiment: infra as code
https://github.com/samifouad/gild-gleam

debian erlang gild gleam infra infra-as-code infrastructure-as-code javascript linux self-hosted self-hosting ubuntu

Last synced: about 1 month ago
JSON representation

experiment: infra as code

Awesome Lists containing this project

README

        

this is a work in progress. it's extremely alpha. any feedback welcome during the design phase.

example usage:
```
import gild/cluster
import gild/os/debian
import gild/types.{type VM}
import gild/vm

pub fn home() -> VM {
vm.new()
|> vm.name("home")
|> vm.os(debian.version("12"))
|> vm.update()
|> vm.install("mysql_server")
|> vm.return()
}

pub fn work() -> VM {
vm.new()
|> vm.name("work")
|> vm.os(debian.version("12"))
|> vm.update()
|> vm.install("apache2")
|> vm.install("mysql_server php")
|> vm.return()
}

pub fn main() {
cluster.new()
|> cluster.name("my cool project")
|> cluster.member(home())
|> cluster.member(work())
|> cluster.export()
}
```

output:

![sample json output](https://raw.githubusercontent.com/samifouad/gild/main/sample_json_output.png)

this library is used to help create visualizations inside the [linkha.sh](http://linkha.sh) online playground and will be used inside a cli utility to make the declarative configuration come to life