Commit Graph

2130 Commits (279aab42c532d98e2c8ebd83100510ecdaf541dc)
 

Author SHA1 Message Date
Michael DeHaan dc1242d7eb Merge branch 'devel' of git://github.com/trbs/ansible into groups 11 years ago
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.
11 years ago
Benjamin Schwarze 3f95f15bb4 remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong) 11 years ago
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...
11 years ago
Michael DeHaan f8f4eb8e9b Merge pull request #3068 from lorin/authkey-default
authorized_key: Set manage_dir default value
11 years ago
Michael DeHaan 291cd0b0c4 Merge pull request #3044 from chrisgardner/solaris_facts
Solaris facts
11 years ago
Michael DeHaan 078cb709f4 Merge pull request #3020 from rtheys/virt-state
Support state parameter in list_vms command
11 years ago
Benjamin Schwarze 9d296924de use module.get_bin_path('git', True) once and pass git_path to functions 11 years ago
Michael DeHaan e6620cdb9a Refine error message. 11 years ago
Michael DeHaan da1738723a Merge branch 'rc.d-systemd' of git://github.com/glensc/ansible into sysd 11 years ago
Michael Vogt fcfc9f5194 use statvfs.f_bavail to match the output of "df -B1" 11 years ago
Michael Vogt fc3631b684 add "size_{total,free}" to the "mount" facts 11 years ago
Shahar Kedar f1638c5eea Issue #3079: Initializing key_exists in case the S3 bucket does not exist 11 years ago
bennojoy 636f1ed794 bug fix nova_compute 11 years ago
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.
11 years ago
Chris Gardner 2d423ece52 Add Solaris network facts. IPv4 and IPv6 both working. 11 years ago
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.
11 years ago
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.
11 years ago
Michael DeHaan 94c35df69c Merge pull request #3064 from sfromm/issue2990
Verify /proc/modules is readable (issue #2990)
11 years ago
Stephen Fromm c23ce83375 Verify /proc/modules is readable (issue #2990) 11 years ago
Stephen Fromm 44025024e9 Use get_bin_path to find mkfs command (issue #2983) 11 years ago
Michael DeHaan 809c38f18f Merge pull request #3049 from stoned/cmd-expanduser-once
No need to expanduser() command's chdir argument twice
11 years ago
Chris Gardner 972545407c Fix typo. Solaris 9 should now correctly ignore 'brand' and use 'implementation'. 11 years ago
Chris Gardner 3cf243ec3e TODO: Separate IPv4 and IPv6 11 years ago
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.
11 years ago
Chris Gardner d5bb7188f0 Add Solaris network facts. IPv6 details overwrite IPv4 per interface, needs further work. 11 years ago
Michael DeHaan 344257481d Fix version added field in modules. 11 years ago
Michael DeHaan c651a8cf2e Some formatting fixes so docs will build, etc. 11 years ago
Michael DeHaan e811f77716 Fix docs build causing parse error message. 11 years ago
Michael DeHaan 81d26340d0 use EXAMPLES vs examples (easier to format) 11 years ago
Michael DeHaan edc1c4cb2f use EXAMPLES vs inline examples (easier to format) 11 years ago
Michael DeHaan bba849b11e Merge pull request #3046 from dstoflet/devel
Adding monit module to start/stop/monitor/unmonitor process via monit
11 years ago
Michael DeHaan d970a3f8a6 Merge pull request #3032 from thaumos/devel
Pagerduty and Pingdom modules for core
11 years ago
Michael DeHaan 899cf49f54 Merge branch 'escape' of git://github.com/ngrilly/ansible into repr 11 years ago
Chris Gardner f05540cb48 Add clock speed to processor description for SPARC CPU. 11 years ago
Chris Gardner 35ee8a16de Use 'implementation' if 'brand' not available (Solaris 9). Add CPU socket/core counting. 11 years ago
Stoned Elipot 85529d4022 No need to expanduser() command's chdir argument twice 11 years ago
Michael DeHaan 2a479cca52 Fixup fetch doc formatting. 11 years ago
Michael DeHaan 111f5239b4 Minor style tweak. 11 years ago
Timothy Appnel e0307445f8 Modified assemble module so the dest file is streamed together rather than built-in memory before writing. 11 years ago
Michael DeHaan da348cf079 Merge branch 'facter-fix' of git://github.com/flyapen/ansible into devel 11 years ago
Michael DeHaan 738e03f54a Merge pull request #3038 from jsmartin/riak_bugfixes
Riak bugfixes
11 years ago
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).
11 years ago
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.
11 years ago
Darryl Stoflet 5c72f379cb Adding monit modules to start/stop/monitor/unmonitor process via monit 11 years ago
Chris Gardner 7d61180034 Use kstat for Solaris CPU info 11 years ago
Chris Gardner 50c3cf302c Use kstat for Solaris CPU info 11 years ago
James Martin 8fa7768e91 Now can specify amount of time to wait_for_handoffs or ring ready instead of booleans. 11 years ago
James Martin 9cfcede201 Timeouts implemented for riak stats operation. Removed failback mode
for fetching riak stats.
11 years ago
Dylan Silva 70c066d7b5 Pagerduty and Pingdom modules for core 11 years ago