Commit Graph

69 Commits (2d4315020d097cd3f5a25367cdd65454f38dda52)

Author SHA1 Message Date
James Tanner 6c8980c1a4 Fixes #6567 put the git wrapper script in the module temp dir 11 years ago
andreaskern 2385b28de5 add param to note example for ssh-keyscan
hostnames in the known hosts file are typically stored as Hashed values, calling 'ssh-keyscan' with '-H' changes to output to the Hashed format so that the known_hosts file looks more consistent
11 years ago
patrickheeney 4bc663092f Fix documentation for accept_hostkey 11 years ago
Michael DeHaan 349063743f Some more run_command updates. 11 years ago
Patrick Smith 0f9cb7a24f git: Execute git commands in `dest` directory 11 years ago
James Cammarata c68be8b418 Remove validate_certs parameter from fetch_url calls 11 years ago
James Tanner fc33860e5d Force command action to not be executed by the shell unless specifically enabled 11 years ago
James Cammarata a1b1182662 Validate SSL certs accessed through urllib*
* Adds another module utility file which generalizes the
  access of urls via the urllib* libraries.
* Adds a new spec generator for common arguments.
* Makes the user-agent string configurable.

Fixes #6211
11 years ago
Chris Church 0e955832d7 Pass svn arguments as a list of strings instead of using string substition to ensure all parameters are escaped properly. 11 years ago
James Cammarata e67c08b37f Merge branch 'git_version_tags' of https://github.com/j2sol/ansible into j2sol-git_version_tags 11 years ago
James Cammarata a6d92bf4b7 Merge branch 'devel' of https://github.com/calebbrown/ansible into calebbrown-devel 11 years ago
Jesse Keating c6f4d4328b Make sure requested version tag gets downloaded
There is a subtle bug in how the git module currently works. If the
version you request is a tag name, and you've already got the repo
cloned, and the tag name is a new tag, but refers to the already checked
out working copy, the git module would exit early without change. This
is bad as it means the new tag ref was not fetched and could not be used
in later tasks.

This change will check if the version is a remote tag, and if the tag
doesn't exist locally. If that is true, it'll do a fetch.

The activity could still be seen as not a change, because the working
copy won't be updated, if the new tag refers to the already checked out
copy, but that's not different than before and can be fixed as a more
comprehensive overhaul of tracking change in the git module.
11 years ago
Michael Porter 6f685e45dc (#5822) Use `mkstemp` to open a temporary file (as NamedTemporaryFile doesn't take a `delete` argument in Python < 2.6) 11 years ago
James Tanner dc51bb5389 Fixes #5750 Fail on missing ~/.ssh and ignore accept_hostkey if stricthoskeychecking is off 11 years ago
James Tanner 859128da0a Fix git module parameters to conform to code standards 11 years ago
James Tanner 07f9733e96 Fixes #4108 Add sshopts and keyfile parameters to the git module 11 years ago
Caleb Brown d18c27fe76 Fix a bug in "hg" module so that `pull` is not set to a version.
There is a bug in the `hg` module where if a `tag` is used it won't
properly be able to update to it.

This problem is exhibited on repository where a tag is moved from an
older commit to a newer commit.
11 years ago
René Moser 587103e564 subversion: use LANG=C to prevent regex failures
Fixes bug GH-5549.
11 years ago
jctanner a2489ac83c Merge pull request #5141 from kisielk/hg
hg module: Don't modify hgrc when running purge
11 years ago
James Tanner 13ce8728de Set accept_hostkey to False by default in the git module and fail
early if the key is unknown
11 years ago
James Tanner 24eba74edd Add an "accept_hostkey" parameter to the git module to help automatically
accept hostkeys for git repos and prevent task hangs when the key is unknown
11 years ago
Kamil Kisiel 8aff264216 Don't modify hgrc when running purge 11 years ago
James Tanner 38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
James Tanner b97976d720 Addresses #5036 fix typo in git module 11 years ago
James Tanner 1ead99204d Fixes 5036 add missing parameter to git module function call 11 years ago
Michael DeHaan 55a48aacc3 Changelog updates and a few module renames. vpc -> ec2_vpc, githooks -> github_hooks, blacklist -> kernel_blacklist. These are all new in 1.4 so safe to change. 11 years ago
James Tanner 68c9fe3833 Fix copyright section in githooks module 11 years ago
jctanner a4bd206f09 Merge pull request #4691 from cg-soft/git-bare-ref-repo-support
Add support for bare git reference repos
11 years ago
James Tanner d2df80788d Quote docstring in githooks module 11 years ago
jctanner 51a6ed8657 Merge pull request #4731 from pcgentry/devel
new githooks module
11 years ago
Michael DeHaan 8687525d18 Fix documentation formatting. 11 years ago
Michael DeHaan 50ef750a25 Suggest keyscan for github/other SCM hanging. 11 years ago
Christian Goetze c25d7e4165 Add support for bare git reference repos
This adds two parameters to the git module:

  bare (boolean)
    Indicates this is to be a bare repositori

  reference (string)
    Indicates the path or url to the reference repo.
    Check out the "--reference" option in the "git clone"
    man page

Added appropriate tests.
11 years ago
Phillip 22d679ffc5 adding the githooks module 11 years ago
Yap Sok Ann e568c63108 git: Don't add --branch while cloning if the version is a SHA-1 hash. 11 years ago
Yap Sok Ann d77276380f git: Handle network problem when running `git ls-remote`. 11 years ago
Yap Sok Ann 633438bfbb git: Always return the before/after revisions, even in check mode.
The return values from check mode and non-check mode should match in all cases,
except when a SHA-1 hash is used as version, as there is no way to check if it
is a valid hash using `git ls-remote`.

Also, to accomodate this change, the force flag for the reset function has been
removed so that we can do the checking in main.
11 years ago
Yap Sok Ann 12c4bf51b8 git: Make function get_remote_head usable when cloning.
This allows the module to return the before/after revisions in all cases.
11 years ago
Yap Sok Ann 3ff0c6d50d git: Remove unnecessary return code checking.
The functions either return rc=0 or call fail_json themselves.
11 years ago
Yap Sok Ann 201ff02d1f git: Full length SHA-1 in, full length SHA-1 out.
This removes ambiguity at the expense of slight backward incompatibility.
11 years ago
Mads Weitling f5c04e2ff4 Fix Hg.__init__(...) reading value from self.hg_path 11 years ago
Mads Weitling f2f7060454 Fix 'hg module fails with: AttributeError: 'AnsibleModule' object has no attribute 'parames'' 11 years ago
James Tanner 1a9a6da4f7 fix docstring indentation on scc modules 11 years ago
Skylar Saveland d7e5fcf30f add executable option to subversion module 11 years ago
Skylar Saveland bb4619e716 add executable option to hg, refactor in doing so 11 years ago
Skylar Saveland 3f74c2d986 add executable option to bzr module, refactor in doing so 11 years ago
Skylar Saveland 198c4702bd executable option to git module 11 years ago
Steve Fox cf0ffda163 Elaborate on capabilities of subversion module 11 years ago
James Cammarata 102833cca6 Merge branch 'gitfix' of https://github.com/johanwiren/ansible into johanwiren-gitfix 11 years ago
Johan Wirén 3ac5f2d409 Fixed so that we no longer check with the remote if a checkout already is at the desired sha version. 11 years ago