Commit graph

6069 commits

Author SHA1 Message Date
Michael DeHaan
1ead97098d Talk more about transports in documentation. 2013-07-04 18:51:47 -04:00
Michael DeHaan
2cb7c30834 Improve interlaced output prevention when asking for host key approval. 2013-07-04 18:17:45 -04:00
Seth Vidal
d710201ecc - optimize for the extremely common case of people specifying pkg names which are, ultimately, already installed
on a system here time went from  16s for a series of pkgs to 3s to just
  check that they were installed.
2013-07-04 17:35:34 -04:00
Michael DeHaan
c55adc9ac9 Default to 'smart' transport, which will use OpenSSH if it can support ControlPersist. 2013-07-04 16:47:17 -04:00
Antti Salminen
d7c6cf10c2 Use .encode() instead of str() to support unicode arguments.
str() throws an UnicodeEncodeError for code points that cannot be
represented in 7-bit ASCII. This makes it impossible to use any
non-ASCII characters in module arguments. Using encode('utf-8')
gives the desired result.
2013-07-04 23:16:38 +03:00
Michael DeHaan
1683d44d2e Lock around SSH connectivity to new hosts in host checking mode such that prompts for host approval
messages do not get interlaced.
2013-07-04 16:04:31 -04:00
Michael DeHaan
cb26945d54 Close the named temporary file. 2013-07-05 01:24:08 -04:00
Michael DeHaan
3b1aa092f8 Closing stdin too early. 2013-07-05 01:20:08 -04:00
Michael DeHaan
ffadbc520a Enable paramiko to ask whether to add keys to known hosts. 2013-07-04 14:05:41 -04:00
Evan Wies
cbeb6a63e5 supervisorctl: add command-line options as module parameters
Adds more parameters which may be passed to supervisorctl:  config,
serverurl, username, password

Also refactored the various `module.run_command(build_a_string)` calls
into a single `run_supervisorctl` function.
2013-07-04 12:23:16 -04:00
lwade
ae992c6b6e Rewritten s3 module to allow for additional modes of operation. 2013-07-04 15:55:06 +01:00
Patrik Lundin
1f1aa1f0a8 Fix path to ntp.conf.j2 in example.
The "common" role adds "common/templates/" to the src path.
2013-07-04 15:42:46 +02:00
Michael DeHaan
cff4ab511c Merge pull request #3434 from mspaulding06/git_submodule_update
Fix git submodule update when version specified
2013-07-03 17:41:40 -07:00
Matt Spaulding
871f781ec7 Fix git submodule update when version specified 2013-07-03 17:19:14 -07:00
Michael DeHaan
d96cedcad1 Example config file should use correct config setting. 2013-07-03 16:55:10 -04:00
Michael DeHaan
9db4f7a9a6 Makes host key checking the default behavior but can be disabled in ansible.cfg or by environment variable. 2013-07-03 16:47:20 -04:00
Joshua Lund
caf394c8f6 Fix some minor spelling mistakes in the hg module documentation 2013-07-03 13:23:08 -06:00
Jan-Piet Mens
9a82d8c692 files/stat: add pw_name and md5 sum to stat, and add meaningful? example
remove unnecessary import,
  md5 sum on regular files only
2013-07-03 21:07:45 +02:00
Evan
de211aa8ec Getting timeout errors this morning as AMIs are taking a bit longer to create, so I changed to timeout to 15 minutes 2013-07-03 11:10:39 -07:00
Evan
637a6c562e fixed spelling errors, unused variables and unused import 2013-07-03 10:35:32 -07:00
Michael DeHaan
4407ca8031 Merge pull request #3427 from insom/issue3409
Make the CPU facts Hyperthreading aware
2013-07-03 08:40:58 -07:00
Aaron Brady
efc4bc10d4 Make the CPU facts Hyperthreading aware 2013-07-03 16:25:35 +01:00
trbs
3b2173b6df sleep option for service module which adds a pauze between stopping and starting a service using state=restarted. This helps for bad scripts that exist immediatly after signaling a process to stop. 2013-07-03 17:08:07 +02:00
Michael DeHaan
f8396622fa Merge pull request #3418 from stoned/filter-bool
Add Jinja2 filter |bool : return boolean interpretation of the value
2013-07-03 05:01:29 -07:00
Michael DeHaan
2f4c930d35 Merge pull request #3423 from arsatiki/devel
Fix service enable on FreeBSD
2013-07-03 05:00:59 -07:00
Antti Rasinen
93fc3391fe Fix service enable on FreeBSD
Some services have a knob (i.e. rc.conf setting) whose name
differs from that of the script. For example, lockd process
is controlled with a script called lockd, but the rc.conf
value is rpc_lockd_enable.

