Commit graph

119 commits

Author SHA1 Message Date
James Cammarata
ba062de744 Merge branch '7736' of https://github.com/kcghost/ansible into kcghost-7736 2014-08-08 19:30:04 -05:00
Michael DeHaan
76eb5064f4 Merge pull request #7520 from jjneely/a2enmod
apache2_module module fixes
2014-08-08 12:40:13 -04:00
Casey Fitzpatrick
c0543db5f3 apache2_module handles multiple lines of output, fixes #7736 and #7857 2014-06-24 20:37:49 -04:00
Joel Crocker
df0f2b9c52 Updates django_manage so it populates VIRTUAL_ENV
Virtualenv's activate script sets the VIRTUAL_ENV environment variable to the path of the virtualenv. Checking this variable is a reasonably common way to verify that execution is happening in a virtualenv. It would be convenient if this module's virtualenv handling set this environment variable.
2014-06-17 12:01:14 -04:00
Brian Coca
ac14a8d6ad unified calls to fs function vs duplicate functions for file and
directory
2014-05-24 09:28:45 -04:00
Jack Neely
1452a058df apache2_module: Handle dep resolution
The apache2_module module did not properly handle when a2enmod would
handle apache module dependancies.  It would always return a state of
changed.  I've updated the regular expression to properly parse that
output as well as the normal output.  A good example of this is the
mod_proxy_http module.
2014-05-23 12:47:57 -04:00
Jack Neely
14ee2e4505 apache2_module: whitespace cleanup
Remove trailing whitespace.
2014-05-23 12:47:49 -04:00
Michael Warkentin
c826b8573c Update command description
The docs were a little bit out of date with what commands are available to be run. They also didn't explain that you could pass custom commands - I almost went down the path of trying to run our custom management commands with the generic Ansible `command` module.
2014-05-21 14:00:12 -04:00
Christian Berendt
0a35850927 made enabled/disabled checks of apache2_module workable 2014-04-28 19:46:34 +02:00
Joel Schuweiler
c1470db8fd Fix example 2014-04-27 12:16:51 -05:00
James Tanner
941d89cf5f Fix version_added for a few parameters in django_manage 2014-04-07 22:57:49 -04:00
Michael DeHaan
54180817cd Add version_added info + changelog 2014-03-28 17:11:21 -04:00
Christian Berendt
5b8cdf6ce2 use module.get_bin_path() for a2enmod 2014-03-28 17:10:15 -04:00
Christian Berendt
a500f63766 removed duplicated <<INCLUDE_ANSIBLE_MODULE_COMMON>> line 2014-03-28 17:10:15 -04:00
Christian Berendt
62813f72a5 added module to enable/disable Apache2 modules
This module uses a2enmod or a2dismod to enable or disable
Apache2 modules.
2014-03-28 17:10:15 -04:00
Michael DeHaan
6c206b3866 Documentation updates for supervisor module changes. 2014-03-28 13:07:13 -04:00
Michael DeHaan
f24a625750 Merge branch 'supervisorctl-support-group' of git://github.com/inetfuture/ansible into devel 2014-03-28 13:04:21 -04:00
Steve Smith
ba1bffde5d Add a JIRA control module for Ansible. This version uses fetch_url rather than urllib2. 2014-03-16 17:14:04 +01:00
Richard C Isaacson
24327b39b2 Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 23:04:19 -05:00
James Tanner
fc33860e5d Force command action to not be executed by the shell unless specifically enabled 2014-03-10 16:13:30 -05:00
ToBeReplaced
b950ad6b1c Add comment about mod_admin_extra
Fixes issue #6027.
2014-03-04 09:19:44 -05:00
Richard C Isaacson
52dc20b6d1 Clean up stray space at the end of a line after a period. 2014-02-03 11:52:37 -06:00
mxxcon
970260cc36 Updated docs to have choices for crypt_scheme 2014-01-30 01:05:05 -05:00
inetfuture(Aaron Wang)
a95d6ffd2c supervisorctl: add group support and refine documenation. 2014-01-08 15:09:36 +08:00
Roger López
5e77eb70e4 django_manage need not require virtualenv in PATH
The virtualenv parameter to the django_manage command is used to locate
the virtualenv and build it if necessary.  Access to the virtualenv
executable is only needed if the virtualenv directory doesn't exist and
needs to be built.  This patch allows for the situation where a
virtualenv that is not in the PATH was used to create a virtualenv prior
to running the django_manage module.
2013-12-17 14:45:42 -05:00
James Tanner
4f9aadcc07 Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
James Tanner
38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
Steven Davidson
774f27e336 Reports changed status from django_manage migrate 2013-11-22 19:35:19 +00:00
James Cammarata
2bd830369a Checking for a transitional running state in supervisorctl
Fixes #3977
2013-11-19 14:54:20 -06:00
Michael DeHaan
08996d78d6 Add version_added to all modules missing version_added information, the docs formatter will now
raise errors when omitted, updated changelog with new modules.
2013-11-18 18:55:49 -05:00
jctanner
97ce9b022c Merge pull request #4510 from jhoekx/jboss-module
Add jboss module
2013-11-14 08:26:56 -08:00
James Tanner
b69d3abc00 Fix typo in ejabberd_user module docstrings 2013-11-13 10:59:37 -05:00
jctanner
5fb82afb29 Merge pull request #4329 from privateip/devel
ejabberd_user module for managing users in ejabberd
2013-11-13 07:56:15 -08:00
Patrick Michaud
c936bc67bb Allow generic django_management commands
This commit removes the restriction on django management commands.  If a command is unknown to the django installation, there will be a concise error produced.

