Commit graph

415 commits

Author SHA1 Message Date
Michael DeHaan
03f1578768 Merge conflict 2013-06-18 20:18:17 -04:00
Michael DeHaan
69ff91505c Merge remote branch 'origin/devel' into devel 2013-06-18 20:17:31 -04:00
Jesse Keating
9f3c43290e pkg option of apt is not required
You can use apt module with update_cache and without specifying a
package. Update the docs to reflect this.
2013-06-18 16:25:46 -07:00
Michael DeHaan
538a998d26 Merge branch 'apt_key_file' of git://github.com/veeti/ansible into devel
Conflicts:
	library/packaging/apt_key
2013-06-18 16:18:31 -04:00
Veeti Paananen
b53982f9d2 Add apt_key examples for file and data 2013-06-17 18:23:40 +03:00
Jan-Piet Mens
98c1423269 Docs: consistently format playbook EXAMPLES 2013-06-17 08:53:46 +02:00
Michael DeHaan
d91ffdef72 Merge pull request #3162 from strawlab/apt-key-binary-fix
allow apt-key module to work with binary key
2013-06-16 20:27:10 -07:00
Michael DeHaan
e27e8d91ac Merge pull request #3225 from eest/openbsd_pkg-check_mode
openbsd_pkg: Add check_mode support.
2013-06-16 19:40:46 -07:00
Michael DeHaan
3a9f45d457 Merge pull request #3213 from veeti/apt_key_data
Document the data argument for apt_key
2013-06-16 19:39:55 -07:00
Michael DeHaan
2ec0c4478c Merge pull request #3227 from bcoca/modules_wantlist
implementing with_items list globbing made easier for modules
2013-06-16 19:29:02 -07:00
Michael DeHaan
2ad98dec1c Merge pull request #3199 from chrishoffman/doc_error
Fixing documentation error
2013-06-16 19:28:12 -07:00
Michael DeHaan
275b0d6c4e Merge pull request #3194 from E-M/patch-2
Fixed Issue #3193 - make rhn_register module compatible with EL 5
2013-06-16 19:17:05 -07:00
Brian Coca
98c290f9e1 now modules can implement with_items list globbing w/o updating
hardcoded lists in ansible code, just add WITH_ITEMS_USES_LIST in a
comment anywhere, and of course, support recieving params as list.

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
2013-06-15 16:28:43 -04:00
Jan-Piet Mens
3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
2013-06-15 20:54:25 +02:00
Patrik Lundin
e5abd86d43 openbsd_pkg: Add check_mode support.
The biggest change has been to package_latest since it was previously
just comparing version numbers before and after an upgrade had run.
We now parse the output from a dry run instead.

Thanks to Johan Belin for triggering the discussion :).
2013-06-15 16:27:45 +02:00
Veeti Paananen
e4c4f8ba7d Add a file argument to apt_key 2013-06-14 14:34:04 +03:00
Veeti Paananen
6a572f3607 Document the data argument for apt_key 2013-06-14 14:32:56 +03:00
Chris Hoffman
1e80df4e9b Removing all the default: null from the documentation 2013-06-13 20:43:14 -04:00
Chris Hoffman
b437ac7dda Fixing documentation error 2013-06-13 15:19:35 -04:00
Edgars M
e537232c63 Fixed Issue #3193 2013-06-13 15:17:35 +03:00
E-M
7460c42c28 Fixed module name in examples section
Examples showed that modules name is rhnreq_ks, when it actually is rhn_register.
2013-06-13 11:13:53 +03:00
Andrew Straw
7d9eb14b2a allow apt-key module to work with binary key 2013-06-09 20:03:28 +00:00
Michael DeHaan
c6e56bd207 Rename module 2013-06-08 14:18:31 -04:00
Michael DeHaan
e87265fa93 Update "added in" version in zypper, update doc name of rhn_register module. 2013-06-08 14:09:37 -04:00
Michael DeHaan
35cbb1a09e Rename module 2013-06-08 14:08:52 -04:00
Michael DeHaan
0cb9d42721 Rename rhnreg_ks to rhn_register 2013-06-08 14:08:23 -04:00
Michael DeHaan
4d3106a56b Merge pull request #3148 from jlaska/rhnreg_ks
Add rhnreg_ks module
2013-06-08 11:06:24 -07:00
Patrick Callahan
ec60e59df3 BUG FIX: Add package name to the cmd. 2013-06-07 23:31:21 -04:00
James Laska
8593409767 Minor adjustments to subscription_manager and rhnreg_ks 2013-06-07 14:18:23 -04:00
James Laska
3e05292fa3 Reorganize subscription_manager module.
Also ...
 * When unregistering, first unsubscribe from all content
