Commit Graph

298 Commits (a367a9ac014b5f00fe93916c0bb478a8867e7ada)

Author SHA1 Message Date
Adam Števko 081e6ec032 Add support for managing OpenZFS pools (#2642) 2016-12-08 11:34:39 -05:00
Dan Keder 2bfbfbb3ff seport: fix a bug when SELinux port definition was already there (#2009) (#2694) 2016-12-08 11:34:39 -05:00
ovcharenko bdf1a087cb Bug report: ufw: interface option causes an error (1.9.4) (#1491) (#2668) 2016-12-08 11:34:38 -05:00
Linus Unnebäck 705f54ac18 iptables: remove duplicated documentation (#2673)
Fixes #1527
2016-12-08 11:34:38 -05:00
Adrian Likins 66716d58a2 Use %s string formatting in system/timezone.py (#2632)
This module was using python 2.6 string .format().
To enable the module to run on python2.4, replace
the .format formatting with '%s' based string formatting.

There was also a use of a 'filename' variable in the
NosystemdTimezone.get() method that was never set.

An import of 'os' was also added for clarity.
2016-12-08 11:34:35 -05:00
Ruslan Kiianchuk 3537ce57f1 Add support for reiserfs (#2551)
* Add support for reiserfs

Create commands mapping for Reiserfs tools.
2016-12-08 11:34:34 -05:00
Aaron Brady 46f9706b9d Add `active` and `inactive` states to the lvol module (#1974)
* Add `active` and `inactive` states to the lvol module

* Honor the previous state of the changed variable

* Move active/inactive states to active boolean parameter

* Bump version_added to make Travis happy

* Avoid bailing early is size isn't specified

* Add invocation examples

* Move "no size" up for code clarity
2016-12-08 11:34:34 -05:00
Sander Dijkhuis 140157d86a Fix reference in known_hosts doc (#2563)
The format is described in sshd(1), not ssh(1).
2016-12-08 11:34:33 -05:00
Sudheer Satyanarayana fa18bbbdb0 which not who (#2557)
minor text fix
2016-12-08 11:34:31 -05:00
Nate Prewitt 842394b1ab removing | from description so docs render properly in RTD (#2533) 2016-12-08 11:34:31 -05:00
Rene Moser ec95c5d9b3 alternatives: add missing version_added and default doc
Also see #1175
2016-12-08 11:34:27 -05:00
Zack Lalanne 0731bfa996 Fixed #632 added alternatives priority (#1175) 2016-12-08 11:34:27 -05:00
René Moser 4bfffe813b fix typo in get_exception(), extends fix #2502 (#2507)
introduced with 9e277aabb033b3ec823b4a2db7c0f7e315eaaf0b
2016-12-08 11:34:26 -05:00
David Fischer 0c8f95f59a Fix 'function' has no attribute 'errno' (#2502) 2016-12-08 11:34:26 -05:00
Shota a369096f88 Fix some typos (#2490) 2016-12-08 11:34:25 -05:00
Andrey Arapov ab791a79f5 system: crypttab: fix typo (#2476) 2016-12-08 11:34:25 -05:00
Shinichi TAMURA 73b2f89539 Added 'answer' as an alias of 'value' on debconf module (#2464) 2016-12-08 11:34:24 -05:00
Shinichi TAMURA 3cb598f9f8 Added timezone module (#2414) 2016-12-08 11:34:24 -05:00
Brian Coca 28bba4fdfb added 'seen' type to debconf 2016-12-08 11:34:24 -05:00
Dag Wieers f420fa0eaa 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-12-08 11:34:21 -05:00
Hrishikesh Barua 4ee8468710 Fix for #2366 removed print statement (#2375) 2016-12-08 11:34:20 -05:00
Toshio Kuratomi 8ce627d9a2 Only import get_exception once in locale_gen.py 2016-12-08 11:34:20 -05:00
Chris Weber 891245c6f6 Fixed modules/system py files for 2.4 to 3.5 exceptions (#2367) 2016-12-08 11:34:20 -05:00
Elena Washington 6efea4a064 iptables: option to configure Source NAT (#2292)
* Clean up trailing whitespace

* Add `--to-source` option to allow Source NAT (fix for #2291)
2016-12-08 11:34:18 -05:00
Brian Coca 3f22667151 added note about behaviour change in 2.2 2016-12-08 11:34:16 -05:00
Leo Antunes c0570d275b 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-12-08 11:34:16 -05:00
Brian Coca f0ae2393e6 add missing author info 2016-12-08 11:34:15 -05:00
Michael Scherer d7ac2a8499 Use a python3 compatible notation for octal (#2238) 2016-12-08 11:34:15 -05:00
Daniel Vigueras 81cb2eac89 Add insert support to iptables. (#1180)
Add insert support to iptables.
2016-12-08 11:34:14 -05:00
Kevin Hildebrand 755535ed7f 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-12-08 11:34:14 -05:00
Pavel Samokha 50fe70f40a iptables module - icmp-type better doc style 2016-12-08 11:34:14 -05:00
Pavel Samokha 945862b876 fix icmp-type 2016-12-08 11:34:14 -05:00
Pavel Samokha 90aad93949 iptables module - add icmp_type 2016-12-08 11:34:14 -05:00
Dag Wieers a3667767e6 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-12-08 11:34:14 -05:00
Yannig daefbdad5c 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-12-08 11:34:13 -05:00
Michael Scherer ea6a2bfd95 Use type='path' rather than str, so path is expanded correctly 2016-12-08 11:34:13 -05:00
Brian Coca b5033fb597 updated version added for pvs 2016-12-08 11:34:10 -05:00
p53 517feda4ac Add pvs parameter to documentation
Add pvs parameter to documentation
2016-12-08 11:34:10 -05:00
Pavol Ipoth a273efbcd2 Removing, unwanted pull 2016-12-08 11:34:10 -05:00
Pavol Ipoth 168ca49103 Adding new ansible module lvol_cache 2016-12-08 11:34:10 -05:00
Pavol Ipoth aa9152d169 Fixes #2008 Lvol module is not indempodent for cache lv's 2016-12-08 11:34:10 -05:00
Pavol Ipoth c91b94402b Added pvs parameter to lvol module 2016-12-08 11:34:10 -05:00
Toshio Kuratomi 69bccf57d6 Recategorize git_config and shift version to 2.1 2016-12-08 11:34:10 -05:00
Brian Coca 12ca251c86 updated version added 2016-12-08 11:34:10 -05:00
Matthew a24444eb9c 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-12-08 11:34:10 -05:00
René Moser e47aee031b docs: fix make docs (#2107) 2016-12-08 11:34:09 -05:00
Chris Lamb c0787b12ce 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-12-08 11:34:08 -05:00
codehopper-uk e2e0f51739 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-12-08 11:34:06 -05:00
Michael Scherer 5d2063aa38 Remove the +x from crypttab and cronvar (#2039)
While this change nothing, it is better to enforce consistency
2016-12-08 11:34:06 -05:00
Jasper Lievisse Adriaanse 0fb01e45fb Sprinkle some LANG/LC_* where command output is parsed (#2019) 2016-12-08 11:34:05 -05:00