for example:

  tasks:
    - name: invalid command
      django_manage: virtualenv="/valid/virtualenv" app_path="/valid/app_path" command="nowaydude"

Results in:

failed: [hostname] => {"cmd": "python manage.py nowaydude", "failed": true}
msg: stdout: Unknown command: 'nowaydude'
Type 'manage.py help' for usage.

:stderr: Unknown django command: nowaydude
2013-10-18 17:26:10 -07:00
Jeroen Hoekx
fa53665e00 Add jboss module to manage deployments to JBoss. 2013-10-15 08:53:10 +02:00
Thomas Omans
e83eb54d1f supervisorctl: user expansion on config filepath 2013-10-12 15:57:42 -07:00
Michael DeHaan
beae21dd40 Remove examples of module antipattern of setting the choices array for boolean types. 2013-10-11 08:45:13 -04:00
Javier Candeira
047164adac fix django_manage migrate command 2013-10-10 00:57:01 +11:00
Stoned Elipot
2cee2e5379 Fix compatibility issue with passlib version < 1.6 (as encountered on eg EL6 systems)
- passlib.apache.HtpasswdFile's 'default_scheme' was called 'default'
before passlib version 1.6
- while here also deal with passlib.apache.HtpasswdFile's older
'autoload' paramter vs the newer 'new' one.
2013-10-04 03:18:17 +02:00
Michael DeHaan
c2feda1eb1 htpasswd documentation formatting fix 2013-10-02 08:24:21 -04:00
jctanner
e65794946c Merge pull request #4163 from lorin/htpasswd-doc
htpasswd docs: add notes about depending on python-passlib
2013-10-01 19:19:40 -07:00
Peter Sprygada
96f7fd5c60 initial ejabberd_user module 2013-10-01 16:21:25 -04:00
James Cammarata
80a8ba1b51 Merge pull request #4228 from mragh/devel
Include database param if provided and valid in django_admin commands
2013-09-25 14:58:29 -07:00
James Cammarata
d1781dad8c Doc fix in htpasswd module due to colon on the line 2013-09-25 14:46:16 -05:00
James Cammarata
920bef12a3 Merge branch 'add-scheme-to-htpasswd-params' of https://github.com/PugglePay/ansible into PugglePay-add-scheme-to-htpasswd-params 2013-09-25 14:39:14 -05:00
egghead
99c53981ff supervisorctl module: fixing typo in error handling 2013-09-24 15:36:16 +00:00
Jake Kreider
664aa794b0 Include database param if provided and valid in django_admin commands 2013-09-24 10:05:45 -05:00
egghead
d05f21fc80 supervisorctl module: adding support for custom supervisord installations
Supervisord can be installed at the user level or system level.
Installating as a user is particularly useful for systems without root access.

