Commit Graph

3428 Commits (42f769637ee2f6cf2a279eb7f514dc37bb7ab2f2)
 

Author SHA1 Message Date
Michael DeHaan 42f769637e Merge pull request #1749 from jpmens/andoc3
ansible-doc: print Notes heading only if there are any
12 years ago
Michael DeHaan f7c7797142 Merge pull request #1764 from njharman/pip
pip module improvements
12 years ago
Michael DeHaan 70dbc81029 Merge pull request #1756 from marktheunissen/fix-ec2-inventory-path
Tweak docs for correct paths and filenames for ec2 inventory
12 years ago
Norman J. Harman Jr 19b84d0527 pip module improvements
- Do not silently ignore malformed pip requirements files.
- Properly reports changed when removing packages.
- "latest" i.e. --upgrade is *not* incompatible with requirements files.
- Less branchy, simpler logic.
- Removed pointless variable "initializations", Python doesn't need that.
  Other code simplifications.
- Fun fact; pip install is (kind of) case insensitive, pip freeze is not.
  So, 'sqlalchemy' will be reported as installed by install, but missing
  by freeze.

The perhaps controversial change and the one that led to finding /
fixing above issues...

Instead of adding command parameters 'index', and 'find', and 'mirrors',
and etc.  Added 'extra_args' which are passed onto pip.

The use case for --index-url is having a private pypi repo, like
http://pypi.python.org/pypi/localshop, to which you publish private
packages.  I'm sure most every pip option has a use case for someone.
extra_args handles all those. Can reserve ansible command parameters for
the most common.

Tested with pip 1.1.
12 years ago
Daniel Hokka Zakrisson 52be556e1f Merge pull request #1760 from skvidal/devel
if user has manually installed an intermediate version - don't ignore it...
12 years ago
Seth Vidal 165861dd2f if user has manually installed an intermediate version - don't ignore it: issue 1754 12 years ago
Mark Theunissen 660bb43e21 Tweak docs for correct paths and filenames 12 years ago
Daniel Hokka Zakrisson 2fd7d7149f Merge pull request #1753 from skvidal/devel
make --list-hosts expand out extra vars in the hosts: field
12 years ago
Seth Vidal 0f6669fafe make --list-hosts expand out extra vars in the hosts: field 12 years ago
Jan-Piet Mens e913fb8732 print Notes heading only if there are any 12 years ago
Michael DeHaan 959a461080 Merge pull request #1718 from jpmens/andoc2
CLI: ansible-doc rebased
12 years ago
Michael DeHaan 637883164e Merge pull request #1720 from bladypirat/devel
added support for scheduling downtime for all services on host
12 years ago
Stephen Fromm 8e8c0c4a96 Merge pull request #1736 from abourget/document_supervisorctl
supervisorctl: document the 'present' option
12 years ago
Alexandre Bourget 0b9cbcb270 supervisorctl: document the 'present' option 12 years ago
Michael DeHaan cc76b4f5b1 Merge pull request #1728 from dagwieers/nameerror-fix
Fix "NameError: global name 'name' is not defined" exception
12 years ago
Dag Wieers ac2f396379 Fix "NameError: global name 'name' is not defined" exception 12 years ago
Daniel Hokka Zakrisson 11b64314df Select all fields from the user, as some of them are version-dependent 12 years ago
Stephen Fromm 65413dc778 Merge pull request #1724 from sfromm/issue1722a
Further refine remote branch tracking in b1ec6e8
12 years ago
Stephen Fromm 1bcfdd94f3 Further refine remote branch tracking in b1ec6e8
Move operations that are dependant on a remote branch under a if
is_remote_branch() conditional.  While at it, remove assignment to cmd
string in same block that wasn't used when calling _run().
12 years ago
Stephen Fromm 1d910bb4e3 Merge pull request #1723 from sfromm/issue1722
Fix git module to update branch to latest when using version=<branch>
12 years ago
Stephen Fromm b1ec6e8163 Fix git module to update branch to latest when using version=<branch>
The git module would not pull in updates to a branch when
version=<branch>.  This updates that block to checkout the branch
and then do a git reset --hard <remote>/<branch>.  This
should now track updates to a branch.
12 years ago
Daniel Hokka Zakrisson 5809807bc1 Merge pull request #1721 from dagwieers/import-errno
Import errno to avoid 'NameError: global name 'errno' is not defined'
12 years ago
Dag Wieers dd4ac46397 Import errno to avoid 'NameError: global name 'errno' is not defined'
I hit the following exception because errno is referenced but not imported.

