Commit graph

11448 commits

Author SHA1 Message Date
Jim Richardson
5edd0274de clarification of error and success messages 2016-12-08 11:32:29 -05:00
Jim Richardson
34f2ebc0ab remove extraneous info from preamble 2016-12-08 11:32:29 -05:00
Jim Richardson
becbf95d5d slight tweak to preamble to bring into common with other ansible modules 2016-12-08 11:32:29 -05:00
Jim Richardson
d7fcefac32 initial stab at pushover notification module 2016-12-08 11:32:29 -05:00
Brian Coca
8a785700c3 added version added to new color option 2016-12-08 11:32:29 -05:00
Phillip Holmes
66aa605367 added color bar option to Slack module
This update will allow people to add a color bar at the front of a
Slack notification using the default 3 colors by name Slack specify
(good, warning, danger).

If no color is specified, or the default is used (normal) then no bar
will be added.

Description and example also added in this update.

Color bars are added by using the attachments json object inside the
payload - this is a very simplistic implementation as using custom
colors or adding titles or other formatting are not included in this
update and if needed I’m sure somebody else can spend the time to add
them later…

Tested with ansible 1.7
2016-12-08 11:32:29 -05:00
Dustin C. Hatch
3e5a7bd475 system/lvol: Suppress prompts from lvcreate
Occasionally, `lvcreate` will prompt on stdin for confirmation. In
particular, this may happen when the volume is being created close to
the location on disk where another volume existed previously. When this
happens, Ansible will hang indefinitely with no indication of the
problem. To work prevent this problem, the `--yes` command-line argument
can be passed to `lvcreate`, which will instruct it not to prompt.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
2016-12-08 11:32:29 -05:00
HPLogsdon
8efd7d217e Fix typo in hipchat notification failure message.
Wish it could be more substantial, but alas, it's just a typo in a string.
2016-12-08 11:32:28 -05:00
Ben Copeland
770bf6b35f Added example block for the "SMTP username and password" 2016-12-08 11:32:28 -05:00
Dariusz Owczarek
3d93d22e54 new vertica modules 2016-12-08 11:32:28 -05:00
Marc Abramowitz
128cf5fd74 Add validate_certs param to bigip_* modules
Ignoring SSL cert verification may be necessary when testing with a
server that has a self-signed certificate.

See
https://github.com/ansible/ansible-modules-extras/pull/288#issuecomment-85196736
2016-12-08 11:32:28 -05:00
Brian Coca
bad5666c9e added missing __init__.py 2016-12-08 11:32:28 -05:00
Toshio Kuratomi
4ada937207 Make our regex match the homebrew tap upstream regex.
Fixes #312
Fixes #297
2016-12-08 11:32:28 -05:00
Brian Coca
1537c297b3 fixed doc issue (missing description and corrected version added) 2016-12-08 11:32:28 -05:00
Toshio Kuratomi
03be4fc2cb Don't know why but the 1.8.x branch didn't include the commit for crypttab.
Update documentation to show it is new in 1.9 as a result of that
oversight.
2016-12-08 11:32:28 -05:00
Dmitry Bashkatov
00c6f0b888 gluster_volume: remove redundant code 2016-12-08 11:32:28 -05:00
Dmitry Bashkatov
e0b6586c41 gluster_volume: use force option during add-brick 2016-12-08 11:32:28 -05:00
Dmitry Bashkatov
561df9ce94 gluster_volume: fixes, new "force" option 2016-12-08 11:32:28 -05:00
Ben Copeland
85f159eda3 Catch the error for non-ssl SMTP 2016-12-08 11:32:28 -05:00
Ben Copeland
cf941fc23a adding username/password support along with ssl/starttls 2016-12-08 11:32:28 -05:00
Larry Gilbert
cdc90f723f pkgin: support check mode, make other improvements
* Add support for check mode
* Use "pkgin search" to guarantee 0 or 1 result
* Edit documentation for style, new feature, etc.
* General refactoring
* Lay some groundwork for future support of "state=latest"
2016-12-08 11:32:28 -05:00
Brian Coca
a5d1d48e80 added installation info .. that you don't need to 2016-12-08 11:32:28 -05:00
Chad Norgan
2091b040ff Ignore lines that do not have the key in them
Some switches return multi-line output, which breaks the split function,
the change seeks to only preform the split on a line that has the key.
2016-12-08 11:32:27 -05:00
Richard Gray
e6bf26967c Set default for locale_gen state parameter
Fix the state parameter for the locale_gen module to be non-mandatory
with a default value of 'present', as indicated by the module
documentation.
2016-12-08 11:32:27 -05:00
Matthew Vernon
1e21e34e0f Changes from Brian Coca's review of this module
These are all the code changes from Brian's review:
* change #! line
* rename "host" to "name" [keep as alias]
* make documentation clearer
* imports 1 per line
* use get_bin_path to find ssh-keygen
* key not actually required when removing host
2016-12-08 11:32:27 -05:00
Matthew Vernon
e76ad916ef known_hosts: manage ssh known_hosts files with ansible.
The known_hosts module lets you add or remove a host from the
known_hosts file. This is useful if you're going to want to use the
git module over ssh, for example. If you have a very large number of
host keys to manage, you will find the template module more useful.

This was pull request 7840 from the old ansible repo, which was
accepted-in-principle but not yet merged. The mailing list thread
reading it is:

