salt
salt copied to clipboard
pkg module is broken for FreeBSD
pkg on FreeBSD has recently dropped the -L flag (legacy switch), so now installing packages through salt fails:
[INFO ] Executing command '/usr/sbin/pkg install -y -L curl' in directory '/root'
[ERROR ] Command '/usr/sbin/pkg install -y -L curl' failed with return code: 64
[ERROR ] stderr: pkg: illegal option -- L
Usage: pkg install [-AfgIinFqRUxy] [-r reponame] <pkg-name> ...
For more information see 'pkg help install'.
Changing to -U resolves the issue.
I have already submitted a pull request: #8987
Looks like this is resolved, right? I'm going to close it.