Commit graph

1006 commits

Author SHA1 Message Date
Sander Dijkhuis
669f99d841 Fix reference in known_hosts doc (#2563)
The format is described in sshd(1), not ssh(1).
2016-07-25 21:41:41 +02:00
Sudheer Satyanarayana
2078c4b4da which not who (#2557)
minor text fix
2016-07-13 10:26:13 -04:00
Nate Prewitt
a70cfeed15 removing | from description so docs render properly in RTD (#2533) 2016-07-09 20:30:56 +02:00
Rene Moser
f7b18a331b alternatives: add missing version_added and default doc
Also see #1175
2016-07-09 09:11:24 +02:00
Zack Lalanne
4756c71496 Fixed #632 added alternatives priority (#1175) 2016-07-09 09:08:44 +02:00
René Moser
bf07cf8d3b fix typo in get_exception(), extends fix #2502 (#2507)
introduced with 9e277aabb0
2016-06-30 10:37:21 -04:00
David Fischer
93540b7269 Fix 'function' has no attribute 'errno' (#2502) 2016-06-30 15:42:14 +02:00
Shota
d25c487ac8 Fix some typos (#2490) 2016-06-27 23:03:56 -04:00
Andrey Arapov
00afca99e5 system: crypttab: fix typo (#2476) 2016-06-25 13:54:42 +02:00
Shinichi TAMURA
ba6aa8b013 Added 'answer' as an alias of 'value' on debconf module (#2464) 2016-06-22 08:53:16 -04:00
Shinichi TAMURA
cb94edd17f Added timezone module (#2414) 2016-06-20 17:34:16 -04:00
Brian Coca
a28d7a00b8 added 'seen' type to debconf 2016-06-20 08:59:10 -04:00
Dag Wieers
e49858b09e sefcontext: New module to manage SELinux file context mappings (semanage fcontext) (#2221)
New SELinux module sefcontext to set SELinux file context mappings

This module implements `semanage fcontext` in an idempotent way.
It supports check-mode and diff-mode.
2016-06-08 11:45:38 -04:00
Hrishikesh Barua
a95a1a2e08 Fix for #2366 removed print statement (#2375) 2016-06-04 23:16:53 +02:00
Toshio Kuratomi
d1174cc8b7 Only import get_exception once in locale_gen.py 2016-06-03 06:25:29 -07:00
Chris Weber
9e277aabb0 Fixed modules/system py files for 2.4 to 3.5 exceptions (#2367) 2016-06-03 06:23:55 -07:00
Elena Washington
3ca06bf1c8 iptables: option to configure Source NAT (#2292)
* Clean up trailing whitespace

* Add `--to-source` option to allow Source NAT (fix for #2291)
2016-05-26 09:51:31 -07:00
Brian Coca
ecee427cbc added note about behaviour change in 2.2 2016-05-23 10:35:03 -04:00
Leo Antunes
d54905ecee Allow multiple keys per host + minor improvements (#716)
* known_hosts: clarify key format in documentation

Add a small clarification to the documentation about the format of the
"key" parameter.
Should make #664 less of a issue for newcomers.

* known_hosts: normalize key entry to simplify input

Keys are normalized before comparing input with present keys. This
should make it easier to deal with some corner cases, such as having a
hashed entry for some host and trying to add it as non-hashed.

* known_hosts: allow multiple entries per host

In order to support multiple key types and allow the installed ssh
version to decide which is more secure, the module now only overwrites
an existing entry in known_hosts if the provided key is of the same
type.
Old keys of different types must be explicitly removed. Setting
state to "absent" and providing no key will remove all entries for the
host.
2016-05-23 10:33:52 -04:00
Brian Coca
29be1310e1 add missing author info 2016-05-20 09:19:23 -04:00
Michael Scherer
c8864c3220 Use a python3 compatible notation for octal (#2238) 2016-05-17 10:33:12 -07:00
Daniel Vigueras
735c1b6219 Add insert support to iptables. (#1180)
Add insert support to iptables.
2016-05-16 16:25:52 -04:00
Adrian Likins
240afc0344 Merge pull request #2146 from ke3vin/interfacezone
Fix the interface handling code to allow immediate changes.  Also fixes switching an interface between zones.
2016-05-16 10:42:17 -04:00
Adrian Likins
ae6b3ac71d Merge pull request #2225 from rusaksoft/iptables-add-icmp-type
Iptables add icmp type
2016-05-16 10:38:26 -04:00
Dag Wieers
7618fd8749 Fix check-mode incorrectly returning changed (#2220)
The lvol module has a different logic in check-mode for knowing when a change is induced. And this logic is *only* based on a size check. However during a normal run, it is the lvreduce or lvextend tool that decides when a change is performed (or when the requested and existing sizes differ). So while in check-mode the module reports a change, in real run-mode it does not in fact changes anything an reports ok.

One solution would be to implement the exact size-comparison logic that is implemented in lvextend and lvreduce, but we opted to use the `--test` option to each command to verify if a change is induced or not. In effect both check-mode and run-mode use the exact same logic and conclusion.
2016-05-14 10:40:49 +02:00
Pavel Samokha
a0566037b4 iptables module - icmp-type better doc style 2016-05-13 17:14:44 +03:00
Pavel Samokha
7092118119 fix icmp-type 2016-05-13 16:49:58 +03:00
Pavel Samokha
747f6f6736 iptables module - add icmp_type 2016-05-13 15:52:49 +03:00
Yannig
bbd53572af New lvol option: shrink. (#2135)
If shrink is set to false and size is lower than current lv size, dont try to shrink logical volume.
2016-05-13 11:28:41 +02:00
Michael Scherer
557d37d3f1 Use type='path' rather than str, so path is expanded correctly 2016-05-08 11:33:54 +02:00
Kevin Hildebrand
9f2bc2853d Fix the interface handling code to allow permanent and non-permanent operations.
Also avoid using add_interface because it breaks in cases where the interface is already bound to a different zone.
2016-05-02 11:16:07 -04:00
Brian Coca
fbd00675f0 updated version added for pvs 2016-04-28 17:42:41 -04:00
Matt Davis
238af47a9d Merge pull request #2007 from p53/devel
Added pvs parameter to lvol module
2016-04-28 10:15:54 -07:00
Toshio Kuratomi
71d83b77bc Recategorize git_config and shift version to 2.1 2016-04-28 08:27:21 -07:00
Brian Coca
09a1015bd7 updated version added 2016-04-27 14:36:56 -04:00
Matthew
d91baee7c9 Add git_config module (#1945)
* Add git_config module

This module can be used for reading and writing git configuration at all
three scopes (local, global and system). It supports --diff and --check
out of the box.

This module is based off of the following gist:
https://gist.github.com/mgedmin/b38c74e2d25cb4f47908
I tidied it up and added support for the following:
- Reading values on top of writing them
- Reading and writing values at any scope
The original author is credited in the documentation for the module.

* Respond to review feedback

- Improve documentation by adding choices for parameters, requirements
  for module, and add missing description for scope parameter.
- Fail gracefully when git is not installed (followed example of puppet
  module).
- Remove trailing whitespace.

* Change repo parameter to type 'path'

This ensures that all paths are automatically expanded appropriately.

* Set locale to C before running commands to ensure consistent error messages

This is important to ensure error message parsing occurs correctly.

* Adjust comment
2016-04-27 14:36:11 -04:00
René Moser
344dff4350 docs: fix make docs (#2107) 2016-04-26 09:10:46 -04:00
Chris Lamb
8d7d070201 system/ufw.py: Add security warning re. removing ufw application prof…
It's not particularly obvious that removing an application will remove it
from ufw's own state, potentially leaving ports open on your box if you
upload your configuration.

Whilst this applies to a lot of things in Ansible, firewall rules might
cross some sort of line that justifies such a warning in his instance.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2016-04-23 08:01:19 +02:00
p53
706cbf69ca Add pvs parameter to documentation
Add pvs parameter to documentation
2016-04-19 19:31:23 +02:00
codehopper-uk
aa29a4fd9c Basic ability to set masquerade options from ansible, according to current code design/layout (mostly) (#2017)
* Support for masquerade settings

Ability to enable and disable masquerade settings from ansible via:
- firewalld: mapping=masquerade state=disabled permanent=true zone=dmz

Placeholder added (mapping) to support masquerade and port_forward
choices initially - port_forward not implemented yet.

* Permanent and Immediate zone handling differentiated

* Corrected naming abstraction for masquerading functionality

Removed mapping tag with port_forward choices - not applicable!

* Added version info for new masquerade option

Pull Request #2017 failing due to missing version info
2016-04-16 14:15:00 +02:00
Pavol Ipoth
14057da87c Removing, unwanted pull 2016-04-15 21:22:03 +02:00
Pavol Ipoth
e3ca2c7aeb Adding new ansible module lvol_cache 2016-04-15 21:14:21 +02:00
Pavol Ipoth
2be58bf100 Merge branch 'devel' of https://github.com/ansible/ansible-modules-extras into devel 2016-04-15 21:11:46 +02:00
Michael Scherer
ff74fc0072 Remove the +x from crypttab and cronvar (#2039)
While this change nothing, it is better to enforce consistency
2016-04-15 10:18:05 -04:00
Jasper Lievisse Adriaanse
2b8debbc2b Sprinkle some LANG/LC_* where command output is parsed (#2019) 2016-04-13 10:03:26 -04:00
Michael Scherer
2dbfdaa88b Remove dead code (#1303)
The review on https://github.com/ansible/ansible-modules-extras/pull/1303
show the problem was already fixed, so we just need to remove the
code.
2016-04-12 08:13:24 +02:00
Pavol Ipoth
7be55e188a Fixes #2008 Lvol module is not indempodent for cache lv's 2016-04-11 21:55:40 +02:00
Pavol Ipoth
ac9a48ad1e Added pvs parameter to lvol module 2016-04-11 20:18:14 +02:00
kubilus1
773d402eac Unchecked index causes IndexError. 2016-04-11 07:55:07 +02:00
Monty Taylor
38c8fec277 Merge pull request #1149 from Jmainguy/puppet_stdout
Enable stdout and stderr on sucessful runs, making show_diff useable
2016-04-10 08:43:39 -07:00