Files
mesh-catalog/modules/hostname/module.json
T

62 lines
1.2 KiB
JSON

{
"module": "hostname",
"version": "1",
"claims": [
{
"name": "node-hostname",
"scope": "node",
"serves": [
"entries",
"add",
"remove"
]
}
],
"config": {
"hostname": {
"type": "string",
"description": "The machine's host name, written to /etc/hostname: the operator's name for this machine, with no default (novox/hq ADR 0112).",
"trusted": true,
"required": true
}
},
"resources": [
{
"id": "own",
"type": "file",
"path": "/etc/hosts",
"mode": "0644",
"into": "block",
"at": "start",
"template": "files/hosts"
},
{
"id": "name",
"type": "file",
"path": "/etc/hostname",
"mode": "0644",
"template": "files/hostname"
}
],
"build": {
"artifacts": [
{
"name": "tools",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/hostname-tools",
"binary": "hostname-tools",
"loads": [
"hostname-tools"
]
},
{
"name": "files",
"kind": "archive",
"from": "files"
}
]
}
}