https://groups.google.com/forum/#!topic/ansible-devel/_e7H_VT6UJE/discussion
2016-12-08 11:32:27 -05:00
Misho Krastev
fcf8223dfe fix lvol module to properly query the size of logical volumes 2016-12-08 11:32:27 -05:00
Toshio Kuratomi
e00462712d The old slack webhook API still works. It's just deprecated by slack.
Analyze the given token and use the old webhook format if the token
is old style and use the new format if the token is new style.  Make
domain optional with new-style tokens.

Fixes #157
2016-12-08 11:32:27 -05:00
Simon JAILLET
c7b3dea395 composer: Fix changed status
Fix `changed` status that always returns False with composer.

This [previous PR](https://github.com/ansible/ansible-modules-extras/pull/61) had fixed the issue but because of a [Composer recent change](cb336a5416) stderr is now used for reporting information meant for humans while stdout is more for the output of the command.

This PR would definilty solve this issue.
2016-12-08 11:32:27 -05:00
Benjamin Kluck
56ecf602dc svc: Add kill command (svc -k) 2016-12-08 11:32:27 -05:00
Toshio Kuratomi
88fea228dc Fix postgresql_ext documentation 2016-12-08 11:32:27 -05:00
Toshio Kuratomi
d0ccafb6f5 Move other postgres module into the postgresql hierarchy 2016-12-08 11:32:27 -05:00
Daniel Schep
fe0e860d82 Import @dschep's module for installing postgres extensions.
Reviewed by @bcoca as a PR against the core repo here:
https://github.com/ansible/ansible-modules-core/pull/21
2016-12-08 11:32:27 -05:00
André Luiz dos Santos
f569b512c9 Variable name typo 2016-12-08 11:32:27 -05:00
Brian Coca
a7e20b4110 updated lxc-containter docs to reflect new name 2016-12-08 11:32:27 -05:00
Maciej Delmanowski
89179ed267 Rename 'lxc-container' module to 'lxc_container'
This is done to keep the convention of naming modules with underscores
instead of hypens.
2016-12-08 11:32:27 -05:00
Alexander Gubin
80e2de0e5d lvol: Cast size(LogicalVolumeSize) to lower to fix the difference between lvs and lvcreate 2016-12-08 11:32:27 -05:00
Konstantin
4602ca7bf4 pkgutil.py syntax fix 2016-12-08 11:32:27 -05:00
Matt Hite
d4b996203a Another potential fix for issue 109; now catches WebFault 2016-12-08 11:32:26 -05:00
Brian Coca
ed8842be47 removed unused import json which breaks 2.4/simplejson compat 2016-12-08 11:32:26 -05:00
Dagobert Michelsen
1ff1537329 Adjust setting to better make logic clearer 2016-12-08 11:32:26 -05:00
Dagobert Michelsen
474df33ff3 Correctly report "changed: false" when trying to install a package not in the catalog. This fixes #230 2016-12-08 11:32:26 -05:00
Jeppe Toustrup
0ea2cf77dd NPM: Expand the path before accessing it 2016-12-08 11:32:26 -05:00
Sterfield
02587fba94 Missing import re
I don't even know how it magically worked, but the fact is the code was
correct, and ran OK without the import re.
2016-12-08 11:32:26 -05:00
Sterfield
a674cb06e7 Now allow every type of locales + archlinux fix
The previous version of this code was supporting only locales using the
format "<language>_<territory>.<charset>". But all the locales that
doesn't have this format were not installable (such as "fr_FR" or
"fr_FR@euro").
Also, if an invalid locales was provided, the module kept sending a
"changed" status.

Now :
 * if the user provides an invalid locales, the module failed. Locales
   are verified using /etc/locale.gen or /usr/share/i18n/SUPPORTED if
   Ubuntu
 * Every types of valid locales are now supported.
 * The locale module was not working on Archlinux, as there's no space
   between the "#" and the locale. This is now supported. Credits goes
   to danderson189, this is his code.

This module was tested on debian jessie, ubuntu 14 LTS and last
Archlinux.
2016-12-08 11:32:26 -05:00
Brian Coca
1b10058475 changed to make name primary over user, as examples and keep consistent 2016-12-08 11:32:26 -05:00
Kevin Carter
798f89c2e5 Updated volume create methods for a more consistent process
The volume create methods were making an assumption on the unit
sizes being presented by the `vgdisplay` and the `lvdisplay`
commands. To correct the assumption the commands will now enforce
a unit size of "g" which will alway convert sives to gigabytes.
This was an issue brought up by @hughsaunders.
2016-12-08 11:32:26 -05:00
Kevin Carter
e5b0c1ced5 Added new module to support LXC containers
The new module will allow users to control LXC containers from ansible.
The module was built for use in LXC >= 1.0 or greater and implements most
of what can be done using the various lxc clients with regards to running
containers. This first module is geared only at managing lxc containers.

The module provides:
  build containers
  destroy containers
  archive containers
  info from a single container
  start / stop / restart containers
  run commands within containers
  add/modify lxc config for a container
  supports backends including LVM
2016-12-08 11:32:26 -05:00
Brian Coca
5601a88d71 fixed missing , 2016-12-08 11:32:26 -05:00
SkaveRat
6ca4925618 Fix missing restart method
Script was missing the restart command
2016-12-08 11:32:26 -05:00