Commit Graph

205 Commits (37ea0b0b1f041c02f04c2148e2ec0d6573be4585)

Author SHA1 Message Date
Jan Hutař 8e241a87cc Add way to specify environment (#3453) 8 years ago
Adrian Likins 5c55c6c90a Update docs and internal naming s/RHN/RHSM (#3977) 8 years ago
Adrian Likins f6ee484f33 Add 'force_register' to redhat_subscriptions (#3976)
Fixes #2448
8 years ago
Adrian Likins 8fdb068d7a Fix default perm for apt_repo files. (#4072)
Change the file mode arg to 'raw' ala file args

Following the file_common_args model, change the
type of the 'mode' arg here to type='raw' with no
default arg value.

The default mode for file creation is the module
constant DEFAULT_SOURCES_PER, and is used if no
mode os specified.

A default mode of 0644 (and not specified as int or str)
would get converted to an octal 420, resulting in the
sources file being created with mode '0420' instead of '0644'

Fixes #16370
8 years ago
Brian Coca 5380812b36 removed extra space
as pointed out by @lloydbenson
9 years ago
jctanner d6a834efa0 Cleanup unused variable in yum.py (#4009) 9 years ago
Erik Nadel abaaf3e797 apt remove now recognizes the force parameter (#3756) 9 years ago
mattymo 1f73bef856 Add retries to apt_key with keyserver, fixes #3986 (#3987)
Public SKS gpg servers frequently are unavailable, but a retry
can mitigate frequent failures.
9 years ago
jctanner 71d320ff18 Add local and url support to yum state=latest (#4003)
Fixes #3807
9 years ago
René Moser 218b44d604 apt: fix deb=file with --diff does not show diff on upgrades (#3826) 9 years ago
René Moser 4a727bc44a apt: fix KeyError for deb=file (#3816)
Fix KeyError: 'prepared' while installing dependencies using deb=<file>.deb
This error shows up when --diff was not passed by and the deb files has dependencies not yet installed.
Closes #3752.
9 years ago
Michael Scherer 75715a1b73 Convert packaging/* to py3/py2.4 syntax (#3702) 9 years ago
Matt Martz 1d87213de1 2 Module fixes (#3611)
* Fix syntax error in azure_rm_virtualmachine.py

* Allow rhn_register to fail gracefully when rhn-client-tools is not installed
9 years ago
René Moser 1f5cf669dd apt: fix always changed when using deb file on Debian 8 (#3541)
Extends d74e82a3f1e3293ffb70c172e5bb2b6e1ff6dbcc with also support
downgrade.
9 years ago
Pomin Wu f78509d0cf Fixed #3577 (#3578)
Initialize `upgradable` before use.
9 years ago
Toshio Kuratomi f3fef24e49 Some beginning python3 porting for modules which have unittests 9 years ago
Adrian Likins d83c269b82 improve redhat_subscription documentation (#3348)
* add subscription-manager's --type, --consumerid, --name option support

* redhat_subscription: More docs on consumerid
9 years ago
Michael Scherer a144663953 Fix error reporting for fetch_key (#2662)
Since fetch_url already take care of the exception, the try/except
clause is no longer working, so replace it with proper status
checking, thus permitting to remove urlib2 from the import list.
9 years ago
Jan Hutař 9ab4780b25 Add support for Satellite/Spacewalk which have slightly different API to Hosted (#3289) 9 years ago
Toshio Kuratomi f39e2343c4 Fix apt module needing another format character 9 years ago
NielsH ab699a0953 Resolve idempotency issue with virtual apt package (#3449)
Virtual packages were always marked as upgradable which caused the changed-state even though nothing changed.
9 years ago
Tobias Wolf dba53b5543 Add diff to apt.py (#2944)
for install, remove, deb_install, and upgrade.

Since apt has very commonly familiar output, just use the normal output
from apt-get or aptitude -- trimmed to the interesting parts -- to show
to the user if she specified --diff on the CLI.

Uses the recent support for the `diff['prepared]` key.

Fixes ansible/ansible#10239
9 years ago
Oleg Senin 377e94f77f Correct misspell (#3454) 9 years ago
Matt Davis 1c01e826d6 Merge pull request #3352 from gundalow/docsrh_subs
ansible-validate-modules part 3: Add copyright notice for Barnaby Court (@barnabycourt)
9 years ago
Adrian Likins 72f6238d04 Update redhat_subscriptions 'server_insecure' docs (#3373)
'server_insecure' maps to the subscription-manager config
(/etc/rhsm/rhsm.conf) value for 'insecure' key in the
'server' stanza. The 'insecure' configures if the https connection
to 'server_hostname' is verified as having been issued by
a CA in 'ca_cert_dir' trust store.

Previous documentation indicating it disables https and
enables http was inaccurate. Connection to server_hostname
always uses https.
9 years ago
John Barker 6b03f4afe6 Add copyright notice for James Laska 9 years ago
René Moser db564c9b0f Merge pull request #3283 from mscherer/fix_argument_rhn_register
Fix argument rhn register
9 years ago
René Moser 7080dd057b Merge pull request #3288 from jhutar/fix-sslcacert-for-rhn_register
Add missing parameters so these options are usable
9 years ago
Hugh Saunders e9fd7befb7 Retry apt cache updates 9 years ago
René Moser d4285b5f21 Merge pull request #2613 from Jmainguy/apt_download_deb
Add ability to download deb from url
9 years ago
Strahinja Kustudić c8222bc8db Yum module always downloads remote rpms. fixes #1452 9 years ago
Rene Moser e760b45867 apt: doc: fix missing version_added
see #2023
9 years ago
Chris Lamb f4bc59595c os/apt.py: Add support for passing --allow-unauthenticated
This is useful for packages that bootstrap their own apt-key setup - only
the initial installation will require overriding. Notable examples are the
Dropbox and Google Chrome packages.

(Setting force=yes is far too strong: I only want to bypass
authentication!)

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
9 years ago
Jan Hutar 3d13a353e0 Add missing parameters so these options are usable 9 years ago
Michael Scherer 2b489e3257 Fix type of the rhn_register module
Password and activationkey should be tagged as no_log, as they
are supposed to be secret.
sslcacert is a path, so should be tagged as such.
9 years ago
Toshio Kuratomi 22a9a15a5b Fix indent in documentation 9 years ago
James Cammarata 4be29d6e84 Merge pull request #3072 from rsommer/devel
add 'only_upgrade' switch to apt module
9 years ago
Roland Sommer b118c5ef11 honour 'only_upgrade' flag for 'build_dep' case in 'apt' module 9 years ago
toshihisa 530643a216 One more bug yum non English locales
d7fac82f97
9 years ago
Roland Sommer bc9fb43ac0 add 'only_upgrade' switch to apt module 9 years ago
Matt Martz d112599fd5 Set version_added to 2.1 for autoremove. Fixes #3200 9 years ago
Matt Davis 7d2fd4e944 Merge pull request #2926 from mattclay/apt-unsafe
Split shell command to avoid use_unsafe_shell.
9 years ago
Tobias Wolf c5be97ca5c Add diff support to apt_repository module
The returned list of diffs aims to simulate how a file system diff would
look before and after writing the sources list files.

![screenshot](http://i.imgur.com/dH6QXtY.png)

n.b. Ternary conditional  is due to failing integration test for
python 2.4
9 years ago
Brian Coca 2a03fc2b99 Merge pull request #2997 from callipeo/issue/2996
Add support for both keyserver and keyring in apt_key
9 years ago
Brian Coca 38d6c1cd36 expanded info on fail on check + missing apt-python
it now explains that apt module will auto install
9 years ago
Matt Clay d33e033eba Do not install python-apt in check mode. 9 years ago
callipeo 27df98b6fb Add support for both keyserver and keyring in apt_key
Fixes Issue #2996
9 years ago
Toshio Kuratomi 1df8ebf0c3 use new method of setting locale and other environment variables
The old method left settings in the environment.  The new method takes
care of clearing them after use.  In this module, the old method was
also setting the environment too late to affect all the command line
tools which lead to a bug.

Fixes https://github.com/ansible/ansible/issues/14264
9 years ago
Charles Paul d7a0a3b7e3 adding autoremove to apt 9 years ago
Toshio Kuratomi 63fda10853 Merge pull request #1458 from Tahvok/patch-1
Explain that state=present should be used with yum and url
9 years ago