mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-29 01:02:20 +00:00
20 lines
530 B
Ucode
20 lines
530 B
Ucode
|
|
# Basic unit configuration
|
|
{% if (unit.name): %}
|
|
set system.@system[-1].description={{ s(unit.name) }}
|
|
{% endif %}
|
|
{% if (unit.hostname): %}
|
|
set system.@system[-1].hostname={{ s(unit.hostname) }}
|
|
{% endif %}
|
|
{% if (unit.location): %}
|
|
set system.@system[-1].notes={{ s(unit.location) }}
|
|
{% endif %}
|
|
{% if (unit.timezone): %}
|
|
set system.@system[-1].timezone={{ s(unit.timezone) }}
|
|
{% endif %}
|
|
set system.@system[-1].leds_off={{ b(!unit.leds_active) }}
|
|
{%
|
|
shell.password(unit.random_password);
|
|
services.set_enabled("led", true);
|
|
%}
|