Fixes issue #3382.
2013-07-03 14:52:23 +03:00
Stoned Elipot
0b3483cf03 Add Jinja2 filter |bool : return boolean interpretation of the value
'yes', 'on', '1', 'true', insensitively, and 1 are true,
 everything else is false
2013-07-03 02:13:19 +02:00
Evan Wies
3f6bc3f664 digital_ocean.py enhancements
* Always refresh droplet information (versus getting it from cache) for
  --list, --host, --droplets, and --all.   All the DigitalOcean calls are
  pretty fast and without this change, inventory was often stale/incorrect.
  For example, previously if you destroyed a droplet, the inventory
  script would still find it and attempt to act on it.

* Added --force-cache option

* Added some option shortcuts -d, -r

* Added more value sanitization
2013-07-02 15:49:43 -04:00
Evan Duffield
c8f8f14e59 Added module for baking EC2 AMIs 2013-07-02 11:24:40 -07:00
Ben Podoll
1bea4b1709 fixing small mis-spelling 2013-07-01 21:33:25 -05:00
Michael DeHaan
25aaee4c38 Merge pull request #3394 from jpmens/docs3
broken docs in files/file module!
2013-07-01 07:26:31 -07:00
Dmitry Kolobaev
8745de11a6 Update gem
I've added ability to install gems in system-wide manner with --no-user-install options
2013-07-01 06:20:46 -07:00
Andrew de Quincey
4cb48f0dcc Check if mysql allows login as root/nopassword before trying supplied credentials. 2013-07-01 11:56:04 +01:00
Jan-Piet Mens
f77c0a44f9 broken docs in files/file module!
remove obsolete examples: key
2013-07-01 12:18:07 +02:00
Brian Coca
9f75397310 updated module docs to reflect 'correct' on_create vs on_creation
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
2013-06-30 20:32:05 -04:00
Stoned Elipot
baf868f825 Add test for 'ignore_errors:' 2013-07-01 02:31:16 +02:00
Michael DeHaan
955611bda8 Fixes #3294 2013-06-30 19:59:48 -04:00
Michael DeHaan
1b8ebfb224 Changelog updates 2013-06-30 19:55:00 -04:00
Michael DeHaan
195aa65969 Changelog update. 2013-06-30 19:51:31 -04:00
Michael DeHaan
6d9949698b Merge pull request #3292 from sfromm/git-submodule
Add submodule support to git module
2013-06-30 16:46:19 -07:00
Michael DeHaan
f3dc5707a8 Merge pull request #3282 from jlaska/devel
Reference ansible_lsb.major_release, not ansible_lsb.major_version
2013-06-30 16:43:30 -07:00
Michael DeHaan
6ba72854ee Merge pull request #3296 from ninetythirty/devel
Added flexible filename handling for main files
2013-06-30 16:42:57 -07:00
Michael DeHaan
fafb3c10a5 Merge pull request #3293 from jarv/devel
Adds termination support to the ec2 module
2013-06-30 16:40:51 -07:00
Michael DeHaan
506178542d Merge pull request #3303 from markmandel/feature/sudo_pass
Don't turn on sudo for all tasks when setting the sudo_user or ask_sudo_pass
2013-06-30 16:35:20 -07:00
Michael DeHaan
c2988dfdb0 Merge branch 'option-updates' of git://github.com/jlund/ansible into devel
Conflicts:
	bin/ansible-pull
2013-06-30 19:31:37 -04:00
Michael DeHaan
c9b6f0d0f2 Merge branch 'files_force' of git://github.com/rhaido/ansible into devel 2013-06-30 19:24:37 -04:00
Michael DeHaan
be5386f945 Merge remote branch 'origin' into devel 2013-06-30 19:24:24 -04:00
Michael DeHaan
8b592c9d4b Add some whitespace to script 2013-06-30 19:21:28 -04:00
Michael DeHaan
8f5c9aec47 Merge branch 'env-setup-shell-tweaks' of git://github.com/madduck/ansible into bash_hacking
Conflicts:
	hacking/env-setup
2013-06-30 19:20:27 -04:00
Michael DeHaan
2bbad5dae3 Merge pull request #3275 from madduck/implicit-negations
Enable negated patterns
2013-06-30 16:12:37 -07:00