Adds the ability to provide a custom supervisorctl executable path, supporting custom installations
2013-09-21 18:13:33 +00:00
Lorin Hochstein
a43f5d4892 htpasswd docs: add notes about depending on python-passlib 2013-09-18 21:43:13 -04:00
Jell
070af1179e Add crypt scheme to htpasswd params 2013-09-05 12:05:01 +02:00
danxshap
b8a43a37f0 use home path expansion for virtualenv param in django_manage module 2013-08-11 14:02:13 -07:00
didiercrunch
7f2ae3f375 Update supervisorctl
Fixed the example.
2013-08-06 09:06:28 -04:00
Michael DeHaan
81be8ff7d3 Update htpasswd module for various API incompatibilities 2013-07-20 18:22:58 -04:00
Michael DeHaan
6030c1bcaa tweak indentation for 'make pep8' 2013-07-20 12:48:11 -04:00
Michael DeHaan
80ef9e2628 Document when options were added on this module. 2013-07-20 12:25:13 -04:00
Michael DeHaan
2cd5e23a51 Merge pull request #3442 from neomantra/supervisorctl
supervisorctl: add command-line options as module parameters
2013-07-20 09:23:46 -07:00
Andrew Todd
bd9d3d4fdd Changed shebangs that use /usr/bin/env to use /usr/bin/python and therefore be compatible with the ansible_python_interpreter variable. 2013-07-17 16:37:04 -04:00
Evan Wies
e48fb1e9a9 supervisor_ctl: rename to server_url and improve documentation 2013-07-12 11:53:26 -04:00
Evan Wies
80afcea54e supervisorctl: add command-line options as module parameters
Adds more parameters which may be passed to supervisorctl:  config,
serverurl, username, password

Also refactored the various `module.run_command(build_a_string)` calls
into a single `run_supervisorctl` function.
2013-07-04 12:23:16 -04:00
Michael DeHaan
1919d02e7d Styling: trailing spaces 2013-06-30 18:52:57 -04:00
Lorin Hochstein
1847669754 Add GPL header and copyright 2013-06-24 21:18:05 -04:00
Lorin Hochstein
1626bce3a4 Add htpasswd module
Add a new module for managing entries in an htpasswd file, used
for basic authentication with web servers such as Apache and Nginx
2013-06-24 16:24:55 -04:00
Lorin Hochstein
4f841e6f62 django_manage: Pass --noinput to migrate
The django 'migrate' command should receive the --noinput command,
otherwise it can block waiting for user input.
2013-06-18 23:05:40 -04:00
Jochen Maes
0830376b0b adds 2 django commands (migrate, collectstatic)
Signed-off-by: Jochen Maes <jochen@sejo-it.be>
2013-06-16 23:15:43 -04:00
Michael DeHaan
152db00ed9 Merge remote branch 'origin' into devel
Conflicts:
	library/web_infrastructure/django_manage
2013-06-16 22:15:30 -04:00
Jan-Piet Mens
3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
2013-06-15 20:54:25 +02:00
Lorin Hochstein
bc6416d202 Fix broken link in django_manage doc 2013-06-13 14:01:32 -04:00
Michael DeHaan
ebf26ec0a3 Standardize docs 2013-06-01 18:36:44 -04:00
Michael DeHaan
cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 2013-04-28 15:03:45 -04:00