James Cammarata
daa3253b52
Merge branch 'devel' of https://github.com/calebbrown/ansible into calebbrown-devel
2014-02-17 15:38:56 -06:00
Michael Porter
8ccbf13a13
( #5822 ) Use mkstemp
to open a temporary file (as NamedTemporaryFile doesn't take a delete
argument in Python < 2.6)
2014-01-30 19:39:39 -05:00
James Tanner
3ec043ec17
Fixes #5750 Fail on missing ~/.ssh and ignore accept_hostkey if stricthoskeychecking is off
2014-01-28 11:49:35 -05:00
James Tanner
86ba8f4dff
Fix git module parameters to conform to code standards
2014-01-23 16:44:17 -05:00
James Tanner
18050d50ec
Fixes #4108 Add sshopts and keyfile parameters to the git module
2014-01-23 16:22:43 -05:00
Caleb Brown
19f7db3065
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.
2014-01-23 15:56:36 +11:00
René Moser
0f2bc0dad8
subversion: use LANG=C to prevent regex failures
...
Fixes bug GH-5549.
2014-01-15 10:05:31 +01:00
jctanner
2e1d92c2ec
Merge pull request #5141 from kisielk/hg
...
hg module: Don't modify hgrc when running purge
2014-01-14 10:24:37 -08:00
James Tanner
eeee1e1c5a
Set accept_hostkey to False by default in the git module and fail
...
early if the key is unknown
2014-01-11 11:02:01 -05:00
James Tanner
8665b0638a
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
2014-01-11 10:36:45 -05:00
Kamil Kisiel
2300902784
Don't modify hgrc when running purge
2013-12-02 23:50:33 -08:00
James Tanner
6000d636b3
Fixes #5023 Convert all modules to use new snippet import pattern
2013-12-02 15:11:23 -05:00
James Tanner
5c1fbcc9d2
Addresses #5036 fix typo in git module
2013-11-25 09:55:05 -05:00
James Tanner
d950a3d1b5
Fixes 5036 add missing parameter to git module function call
2013-11-25 09:51:07 -05:00
Michael DeHaan
2726b13245
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.
2013-11-18 18:28:21 -05:00
James Tanner
dfe6c5d434
Fix copyright section in githooks module
2013-11-14 14:49:10 -05:00
jctanner
ad5012f930
Merge pull request #4691 from cg-soft/git-bare-ref-repo-support
...
Add support for bare git reference repos
2013-11-14 10:39:57 -08:00
James Tanner
303e996035
Quote docstring in githooks module
2013-11-14 13:20:17 -05:00
jctanner
ce20cf8488
Merge pull request #4731 from pcgentry/devel
...
new githooks module
2013-11-14 10:17:39 -08:00
Michael DeHaan
337b6ce642
Fix documentation formatting.
2013-10-31 20:00:11 -04:00
Michael DeHaan
6d16f85b30
Suggest keyscan for github/other SCM hanging.
2013-10-31 18:00:24 -04:00
Christian Goetze
f41d4ac390
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.
2013-10-31 10:56:14 -07:00
Phillip
824d5688fc
adding the githooks module
2013-10-30 09:03:11 -05:00
Yap Sok Ann
8519d586ba
git: Don't add --branch while cloning if the version is a SHA-1 hash.
2013-10-16 20:37:07 +08:00
Yap Sok Ann
9f8cdac0aa
git: Handle network problem when running git ls-remote
.
2013-10-16 20:37:07 +08:00
Yap Sok Ann
a53e7045a6
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.
2013-10-16 20:37:07 +08:00
Yap Sok Ann
b9558828e8
git: Make function get_remote_head usable when cloning.
...
This allows the module to return the before/after revisions in all cases.
2013-10-16 20:37:07 +08:00
Yap Sok Ann
2ad4d77c9a
git: Remove unnecessary return code checking.
...
The functions either return rc=0 or call fail_json themselves.
2013-10-16 20:37:06 +08:00
Yap Sok Ann
9af05f4d2f
git: Full length SHA-1 in, full length SHA-1 out.
...
This removes ambiguity at the expense of slight backward incompatibility.
2013-10-16 20:37:06 +08:00
Mads Weitling
ce799b9e0e
Fix Hg.__init__(...) reading value from self.hg_path
2013-10-10 15:46:10 +00:00
Mads Weitling
740a33bcab
Fix 'hg module fails with: AttributeError: 'AnsibleModule' object has no attribute 'parames''
2013-10-10 17:15:04 +02:00
James Tanner
b98ab745f1
fix docstring indentation on scc modules
2013-10-01 16:46:17 -04:00
Skylar Saveland
b339485da8
add executable option to subversion module
2013-09-26 14:27:40 -07:00
Skylar Saveland
d8c61528db
add executable option to hg, refactor in doing so
2013-09-26 14:27:16 -07:00
Skylar Saveland
c4947ebc7d
add executable option to bzr module, refactor in doing so
2013-09-26 14:26:46 -07:00
Skylar Saveland
5243bd5fa3
executable option to git module
2013-09-26 14:15:28 -07:00
Steve Fox
bd48251b34
Elaborate on capabilities of subversion module
2013-09-24 11:10:09 -05:00
James Cammarata
7bd8c18fa7
Merge branch 'gitfix' of https://github.com/johanwiren/ansible into johanwiren-gitfix
2013-08-22 15:30:58 -05:00
Johan Wirén
dcd556b92f
Fixed so that we no longer check with the remote if a checkout already is at the desired sha version.
2013-08-22 22:05:37 +02:00
Stephen Fromm
cc58403e48
Apply consistent parameter alises to hg and subversion
...
For issue #3372 , apply consistent parameter aliases to source_control
modules. For hg, add name and version and add to documentation string.
For subversion, add version and document version and name aliases in
documentation string.
2013-08-20 13:43:26 -05:00
Drew Blas
9ede377380
Added git disclaimer about dealing with ssh host checking
...
This disclaimer already exists in library/source_control/hg but not here. It affects both and was discussed awhile back on: https://groups.google.com/forum/#!msg/ansible-project/q9G9xIdsRxo/XJhQzuS-qSoJ However no PR was ever sent to fix the doc.
2013-08-07 15:33:29 -05:00
Michael DeHaan
b31cef48e9
Merge pull request #3744 from jimi1283/issue_3360
...
Allow destination paths in the hg module to include a tilde (~)
2013-08-03 10:29:03 -07:00
James Cammarata
7d521ee22c
Allow destination paths in the hg module to include a tilde (~)
...
Fixes issue #3360 - Inconsistent behavior of the hg module w.r.t. dest path
2013-08-02 18:03:20 -05:00
Petr Svoboda
d9576b3529
Tidy up fix of git module traceback
2013-08-02 12:54:06 +02:00
Petr Svoboda
2d5b942ffe
Fix traceback in git module when version checkout fails
...
"UnboundLocalError: local variable 'branch' referenced before assignment" is
raised in git, line 282, in switch_version.
Exception is raised when version is not branch and version checkout fails.
E.g. when version is nonexistant commit.
2013-08-01 12:10:43 +02:00
Michael DeHaan
32d5038d72
Don't add --version HEAD parameter is already HEAD, some versions of git don't like this.
2013-07-20 11:24:16 -04:00
James Laska
95a22338a2
Resolve incompatability between depth and version
...
Git is unable to checkout the specified `version` when the repository is
cloned with a reduced history (`depth`). However, if the repository is
already cloned, subsequent git module calls will update the repository
(default update=True), then properly checkout the specified `version`.
To allow the initial call to properly clone the specified `version`, at
the specified `depth`, this patch adds the `--branch` parameter when
cloning the repository.
2013-07-18 17:03:17 -04:00
Michael DeHaan
0fd7864482
Merge pull request #3432 from jlund/hg-spelling
...
Fix some minor spelling mistakes in the hg module documentation
2013-07-11 05:26:57 -07:00
Matt Spaulding
871f781ec7
Fix git submodule update when version specified
2013-07-03 17:19:14 -07:00
Joshua Lund
caf394c8f6
Fix some minor spelling mistakes in the hg module documentation
2013-07-03 13:23:08 -06:00