https://github.com/johanste/hippo-module
https://github.com/johanste/hippo-module
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/johanste/hippo-module
- Owner: johanste
- Created: 2018-02-06T17:39:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T21:26:40.000Z (over 8 years ago)
- Last Synced: 2025-03-06T03:43:59.493Z (over 1 year ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hippo-module
Prototype for representing ARM modules using [jsonnet](https://jsonnet.org).
## Getting started
### Running examples
1) Clone the repository
2) Make sure that you have jsonnet installed and on your path
3) Run `jsonnet -J `
## How to contribute
### Structure of the repository
```
+-- core
+-- module.libsonnet # Main module file exposing module
+-- moduledef.libsonnet # Structure of a module
+-- resource.libsonnet # Structure for an individual resource
+-- example_consumers
+-- vmss_cli.jsonnet # Intended to be a module used by the azure cli vmss create command
+--
+-- module.libsonnet
```
### Module
A module is a folder that contains the following files:
```
modulename
+-- module.libsonnet
+-- parameters.schema.json
+--
```
where modulename is the name of the module.
### module.json
The structure of a module is a json object with two required properties; resources and outputs.
```
local core = import 'core/module.libsonnet';
{
resources: {
resource1: core.Module {
},
resource2: core.Module {
}
},
outputs: {
}
}
```