2013-06-07 14:07:00 -04:00
James Laska
7ccede32fa The rhnreg_ks module acts as a wrapper to the command 'rhnreg_ks'. The
rhnreg_ks command allows users to manage registration to a Red Hat
Network (RHN) (e.g. rhn.redhat.com) server.  The moduel will also
interact with the specified RHN system via XMLRPC as needed.

Before proceeding with registration, the rhnreg_ks module will enable
the system to receive updates from RHN.  This involves enabling the
appropriate RHN yum plugin, as well as disabling an active
subscription-manager yum plugin.

Once enabled, the module will support the following operations:
 * configure
 * register
 * subscribe to custom child channels (see `rhn-channel` command)
 * unregister
2013-06-07 13:45:25 -04:00
Patrick Callahan
8c32154d1e Simple zypper module to install, remove, or upgrades packages. 2013-06-06 21:57:32 -04:00
Michael DeHaan
abfb76b415 Fixup doc YAML 2013-06-06 19:21:18 -04:00
James Laska
04b11668cb Updated examples and documentation 2013-06-06 16:30:06 -04:00
James Laska
7c14adf891 Add RHN subscription_manager module
The subscription_manager module acts as a wrapper to the command
'subscription-manager'.  The subscription-manager utility allows users
to manage RHN registration, subscription and yum repositories from the
Red Hat Entitlement platform.

Currently, this module supports the following sub-commands:
 * config
 * [un]register
 * subscribe
2013-06-06 15:00:38 -04:00
y-p
613202e785 Add is_local_path check to pip module, for skipping --use-mirrors 2013-06-04 03:01:42 +03:00
y-p
aa212e87ec Add chdir parameter to pip 2013-06-04 02:15:39 +03:00
Michael DeHaan
4105813ebe Lots of formatting fixes 2013-05-24 23:46:23 -04:00
Michael DeHaan
961b9c1caa Merge pull request #2986 from wbowling/devel
Fixes apt_repository always reporting file uri repos as changed
2013-05-24 20:07:03 -07:00
Michael DeHaan
5836783181 Merge pull request #2976 from stoned/pip-virtualenv_command-pathname
Allow virtualenv_command argument of the pip module to be a pathname
2013-05-24 20:01:12 -07:00
Michael DeHaan
64779e4a0b Merge pull request #2975 from stoned/doc-pip-fix
Fix pip module documentation (YAML quoting)
2013-05-24 19:55:14 -07:00
Michael DeHaan
65aca6cef6 Merge pull request #2995 from SirScott/pip-sudo-user
pip module -- sudo_user permission problem fix
2013-05-24 19:51:38 -07:00
Stoned Elipot
8a0fc56323 Fix typo in npm module documentation preventing it to be processed by ansible-doc 2013-05-24 01:27:46 +02:00
Scott Sturdivant
cc1f1368e4 Chdir to tempdir to prevent permissions problems. 2013-05-23 10:56:52 -06:00
William Bowling
5537358532 Fixes apt_repository always reporting file uri repos as changed 2013-05-23 12:39:22 +10:00
Stoned Elipot
c6712b35a2 Allow virtualenv_command argument of the pip module to be a pathname 2013-05-22 18:15:21 +02:00
Stoned Elipot
1082ba6c1c Fix pip module documentation (YAML quoting) 2013-05-22 18:09:01 +02:00
John Jarvis
008e18d1d3 fixes case where name is omitted from pip arg list
This code:
```
    if name.endswith('.tar.gz') or name.endswith('.tar.bz2') or
name.endswith('.zip'):
        is_tar = True
```
was not checking whether name is defined since it is an
optional param.
2013-05-18 20:59:21 -04:00
John Jarvis
fc61824591 fixing syntax error 2013-05-18 19:49:25 -04:00
Michael DeHaan
47675caab5 Merge pull request #2948 from jcbagneris/devel
Fixes in apt module doc: typos, examples
2013-05-18 13:33:27 -07:00
Michael DeHaan
2209f44371 Merge pull request #2932 from bcoca/apt_getbins
apt now uses module function to find bin paths
2013-05-18 13:13:04 -07:00
Michael DeHaan
79081133af Merge pull request #2905 from kjkuan/bugfix-apt-version-comparison
Make package version comparison use globbing.
2013-05-18 12:48:28 -07:00
Michael DeHaan
6fb632dffe Merge pull request #2875 from yeukhon/devel
Pip's name key can now accept remote package address.
2013-05-18 12:41:12 -07:00
Yeukhon Wong
76e1e5bbe9 Pip can now accept vcs or tarball as name. Prevented adding mirrors when name is vcs.
**Summary**:

