Commit Graph

648 Commits (4f0cf6d2ca0b46d289f631496af373fac02adf1c)

Author SHA1 Message Date
Pierre-Louis Bonicoli 2fdb197245 fix error occurring with Debian
Error was: AttributeError: 'SourcesList' object has no attribute 'repos_urls'
9 years ago
Abhijit Menon-Sen 74a27ffe52 Simplify distribution test
If it's Ubuntu, use UbuntuSourcesList; if it's any other apt-friendly
distribution, use SourcesList; otherwise, fail.
9 years ago
Abhijit Menon-Sen 44d16240a8 Make SourcesList __init__ method also set self.module
This was originally required to allow other methods in SourcesList to
fail, but subsequent changes rendered that unnecessary, and it's just
a cleanup now, and avoids passing in module separately to save().
9 years ago
Abhijit Menon-Sen 6afa1da910 Clarify HAVE_PYTHON_APT/install_python_apt handling in apt_repository
1. Don't test check_mode in both the caller and in the callee.
2. Don't test HAVE_PYTHON_APT inside an if that tests HAVE_PYTHON_APT
3. Don't be irritatingly vague about why the module fails ("You may be
   seeing this because…").

Note that if «apt-get -y install python-apt» succeeds with rc==0, but
for some reason python_apt is not usable afterwards, this will break
because the imports in install_python_apt aren't wrapped inside a
try/except.

In other words, we assume that install_python_apt either succeeds or
fails with a traceback. This commit doesn't affect that behaviour.
9 years ago
Abhijit Menon-Sen 653fd34ed7 Fix call to _expand_ppa 9 years ago
Yuhui Huang 51666c6def Checking pip uninstall output in both stdout and stderr 9 years ago
Brian Coca 1dafa427c3 added versionadded to new option in pip module 9 years ago
Brian Coca 5c17fd3f9a Merge pull request #629 from wbolster/issue-586-virtualenv-python-version
Add virtualenv_python arg to pip module
9 years ago
Brian Coca 963eb242f1 updated to add missing 'use' option 9 years ago
Toshio Kuratomi d46c036b75 Add notes about loop squashing and 1.9.2 change to install packages in one yum transaction 9 years ago
Brian Coca 93754b903f updated upgrade to a more sensible default as the previous was prone to confusion
fixes #1667
9 years ago
Matt Martz 9eb4219f79 Replaced tabbed indentation with spaces for apt module 9 years ago
Toshio Kuratomi 4ef5a45347 Add version that the profilename param was added 9 years ago
Toshio Kuratomi 6b8e6c0a0a Merge pull request #425 from gerhardsam/devel
rhn_register: add support for profilename
9 years ago
Brian Coca a0d663bc65 Merge pull request #413 from JimPatterson/412_pip_check_venv
Correct check mode for pip in virtualenv.
9 years ago
verm666 d435d5ce0a This change is in response to issue #133.
The original problem is: apt_repository.py connect to launchpad on
every playbook run. In this patch apt_repository.py checks if required
repository already exists or not. If no - paa will be added, if yes -
just skip actions.
9 years ago
Toshio Kuratomi 50912c9092 Fix apt_repository so that it does not modify the mode of existing repositories 9 years ago
Toshio Kuratomi 720632f568 Merge pull request #338 from pilou-/apt_repository_filemode
apt_repository: fix file mode
9 years ago
Toshio Kuratomi dba3bc7539 Read the url in in chunks so that we don't use as much memory for large packages 9 years ago
Toshio Kuratomi 4519dd5f4d Small cleanups.
* Import url(lib|parse|lib2) if needed by the module rather than relying
  on module_utils.urls to do so.