```
fatal: [system01] => failed to parse: Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1354644532.37-246102819320352/copy", line 782, in <module>
    main()
  File "/root/.ansible/tmp/ansible-1354644532.37-246102819320352/copy", line 117, in main
    module.atomic_replace(dest_tmp, dest)
  File "/root/.ansible/tmp/ansible-1354644532.37-246102819320352/copy", line 772, in atomic_replace
    if e.errno != errno.EPERM:
NameError: global name 'errno' is not defined
```
12 years ago
Piotr Kweclich 9c20eb089b added support for scheduling downtime for all services on host 12 years ago
Jan-Piet Mens 77e060250c CLI: ansible-doc rebased 12 years ago
Michael DeHaan dbf5a57a5a Merge pull request #1683 from bcoca/template_override
Template override
12 years ago
Stephen Fromm a74cae208d Merge pull request #1715 from sfromm/issue1713
Further tweak how to find pip in virtualenv on centos/redhat/fedora
12 years ago
Stephen Fromm 5b7c8fcc38 Further tweak how to find pip in virtualenv on centos/redhat/fedora
In a virtualenv, pip is called just pip.  This fixes the pip module to
search for the virtualenv pip first before trying the pip-python and
python-pip variants.  Without this, pip module would not install to the
virtualenv when that parameter is provided.
12 years ago
Stephen Fromm 1e7526ee78 Merge pull request #1714 from sfromm/issue1712
Make use of mirrors in pip module configurable with use_mirrors option
12 years ago
Stephen Fromm e33e02950d Make use of mirrors in pip module configurable with use_mirrors option
Older versions of pip (anything less than 1.0?) do not support
--use-mirrors flag.  This makes it configurable.  Default is yes.
12 years ago
Daniel Hokka Zakrisson e54b4b1c9a Ignore arguments when checking for interpreter, and re-add before use 12 years ago
Daniel Hokka Zakrisson d5a456fbcf Merge pull request #1697 from bcoca/mint
Implements multiple interpreter overrides
12 years ago
Daniel Hokka Zakrisson ffac7ce2f9 Merge pull request #1687 from dhozac/allow-grouping-in-external-inventory
Allow inventory scripts to define groups of groups and group vars
12 years ago
Stephen Fromm 89efd35c5a Merge pull request #1710 from sfromm/issue1705
Fix pip module to check if requirements already installed
12 years ago
Stephen Fromm d277953a53 Fix pip module to check if requirements already installed
This updates _is_package_installed() to accept a requirements file
as an argument.  This is used later in main() to check if python libs
specified in a requirements file are already installed.  I updated
main() to consolidate the handling of install/uninstall in a single
block.  This should help if someone wants to remove packages specified
by a requirements file.
12 years ago
Michael DeHaan fdf37b8c6c Merge pull request #1709 from dagwieers/rpm-version-fix
Updated ansible version to align with RPM package
12 years ago
Dag Wieers c65c00cb34 Updated ansible version to align with RPM package 12 years ago
Michael DeHaan 7a6267ec36 Update changelog 12 years ago
Michael DeHaan 5890a2a9da Release stuff 12 years ago
Michael DeHaan 9afb7c1ed0 Get ready to release 0.9 12 years ago
Jan-Piet Mens 17f31a2a79 CLI: ansible-doc shows lists of modules & module docs on command-line
check path is directory
added manpage & setup
small cleanup
shut up module_formatter in utils to avoid trace print on crud files in library
12 years ago
Daniel Hokka Zakrisson 8d309e0fa3 Allow inventory scripts to define groups of groups and group vars 12 years ago
Daniel Hokka Zakrisson b8d6dec5ad Reset notified_by list per serialized batch
Fixes the case where a handler attempts to run for every batch after any
batch has notified it, regardless of whether the current batch did.
12 years ago
Daniel Hokka Zakrisson a56e1f31fa Properly restrict hosts after 9070875 12 years ago
Daniel Hokka Zakrisson f6245e17c1 Skip evaluating only_if for BYPASS_HOST_LOOP plugins 12 years ago
Daniel Hokka Zakrisson bda08c8a1b Avoid creating temporary directory for some action plugins
This ensures we don't litter remote systems with temporary directories
that don't get cleaned up, as well as speeds things up from not having
to touch every node.
12 years ago
Daniel Hokka Zakrisson f6e7381a71 Evaluate only_if in group_by 12 years ago
Michael DeHaan 93fe43f0c4 Merge pull request #1701 from dhozac/serial-skip-failed
Skip already failed hosts for serial
12 years ago
Michael DeHaan 8690854662 Merge pull request #1703 from igalic/svn-doc-fix
Fix subversion module's documentation
12 years ago
Igor Galić 1ba5c5ae97 : doesn't work in this documentation. 12 years ago