waagent: optimize option descriptions
This commit is contained in:
parent
b5a03db807
commit
1460db45f6
@ -110,14 +110,18 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
ResourceDisk = {
|
ResourceDisk = {
|
||||||
Format = mkEnableOption ''
|
Format = mkOption {
|
||||||
If set to `true`, waagent formats and mounts the resource disk that the platform provides,
|
type = types.bool;
|
||||||
unless the file system type in `ResourceDisk.FileSystem` is set to `ntfs`.
|
default = false;
|
||||||
The agent makes a single Linux partition (ID 83) available on the disk.
|
description = ''
|
||||||
This partition isn't formatted if it can be successfully mounted.
|
If set to `true`, waagent formats and mounts the resource disk that the platform provides,
|
||||||
|
unless the file system type in `ResourceDisk.FileSystem` is set to `ntfs`.
|
||||||
|
The agent makes a single Linux partition (ID 83) available on the disk.
|
||||||
|
This partition isn't formatted if it can be successfully mounted.
|
||||||
|
|
||||||
This configuration has no effect if resource disk is managed by cloud-init.
|
This configuration has no effect if resource disk is managed by cloud-init.
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
FileSystem = mkOption {
|
FileSystem = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
@ -155,12 +159,16 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
EnableSwap = mkEnableOption ''
|
EnableSwap = mkOption {
|
||||||
If enabled, the agent creates a swap file (`/swapfile`) on the resource disk
|
type = types.bool;
|
||||||
and adds it to the system swap space.
|
default = false;
|
||||||
|
description = ''
|
||||||
|
If enabled, the agent creates a swap file (`/swapfile`) on the resource disk
|
||||||
|
and adds it to the system swap space.
|
||||||
|
|
||||||
This configuration has no effect if resource disk is managed by cloud-init.
|
This configuration has no effect if resource disk is managed by cloud-init.
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
SwapSizeMB = mkOption {
|
SwapSizeMB = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
@ -173,16 +181,24 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
Logs.Verbose = lib.mkEnableOption ''
|
Logs.Verbose = lib.mkOption {
|
||||||
If you set this option, log verbosity is boosted.
|
type = types.bool;
|
||||||
Waagent logs to `/var/log/waagent.log` and uses the system logrotate functionality to rotate logs.
|
default = false;
|
||||||
'';
|
description = ''
|
||||||
|
If you set this option, log verbosity is boosted.
|
||||||
|
Waagent logs to `/var/log/waagent.log` and uses the system logrotate functionality to rotate logs.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
OS = {
|
OS = {
|
||||||
EnableRDMA = lib.mkEnableOption ''
|
EnableRDMA = lib.mkOption {
|
||||||
If enabled, the agent attempts to install and then load an RDMA kernel driver
|
type = types.bool;
|
||||||
that matches the version of the firmware on the underlying hardware.
|
default = false;
|
||||||
'';
|
description = ''
|
||||||
|
If enabled, the agent attempts to install and then load an RDMA kernel driver
|
||||||
|
that matches the version of the firmware on the underlying hardware.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
RootDeviceScsiTimeout = lib.mkOption {
|
RootDeviceScsiTimeout = lib.mkOption {
|
||||||
type = types.nullOr types.int;
|
type = types.nullOr types.int;
|
||||||
@ -212,17 +228,19 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
AutoUpdate.Enable = lib.mkEnableOption ''
|
AutoUpdate.Enable = lib.mkOption {
|
||||||
Enable or disable autoupdate for goal state processing.
|
type = types.bool;
|
||||||
'';
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether or not to enable autoupdate for goal state processing.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.services.waagent = {
|
options.services.waagent = {
|
||||||
enable = lib.mkEnableOption ''
|
enable = lib.mkEnableOption "Windows Azure Linux Agent";
|
||||||
Whether to enable the Windows Azure Linux Agent.
|
|
||||||
'';
|
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "waagent" { };
|
package = lib.mkPackageOption pkgs "waagent" { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user