diff options
author | Yang, Bo <bo@gradient.ai> | 2023-11-08 09:39:25 -0800 |
---|---|---|
committer | Yang, Bo <bo@preemo.io> | 2023-11-08 17:54:08 +0000 |
commit | c4086e5ce97e877be645812e614add3005455a4c (patch) | |
tree | b184677b5e8a65ffcbdc0a2f71258325a1c71739 /nixos/modules | |
parent | cf89c430bd6510831e07004fa70d846a7ec0ab74 (diff) | |
download | nixlib-c4086e5ce97e877be645812e614add3005455a4c.tar nixlib-c4086e5ce97e877be645812e614add3005455a4c.tar.gz nixlib-c4086e5ce97e877be645812e614add3005455a4c.tar.bz2 nixlib-c4086e5ce97e877be645812e614add3005455a4c.tar.lz nixlib-c4086e5ce97e877be645812e614add3005455a4c.tar.xz nixlib-c4086e5ce97e877be645812e614add3005455a4c.tar.zst nixlib-c4086e5ce97e877be645812e614add3005455a4c.zip |
azure-agent: add dependencies for its extensions
waagent's extension `Microsoft.OSTCExtensions.VMAccessForLinux` requires Python, otherwise it would be failed to install with the following error message in `/var/log/waagent.log`: ``` No Python interpreter found on the box ``` waagent's extension `Microsoft.CPlat.Core.RunCommandLinux` needs lsof, otherwise it would produce the following error message in `/var/log/waagent.log`: ``` /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.10/bin/custom-script-shim: line 60: lsof: command not found ```
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/virtualisation/azure-agent.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/azure-agent.nix b/nixos/modules/virtualisation/azure-agent.nix index 6e6021cf80fe..a88b78bc9821 100644 --- a/nixos/modules/virtualisation/azure-agent.nix +++ b/nixos/modules/virtualisation/azure-agent.nix @@ -241,7 +241,16 @@ in after = [ "network-online.target" "sshd.service" ]; wants = [ "network-online.target" ]; - path = [ pkgs.e2fsprogs pkgs.bash ]; + path = [ + pkgs.e2fsprogs + pkgs.bash + + # waagent's Microsoft.OSTCExtensions.VMAccessForLinux needs Python 3 + pkgs.python3 + + # waagent's Microsoft.CPlat.Core.RunCommandLinux needs lsof + pkgs.lsof + ]; description = "Windows Azure Agent Service"; unitConfig.ConditionPathExists = "/etc/waagent.conf"; serviceConfig = { |