Toshio Kuratomi
50912c9092
Fix apt_repository so that it does not modify the mode of existing repositories
2015-06-24 16:32:47 -07:00
Toshio Kuratomi
720632f568
Merge pull request #338 from pilou-/apt_repository_filemode
...
apt_repository: fix file mode
2015-06-24 16:01:45 -07:00
Toshio Kuratomi
dba3bc7539
Read the url in in chunks so that we don't use as much memory for large packages
2015-06-24 08:12:49 -07:00
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()
2015-06-24 06:51:00 -07:00
Brian Coca
7a33832606
fixed typo
2015-06-19 15:29:43 -04:00
Brian Coca
665265d285
Merge pull request #60 from az7arul/devel
...
added `include_doc` option
2015-06-19 12:39:56 -04:00
Toshio Kuratomi
0950593d53
Merge pull request #1516 from ansible/use-yum-api
...
Yum API is faster than calling out to repoquery.
2015-06-18 11:37:41 -07:00
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
2015-06-16 13:10:17 -07:00
Toshio Kuratomi
7c6c518003
Fix bugs found by @kustodian
2015-06-16 06:28:46 -07:00
Greg DeKoenigsberg
2a5f0bde87
Proper author info for all remaining modules
2015-06-15 15:53:30 -04:00
Toshio Kuratomi
08c17814fb
Fix incorrect line breaking
2015-06-15 10:46:59 -07:00
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.
2015-06-15 09:51:15 -07:00
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.
2015-06-13 17:08:32 -07:00
Edward Torbett
bcbf8c5556
Renamed previous pkgs variable to installed_pkgs as spotted by @strahinja
2015-06-12 18:06:25 +01:00
Edward Torbett
1fe79801f8
Corrected pkg to pkgs as noted by @abadger
2015-06-12 11:18:14 +01:00
Edward Torbett
fc36506b9e
Added multi package operation to remove as suggested by @abadger. Adding to latest is a little more complex due to '*' support.
2015-06-11 15:21:30 +01:00
Edward Torbett
471824b451
Comments by @abadger
2015-06-11 15:13:28 +01:00
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.
2015-06-11 12:39:42 +01:00
Brian Coca
fd18aba076
updated package examples
2015-06-08 20:25:39 -04:00
Brian Coca
75c2bc54f5
corrected copyright ... does a copied the copyrightnotice require copyright?
2015-06-08 20:18:59 -04:00
Brian Coca
d6ed6113a7
may root help us all
2015-06-08 20:12:30 -04:00
az7arul
627933049c
add include_doc
option
2015-06-06 01:54:00 +06:00
Brian Coca
abcd276955
Merge pull request #963 from u2ix/devel
...
Allow to add build flags for gem installation
2015-06-03 08:54:00 -04:00
Toshio Kuratomi
f3277f0f1f
Import ansible module_utils at bottom of file to not mess with line numbers in tracebacks
2015-05-29 13:37:47 -07:00
Toshio Kuratomi
00e54793a2
Merge pull request #1408 from Jmainguy/yum_http_el5
...
forces EL5 to fail if name=:// url style path to rpm
2015-05-29 13:32:58 -07:00
Jonathan Mainguy
7a5ad0c7f3
add :// url support for EL 5
2015-05-29 16:21:17 -04:00
Brian Coca
6d088169ef
Merge pull request #1348 from devjatkin/issue_1230
...
fix apt to handle virtual packages correctly
2015-05-26 11:55:44 -04:00
Brian Coca
0d41af23c2
Merge pull request #909 from bcoca/apt_return_cacheinfo
...
added updated cache time to apt, also started documenting return values
2015-05-26 11:54:03 -04:00
Vasyl Kaigorodov
f0dc27227c
Fix "_is_package_installed() takes exactly 4 arguments, 3 provided" error
2015-05-21 23:24:20 +02:00
Toshio Kuratomi
0877aae3fe
Merge pull request #1383 from schlueter/add-state-to-easy_install
...
Add state to easy_install
2015-05-21 11:07:00 -07:00
Schlueter
1030cb48a7
Add 'version_added' to state documentation for easy_install resource
2015-05-21 12:54:48 -04:00
Schlueter
17544062ec
Correct reference to gem in easy_install resource
2015-05-21 12:49:43 -04:00
Schlueter
02cd8489c1
Add Documentation
2015-05-21 12:23:05 -04:00
Schlueter
3bae8bda10
Use standard if statement to check state in easy_install resource
2015-05-21 12:16:26 -04:00
Schlueter
9b6a741615
Correct pass by object reference issue
2015-05-21 12:04:13 -04:00
Zoltan Kozma
364536a76e
- Fixed annoying bug that disablerepo was essentially broken if a package needed updating by state latest.
...
- Replaced some unsafe practice with default parameters. However looking at the code this does not seem to matter much as the calling functions always seem to supply these parameters anyway.
2015-05-20 19:46:39 +01:00
Schlueter
9468a65bed
Add state to easy_install
2015-05-20 13:43:53 -04:00
Semyon Deviatkin
adf34a6ccd
Fix issue #1230
...
When virtual package providing only one package, look up status of target package
2015-05-18 08:10:22 +00:00
Matt Martz
7ca732830f
Python2.4 fixes
...
* Ignore accelerate.py
* Don't use a lambda or a ternary
2015-05-11 11:04:44 -05:00
Toshio Kuratomi
7540cbb845
Explain why the apt module does not do implicit regex matches on package name since this is different than the apt-get command line tool.
...
Fixes #1258
2015-05-07 08:16:46 -07:00
Dominic Hargreaves
d197f898a5
apt_key documentation: add a note explaining the benefit of including 'id'
2015-05-07 15:49:50 +01:00
Toshio Kuratomi
1fa3efd7b4
Fix documentation
2015-05-05 13:58:41 -07:00
Jonathan Mainguy
3e66e409d5
Adds the exclude= option to the yum module. Works the same way --exclude does when yum install or yum update
2015-05-05 14:00:49 -04:00
Toshio Kuratomi
3782ec0225
Allow yum module to take a yaml list of package names and also ", " separated string-list (in addition to comma separated string-list)
2015-04-21 10:07:11 -07:00
James Cammarata
74e69d1fd1
Merge branch 'nixpanic-rhsm/org_id' into devel
2015-04-14 13:57:42 -05:00
James Cammarata
c9f0c87b59
Add version_added string to new org_id param in rhn_subscription
2015-04-14 13:56:55 -05:00
Brian Coca
da59efbc4b
Merge pull request #623 from mscherer/small_yum_cleanup
...
Remove unused option in yum's repoquery call
2015-04-13 17:04:51 -04:00
Brian Coca
5e970f79e3
Merge pull request #1012 from DavidWittman/yum-disable-enable-ordering
...
[yum] Set disabled repos before enabled repos
2015-04-13 16:42:11 -04:00
Toshio Kuratomi
509403a50d
Merge pull request #1087 from bugchecker/devel
...
prevent using undefined variable
2015-04-13 08:47:51 -07:00
Brian Coca
788230c43e
ifxed error message as code remove the repo r var
2015-04-10 14:59:52 -04:00