Files
ansiblings/cubes/admin/hostname/manifest.mjs
T
Benjamin Diedrichsen 736c01216a initial transfer
2026-07-27 13:09:00 +02:00

17 lines
500 B
JavaScript

import { z } from 'zod';
import { cubes, uniqid } from '@bitstack/nopy';
/**
* Manifest for the admin:hostname cube.
* This cube allows for setting and persistently changing the system's hostname.
*/
export default cubes.Manifest({
id: 'admin:hostname',
name: 'Permanently change the hostname',
dependencies: () => [],
schema: z.object({
HOSTNAME: z.string().min(1).max(64).describe('The new hostname for the target host')
.default(`host-${uniqid()}`),
})
});