Unverified Commit d07d8a55 authored by codgician's avatar codgician
Browse files

waagent: improve code readability and doc

parent 2e1477dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@

- [agorakit](https://github.com/agorakit/agorakit), an organization tool for citizens' collectives. Available with [services.agorakit](options.html#opt-services.agorakit.enable).

- [waagent](https://github.com/Azure/WALinuxAgent), the Microsoft Azure Linux Agent (waagent) manages Linux provisioning and VM interaction with the Azure Fabric Controller. Available with [services.waagent](options.html#opt-services.waagent.enable).

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

## Backward Incompatibilities {#sec-release-25.05-incompatibilities}
@@ -70,7 +72,7 @@

- `nodePackages.ganache` has been removed, as the package has been deprecated by upstream.

- `services.waagent` option has been added, making `/etc/waagent.conf` customizable. `virtualisation.azure.agent` option provided by `azure-agent.nix` module has been deprecated and the module will be removed in a future release.
- `virtualisation.azure.agent` option provided by `azure-agent.nix` is replaced by `services.waagent`, and will be removed in a future release.

- `containerd` has been updated to v2, which contains breaking changes. See the [containerd
  2.0](https://github.com/containerd/containerd/blob/main/docs/containerd-2.0.md) documentation for more
+1 −1
Original line number Diff line number Diff line
@@ -247,7 +247,7 @@ in
  config = lib.mkIf cfg.enable {
    assertions = [
      {
        assertion = cfg.settings.HttpProxy.Host == null || cfg.settings.HttpProxy.Port != null;
        assertion = (cfg.settings.HttpProxy.Host != null) -> (cfg.settings.HttpProxy.Port != null);
        message = "Option services.waagent.settings.HttpProxy.Port must be set if services.waagent.settings.HttpProxy.Host is set.";
      }
    ];
+4 −3
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ python.pkgs.buildPythonApplication rec {
    };
  };

  meta = with lib; {
  meta = {
    description = "Microsoft Azure Linux Agent (waagent)";
    mainProgram = "waagent";
    longDescription = ''
@@ -82,7 +82,8 @@ python.pkgs.buildPythonApplication rec {
      manages Linux provisioning and VM interaction with the Azure
      Fabric Controller'';
    homepage = "https://github.com/Azure/WALinuxAgent";
    maintainers = with maintainers; [ codgician ];
    license = with licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ codgician ];
    license = with lib.licenses; [ asl20 ];
    platforms = lib.platforms.linux;
  };
}