* Remove stdlib modules from requirements
* Use the if __name__ conditional for invoking main()
9 years ago
Brian Coca 7a33832606 fixed typo 9 years ago
Brian Coca 665265d285 Merge pull request #60 from az7arul/devel
added `include_doc` option
9 years ago
Toshio Kuratomi 0950593d53 Merge pull request #1516 from ansible/use-yum-api
Yum API is faster than calling out to repoquery.
9 years ago
Toshio Kuratomi 86c30e68a1 Restore setting cachedir when non-root but don't take a useless cachedir parameter to the function
* Revert "Remove unused code"
  This reverts commit bcfba0c050.
* Re-add the changes to remove cachedir as a parameter
9 years ago
Toshio Kuratomi 7c6c518003 Fix bugs found by @kustodian 9 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 9 years ago
Toshio Kuratomi 08c17814fb Fix incorrect line breaking 9 years ago
Toshio Kuratomi ef7a75938a Further optimizations pointed out by @kustodian in #1516
* Only install yum-utils if needed (b/c we're going to use repoquery)
* Add a warning message explaining that why slower repoquery was used
  rather than yum API.
9 years ago
Toshio Kuratomi 9c88f91092 Yum API is faster than calling out to repoquery. Looking through the
commit logs it looks like we weren't previously doing that because of
commit 14479e6adc

The message there is that Yum API prints an error message if the
rhn-plugin is in use and no rhn-certificate is available.  So instead of
using repoquery in preference always here we use repoquery in preference
if the rhn-plugin is enabled.
9 years ago
Edward Torbett bcbf8c5556 Renamed previous pkgs variable to installed_pkgs as spotted by @strahinja 9 years ago
Edward Torbett 1fe79801f8 Corrected pkg to pkgs as noted by @abadger 9 years ago
Edward Torbett fc36506b9e Added multi package operation to remove as suggested by @abadger. Adding to latest is a little more complex due to '*' support. 9 years ago
Edward Torbett 471824b451 Comments by @abadger 9 years ago
Edward Torbett 48422fba85 Rather than executing yum once per package, execute yum once for all supplied packages. This is necessary when performing a yum upgrade involving multiple dependent packages installed from RPM, for example when upgrading from PostgreSQL 9.0.11 to 9.0.21 on a Red Hat server. 9 years ago
Brian Coca fd18aba076 updated package examples 9 years ago
Brian Coca 75c2bc54f5 corrected copyright ... does a copied the copyrightnotice require copyright? 9 years ago
Brian Coca d6ed6113a7 may root help us all 9 years ago
az7arul 627933049c add `include_doc` option 9 years ago
Brian Coca abcd276955 Merge pull request #963 from u2ix/devel
Allow to add build flags for gem installation
9 years ago
Toshio Kuratomi f3277f0f1f Import ansible module_utils at bottom of file to not mess with line numbers in tracebacks 9 years ago
Toshio Kuratomi 00e54793a2 Merge pull request #1408 from Jmainguy/yum_http_el5
forces EL5 to fail if name=:// url style path to rpm
9 years ago
Jonathan Mainguy 7a5ad0c7f3 add :// url support for EL 5 9 years ago
Brian Coca 6d088169ef Merge pull request #1348 from devjatkin/issue_1230
fix apt to handle virtual packages correctly
9 years ago
Brian Coca 0d41af23c2 Merge pull request #909 from bcoca/apt_return_cacheinfo
added updated cache time to apt, also started documenting return values
9 years ago
Vasyl Kaigorodov f0dc27227c Fix "_is_package_installed() takes exactly 4 arguments, 3 provided" error 9 years ago
Toshio Kuratomi 0877aae3fe Merge pull request #1383 from schlueter/add-state-to-easy_install
Add state to easy_install
9 years ago
Schlueter 1030cb48a7 Add 'version_added' to state documentation for easy_install resource 9 years ago
Schlueter 17544062ec Correct reference to gem in easy_install resource 9 years ago
Schlueter 02cd8489c1 Add Documentation 9 years ago
Schlueter 3bae8bda10 Use standard if statement to check state in easy_install resource 9 years ago