Commit graph

1790 commits

Author SHA1 Message Date
Michael DeHaan
a004b3a865 Standardize docs 2013-06-01 11:50:23 -04:00
Michael DeHaan
6259c9b34f Standardize docs 2013-06-01 11:49:29 -04:00
Michael DeHaan
aeffb17d6b Standardize example 2013-06-01 11:49:02 -04:00
Michael DeHaan
7efe74d151 Warn when there is a space in the mount module opts parameter. 2013-06-01 11:33:17 -04:00
trbs
a31ba582b4 Add support for Open and NetBSD platforms for user and group modules, including a new login_class parameter for FreeBSD, OpenBSD and NetBSD. 2013-05-31 20:53:37 -04:00
Michael DeHaan
373e4ee7d4 Merge pull request #3083 from mvo5/feature/facts-add-statvfs
add "size_{total,free}" to the "mount" facts
2013-05-31 14:22:58 -07:00
Michael DeHaan
9e8db11799 Merge pull request #3080 from bigpandaio/devel
Issue #3079: Initializing key_exists in case the S3 bucket does not exis...
2013-05-31 14:21:02 -07:00
Michael DeHaan
3765f4e400 Merge pull request #3076 from mmoya/userspace-arch-facts
Provide userspace_{architecture,bits} facts
2013-05-31 14:20:38 -07:00
Michael DeHaan
82f319d717 Merge branch 'solaris-network-facts' of git://github.com/chrisgardner/ansible into devel 2013-05-31 17:16:13 -04:00
Michael DeHaan
10c905e3e2 Remove debug statement in previous patch. 2013-05-31 17:13:54 -04:00
Michael DeHaan
dc1242d7eb Merge branch 'devel' of git://github.com/trbs/ansible into groups 2013-05-31 17:13:41 -04:00
Stephen Fromm
44cdd2dc0f cleanup to dmi fact discovery
When invoking dmidecode, first use module.get_bin_path() and secondly
use module.run_command.
Remove sub function execute() from get_dmi_facts().
Simplify get_dmi_facts() by only using two mechanisms to determine dmi
facts:  first try /sys/devices/virtual/dmi and if not available, use
dmidecode executable.
2013-05-31 17:10:34 -04:00
Benjamin Schwarze
3f95f15bb4 remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong) 2013-05-31 22:27:56 +02:00
Michael DeHaan
6de520f996 Merge pull request #3069 from benjixx/consistently-get-bin-path-for-git
consistently use module.get_bin_path('git', True) to get git path before...
2013-05-31 13:21:00 -07:00
Michael DeHaan
f8f4eb8e9b Merge pull request #3068 from lorin/authkey-default
authorized_key: Set manage_dir default value
2013-05-31 13:16:44 -07:00
Michael DeHaan
291cd0b0c4 Merge pull request #3044 from chrisgardner/solaris_facts
Solaris facts
2013-05-31 13:15:58 -07:00
Michael DeHaan
078cb709f4 Merge pull request #3020 from rtheys/virt-state
Support state parameter in list_vms command
2013-05-31 13:03:48 -07:00
Benjamin Schwarze
9d296924de use module.get_bin_path('git', True) once and pass git_path to functions 2013-05-31 21:42:15 +02:00
Michael DeHaan
e6620cdb9a Refine error message. 2013-05-31 15:23:24 -04:00
Michael DeHaan
da1738723a Merge branch 'rc.d-systemd' of git://github.com/glensc/ansible into sysd 2013-05-31 15:20:48 -04:00
Michael Vogt
fcfc9f5194 use statvfs.f_bavail to match the output of "df -B1" 2013-05-31 21:20:40 +02:00
Michael Vogt
fc3631b684 add "size_{total,free}" to the "mount" facts 2013-05-31 21:01:45 +02:00
Shahar Kedar
f1638c5eea Issue #3079: Initializing key_exists in case the S3 bucket does not exist 2013-05-31 16:37:37 +03:00
bennojoy
636f1ed794 bug fix nova_compute 2013-05-31 17:39:00 +05:30
Maykel Moya
e9a4741e36 Provide userspace_{architecture,bits} facts
When running inside a chroot userspace architecture might not
match that of the actual host.

This patch provides userspace_bits as reported by python's
platform.architecture(). Also provides userspace_architecture fact
if host is an x86 machine.
2013-05-31 12:24:43 +02:00
Chris Gardner
2d423ece52 Add Solaris network facts. IPv4 and IPv6 both working. 2013-05-31 00:57:23 +01:00
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