Commit graph

107 commits

Author SHA1 Message Date
Toshio Kuratomi
d6af6f8477 Update for modules which import json.
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed

Fixes #1298
2016-01-11 13:06:22 -08:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Brian Coca
08445418aa more string corrections 2015-05-14 10:45:32 -04:00
Brian Coca
edf519a0c2 moar quotes 2015-05-14 09:37:00 -04:00
Greg DeKoenigsberg
1170d8029c Adding author's github id 2015-05-14 00:41:41 -04:00
Greg DeKoenigsberg
adf7496d19 Adding author's github id 2015-05-14 00:40:46 -04:00
Toshio Kuratomi
ceaaa36f16 Reverse the default value of the bzr module force flags 2015-01-29 18:21:21 -08:00
Brian Coca
2003d79a48 Merge pull request #9 from bwhmather/feature/github_content_type
make it possible to configure the content type of a github webhook
2014-12-01 11:42:48 -05:00
Paul Nicholson
08265de4be Add missing __init__.py files for find_package() to work 2014-10-03 16:34:28 -07:00
Ben Mather
165bf6439f mark all actions as private 2014-09-30 08:12:10 +01:00
Ben Mather
2c79db52bc mark list as private instead of shadowing 2014-09-30 08:11:46 +01:00
Ben Mather
f6cd2d931e make it possible to configure the content type of a github webhook 2014-09-29 14:35:04 +01:00
Ben Mather
d95d8c9d98 rename list to list_ to avoid shadowing in github_hooks module
The definition was leaking into ansible.module_utils.basic and causing
type checking to fail when running module as script.  Not entirely clear
why this should be the case.
2014-09-29 14:30:26 +01:00
Michael DeHaan
b1e789968b File extensions! 2014-09-26 10:40:16 -04:00
Michael DeHaan
50f105578a Restructuring. 2014-09-26 10:14:28 -04:00
Michael DeHaan
73123b69fa Move modules into subdirectory. 2014-09-26 09:23:50 -04:00
James Cammarata
0257cb1201 Allow git repo queries without a clone when update=no
This commit also makes the dest parameter optional, unless update=yes
(the default), since it is not required for queries without an update.

Fixes #8630
2014-09-17 02:05:29 -05:00
Devin Austin
8c72247c1e updated git module documentation
Clarified key_file option for the git module, since it requires the user to specify a private key, not a public key.
2014-09-16 11:05:37 -06:00
Michael DeHaan
1194a4ee11 Documentation simplification for git module parameter 2014-07-11 08:44:29 -04:00
James Cammarata
9acf2454d4 Merge branch 'git_fix' of https://github.com/pkit/ansible into pkit-git_fix 2014-06-20 12:47:21 -05:00
James Cammarata
c76535d911 Cleanup subversion module documentation in regards to export 2014-05-27 16:20:10 -05:00
James Cammarata
b4911dcc59 Make sure export param for subversion module is checked as a boolean
Fixes #7548
2014-05-27 14:09:50 -05:00
Aleksey Khudyakov
ac6792356c Fix typo requird -> required 2014-05-24 00:10:46 +11:00
James Cammarata
31250905e9 Check module_path permissions when creating ssh_wrapper for git
If the module directory is not writable/executable to the current user
(most likely because of a sudo to a non-root user), the ssh_wrapper
will be created in the default location for mkstemp() calls. To facilitate
the deletion of these new files, a new mechanism for cleaning up files
created by the module was also added.

Fixes #7375
2014-05-14 21:22:22 -05:00
Chad Nelson
6aac9538a8 Only update submodules when recursive is true 2014-04-17 09:34:36 -04:00
Constantine Peresypkin
1c6c7716fd fix issue #6932
add `git remote set-url` before fetch to set the remote repo to the new url, if provided
2014-04-10 14:13:23 +03:00
James Cammarata
973b29e624 Fix incorrect version_added value in docstring for subversion export param 2014-04-08 10:26:12 -05:00
James Tanner
b65857b4de Addresses #6750 Use --help instead of - 2014-04-03 15:26:48 -04:00
James Tanner
a2307bf2fc Fixes #6750 Check git subcommand for --remote and expose errors 2014-04-03 15:21:54 -04:00
Gael Pasgrimaud
9ca9f270d9 Fix a typo in the subversion module documentation 2014-04-03 14:34:43 +02:00
Oleg A. Mamontov
045eba960e Fixed cwd for submodules update 2014-04-02 13:21:26 +04:00
Michael DeHaan
12391a4ba9 Merge branch 'intellectronica/non-recursive-git' of git://github.com/intellectronica/ansible into devel
Conflicts:
	library/source_control/git
2014-03-28 17:49:02 -04:00
addshore
68f12aa995 Add --remote to git submodule_update
This simply adds --remote to the git submodule update command.
This means that if a branch is defined in .gitmodules then we should track said branch when updating.
2014-03-28 13:01:39 -04:00
James Cammarata
98c62f6b1c Merge branch 'subversion_export' of https://github.com/maniaplanet/ansible into maniaplanet-subversion_export 2014-03-25 21:25:50 -05:00
James Tanner
69d40b861f Fixes #6582 Re-add regex to ignore untracked files that were never tracked 2014-03-19 15:42:40 -04:00
James Tanner
6c8980c1a4 Fixes #6567 put the git wrapper script in the module temp dir 2014-03-19 10:30:10 -04:00
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
2014-03-18 17:24:56 +01:00
patrickheeney
4bc663092f Fix documentation for accept_hostkey 2014-03-13 07:58:12 -07:00
Michael DeHaan
349063743f Some more run_command updates. 2014-03-12 17:04:34 -04:00
Patrick Smith
0f9cb7a24f git: Execute git commands in dest directory 2014-03-12 13:28:39 -04:00
James Cammarata
c68be8b418 Remove validate_certs parameter from fetch_url calls 2014-03-12 10:31:01 -05:00
James Tanner
fc33860e5d Force command action to not be executed by the shell unless specifically enabled 2014-03-10 16:13:30 -05:00
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
2014-03-10 16:06:52 -05:00
Chris Church
0e955832d7 Pass svn arguments as a list of strings instead of using string substition to ensure all parameters are escaped properly. 2014-02-26 22:23:26 -05:00
James Cammarata
e67c08b37f Merge branch 'git_version_tags' of https://github.com/j2sol/ansible into j2sol-git_version_tags 2014-02-25 13:05:29 -06:00
James Cammarata
a6d92bf4b7 Merge branch 'devel' of https://github.com/calebbrown/ansible into calebbrown-devel 2014-02-17 15:38:56 -06:00
Baptiste Lafontaine
d2125192b2 Adding example for svn export 2014-02-10 15:04:17 +01:00
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.
2014-02-07 14:13:04 -08:00
Michael Porter
6f685e45dc (#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
dc51bb5389 Fixes #5750 Fail on missing ~/.ssh and ignore accept_hostkey if stricthoskeychecking is off 2014-01-28 11:49:35 -05:00