There was a bug in the previous commit; pip module would add --use-mirrors options to a source package when state is absent. The bug is resolved in this commit by checking ``not is_package`` in the if branch.

Furthermore, in order to support non-vcs source name like tarballs, we must not add -e option to the arg list. Given this circumstance, this commit have is_tar and is_vcs and the latter is checked to add -e option. Since mirrors do not make sense with vcs or tarball source, this commit will not add --use-mirrors (default to True) as always.
2013-05-18 05:31:29 +00:00
JcB
5d89534744 Fixes in apt module doc: typos, examples 2013-05-17 16:12:30 +02:00
Brian Coca
8f87a0d109 apt now uses module function to find bin paths
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
2013-05-15 22:44:12 -04:00
Michael DeHaan
117f50dcde Merge pull request #2911 from sergevanginderachter/apt-repo-ppa-bug
fix an idempotence bug in apt-repository where 'ppa' is used in a plain http://ppa. ....
2013-05-14 13:13:04 -07:00
Jack Kuan
0b941abd04 Make package version comparison use globbing.
I have something like:

  apt: pkg={{ item }} state=present
  with_items:
    - python-pysqlite2=2.6.3-*
    - python-paramiko=1.7.7.1-*

But due to the use of *'s in the version specifications, the apt ansible
module always reports changed: true. This patch fixes that.
2013-05-13 15:01:02 -04:00
Michael DeHaan
de74cfd85e Merge pull request #2895 from jpmens/docreqs
Add Requirements to rst template, ansible-doc
2013-05-11 11:41:20 -07:00
Jan-Piet Mens
521162f43d Add Requirements to rst template, ansible-doc
tweak position & look of Requirements in rst
tweak APT's notes as per anhj's wish
2013-05-11 16:46:59 +02:00
bleader
394b89874e new module to handle FreeBSD packages with pkgng
New binary package management should be the default soon in FreeBSD, and
is already fully useable through self generated and non official binary
repositories.

- add support for pkgng
- support specifying the repository url as a parameter
- allow not to update cache

Signed-off-by: bleader <bleader@ratonland.org>
2013-05-10 15:03:07 +02:00
Yeukhon Wong
2c72b905a7 Pip's name key can now accept remote package address.
Summary:

Pip module would abort when name is a remote package address because
the module was expecting a version if ``=`` is part of the name value.

Furthermore, the pip module would require either name or requirement to
be a key, although the documentation table said neither was required.
The fact that one of them must be present is not documented in the
documentation leads to confusion. This commit added this fact as part
of description.

In this commit, we resolve the confusion by stating either ``name``
or ``requirement`` is needed. Next, if the user puts remote address
as the value of the ``name`` key, we will not use mirror. Lastly,
if the user uses the remote serivice address as the name of the
package and the user does not supply -e option in extra_vars
(which is the whole point of this commit), we will add -e to
 extra_vars so pip command can run with -e option.
2013-05-09 05:11:02 -04:00
Michael DeHaan
3802560eaa Merge branch 'devel_apt-cache_valid_time' of git://github.com/gottwald/ansible into devel 2013-05-05 12:28:33 -04:00
Serge van Ginderachter
e143f86867 fix a bug in apt-repository where 'ppa' is used in a plain http://ppa. .... url 2013-05-03 20:57:55 +02:00
Michael DeHaan
cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 2013-04-28 15:03:45 -04:00