salt.modules.cpan
Manage Perl modules using CPAN
New in version 2015.5.0.
-
Install a Perl module from CPAN
CLI Example:
salt '*' cpan.install Template::Alloy
salt.modules.cpan.install(module)
-
List installed Perl modules, and the version installed
CLI Example:
salt '*' cpan.list
salt.modules.cpan.list_()
-
Attempt to remove a Perl module that was installed from CPAN. Because the
cpan
command doesn't actually support "uninstall"-like functionality, this function will attempt to do what it can, with what it has from CPAN.Until this function is declared stable, USE AT YOUR OWN RISK!
CLI Example:
salt '*' cpan.remove Old::Package
salt.modules.cpan.remove(module, details=False)
-
Show information about a specific Perl module
CLI Example:
salt '*' cpan.show Template::Alloy
salt.modules.cpan.show(module)
-
Return a dict of CPAN configuration values
CLI Example:
salt '*' cpan.show_config
salt.modules.cpan.show_config()
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.cpan.html