trbs
1f673450cd
Fix for #3062 additional groups should only be added once.
...
Also consolidated duplicate groups code into one get_groups_set() method.
Removed unused call to user_group_membership.
Removed sorting operations on set functions cause sets are inherently unordered.
Minor style improvements to match the rest of the code.
The new function will make the order of group names passed to the system command less determistic.
Which was already the case for modify_user_usermod() but not for other methods.
It will also strip out duplicate group names automatically which was not always the case previously.
2013-05-30 19:18:18 -04:00
Lorin Hochstein
ec2fc7c983
authorized_key: Set manage_dir default value
...
This commit fixes a bug where the authorized_key module causes
the ~user/.ssh directory to be owned by root instead of the user,
when the manage_dir argument is not specified.
If the manage_dir argument was not specified, the module behaved as if
manage_dir was set to false, even though it's supposed to default to
true.
This module assumed that an optional argument, with no default
specified, will not be present in the module.params dictionary.
What actually seems to happen is that the argument does appear in
the module.params dictionary with a value of None.
The upside is that this line was evaluating to None instead of
true:
manage_dir = params.get("manage_dir", True)
I fixed the problem in this particular module by explicitly specifying
the default value for the manage_dir arugment. But if this bug
occurred because of a change in behavior in AnsibleModule, then other
modules may be broken as well.
2013-05-30 16:16:14 -04:00
Michael DeHaan
94c35df69c
Merge pull request #3064 from sfromm/issue2990
...
Verify /proc/modules is readable (issue #2990 )
2013-05-30 11:12:30 -07:00
Stephen Fromm
c23ce83375
Verify /proc/modules is readable (issue #2990 )
2013-05-30 10:25:48 -07:00
Stephen Fromm
44025024e9
Use get_bin_path to find mkfs command (issue #2983 )
2013-05-30 10:25:35 -07:00
Michael DeHaan
809c38f18f
Merge pull request #3049 from stoned/cmd-expanduser-once
...
No need to expanduser() command's chdir argument twice
2013-05-30 05:48:47 -07:00
Chris Gardner
972545407c
Fix typo. Solaris 9 should now correctly ignore 'brand' and use 'implementation'.
2013-05-30 08:51:03 +01:00
Chris Gardner
3cf243ec3e
TODO: Separate IPv4 and IPv6
2013-05-30 08:39:11 +01:00
Jiří Kubíček
626cbc4e8b
Add some FreeBSD facts
...
added:
* ansible_distribution
* ansible_distribution_release
* ansible_distribution_version
* ansible_os_family
* ansible_pkg_mgr
* ansible_ssh_host_key_ecdsa_public
Also adds ECDSA public key for all plaforms.
2013-05-30 01:34:33 +02:00
Chris Gardner
d5bb7188f0
Add Solaris network facts. IPv6 details overwrite IPv4 per interface, needs further work.
2013-05-30 00:06:57 +01:00
Michael DeHaan
344257481d
Fix version added field in modules.
2013-05-29 18:56:48 -04:00
Michael DeHaan
c651a8cf2e
Some formatting fixes so docs will build, etc.
2013-05-29 18:43:23 -04:00
Michael DeHaan
e811f77716
Fix docs build causing parse error message.
2013-05-29 18:37:31 -04:00
Michael DeHaan
81d26340d0
use EXAMPLES vs examples (easier to format)
2013-05-29 18:35:47 -04:00
Michael DeHaan
edc1c4cb2f
use EXAMPLES vs inline examples (easier to format)
2013-05-29 18:35:47 -04:00
Michael DeHaan
bba849b11e
Merge pull request #3046 from dstoflet/devel
...
Adding monit module to start/stop/monitor/unmonitor process via monit
2013-05-29 15:32:59 -07:00
Michael DeHaan
d970a3f8a6
Merge pull request #3032 from thaumos/devel
...
Pagerduty and Pingdom modules for core
2013-05-29 15:30:51 -07:00
Michael DeHaan
899cf49f54
Merge branch 'escape' of git://github.com/ngrilly/ansible into repr
2013-05-29 18:29:16 -04:00
Chris Gardner
f05540cb48
Add clock speed to processor description for SPARC CPU.
2013-05-29 21:00:21 +01:00
Chris Gardner
35ee8a16de
Use 'implementation' if 'brand' not available (Solaris 9). Add CPU socket/core counting.
2013-05-29 18:54:43 +01:00
Stoned Elipot
85529d4022
No need to expanduser() command's chdir argument twice
2013-05-29 17:05:11 +02:00
Michael DeHaan
2a479cca52
Fixup fetch doc formatting.
2013-05-29 10:45:31 -04:00
Michael DeHaan
111f5239b4
Minor style tweak.
2013-05-29 10:14:47 -04:00
Timothy Appnel
e0307445f8
Modified assemble module so the dest file is streamed together rather than built-in memory before writing.
2013-05-29 10:14:47 -04:00
Michael DeHaan
da348cf079
Merge branch 'facter-fix' of git://github.com/flyapen/ansible into devel
2013-05-29 10:00:20 -04:00
Michael DeHaan
738e03f54a
Merge pull request #3038 from jsmartin/riak_bugfixes
...
Riak bugfixes
2013-05-29 06:38:31 -07:00
Guillaume Lasmayous
fe484e5fd7
Implement NetBSD-specific subclass of Hardware in the setup module.
...
Defines memory and CPU facts:
- memfree_mb
- memtotal_mb
- swapfree_mb
- swaptotal_mb
- processor (a list)
- processor_cores
- processor_count
- devices
As a matter of fact, on NetBSD, it is possible to get memory, swap and
processor facts exactly as on Linux. Tested on NetBSD-5, NetBSD-6 and
NetBSD-6.1 (without Linux emulation).
2013-05-29 09:37:46 -04:00
Michael DeHaan
6864d33dc5
Merge pull request #2867 from cstorey/rabbitmq_user-node-parameter
...
Allow specification of erlang node name for rabbitmq_user/vhost/parameter actions.
2013-05-29 06:35:09 -07:00
Darryl Stoflet
5c72f379cb
Adding monit modules to start/stop/monitor/unmonitor process via monit
2013-05-28 23:22:34 -07:00
Chris Gardner
7d61180034
Use kstat for Solaris CPU info
2013-05-28 22:44:06 +01:00
Chris Gardner
50c3cf302c
Use kstat for Solaris CPU info
2013-05-28 22:36:49 +01:00
James Martin
8fa7768e91
Now can specify amount of time to wait_for_handoffs or ring ready instead of booleans.
2013-05-27 17:24:10 -04:00
James Martin
9cfcede201
Timeouts implemented for riak stats operation. Removed failback mode
...
for fetching riak stats.
2013-05-27 17:12:13 -04:00
Dylan Silva
70c066d7b5
Pagerduty and Pingdom modules for core
2013-05-27 11:55:29 -07:00
Lorin Hochstein
4a215203ed
Documentation for keystone_user
...
Updated the module with proper documentation.
2013-05-27 07:35:05 -04:00
Kristof Keppens
f607ba09a4
change fix to lookup path with get_bin_path
2013-05-27 07:38:17 +02:00
Rik Theys
c42e999114
Fix tabs
2013-05-26 23:06:23 +02:00
Ceri Storey
7b6168aea6
Update rabbitmq_user/vhost/parameter to pass the node to rabbitmqctl using -n flag to rabbitmqctl rather than setting the environment variable.
2013-05-26 14:51:50 +01:00
Rik Theys
588784ca71
Support state parameter in list_vms command
...
Support the state parameter in the list_vms command to filter the
VM's to list based on their state.
2013-05-25 22:20:25 +02:00
Michael DeHaan
4105813ebe
Lots of formatting fixes
2013-05-24 23:46:23 -04:00
Michael DeHaan
333577c944
Fix tabs and spaces in OpenStack modules.
2013-05-24 23:34:48 -04:00
Michael DeHaan
961b9c1caa
Merge pull request #2986 from wbowling/devel
...
Fixes apt_repository always reporting file uri repos as changed
2013-05-24 20:07:03 -07:00
Michael DeHaan
5836783181
Merge pull request #2976 from stoned/pip-virtualenv_command-pathname
...
Allow virtualenv_command argument of the pip module to be a pathname
2013-05-24 20:01:12 -07:00
Michael DeHaan
b0f62209c6
Merge pull request #2992 from SirScott/service_pattern
...
Fixes #2991 : Service module pattern argument ignored.
2013-05-24 19:58:42 -07:00
Michael DeHaan
e3f5a26185
Merge pull request #2945 from jsmartin/new_fetch
...
Fetch destination path can now be overriden.
2013-05-24 19:57:19 -07:00
Michael DeHaan
64779e4a0b
Merge pull request #2975 from stoned/doc-pip-fix
...
Fix pip module documentation (YAML quoting)
2013-05-24 19:55:14 -07:00
Michael DeHaan
65aca6cef6
Merge pull request #2995 from SirScott/pip-sudo-user
...
pip module -- sudo_user permission problem fix
2013-05-24 19:51:38 -07:00
Michael DeHaan
08024e3d82
Merge pull request #3001 from SirScott/user-always-changing
...
Fixes #2924 : User creation always reports 'changed'
2013-05-24 19:50:48 -07:00
Michael DeHaan
48334d05d7
Merge pull request #2989 from lorin/keystone_user
...
OpenStack Identity (keystone) user module
2013-05-24 19:39:52 -07:00
Michael DeHaan
a018665188
Merge pull request #2985 from bennojoy/devel
...
OpenStack Modules
2013-05-24 19:38:19 -07:00