Commit Graph

34 Commits (1ad4f6e325489b1e0334604108f036cf9c153968)

Author SHA1 Message Date
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
11 years ago
Thomas Omans e83eb54d1f supervisorctl: user expansion on config filepath 11 years ago
Michael DeHaan beae21dd40 Remove examples of module antipattern of setting the choices array for boolean types. 11 years ago
Javier Candeira 047164adac fix django_manage migrate command 11 years ago
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.
11 years ago
Michael DeHaan c2feda1eb1 htpasswd documentation formatting fix 11 years ago
jctanner e65794946c Merge pull request #4163 from lorin/htpasswd-doc
htpasswd docs: add notes about depending on python-passlib
11 years ago
James Cammarata 80a8ba1b51 Merge pull request #4228 from mragh/devel
Include database param if provided and valid in django_admin commands
11 years ago
James Cammarata d1781dad8c Doc fix in htpasswd module due to colon on the line 11 years ago
James Cammarata 920bef12a3 Merge branch 'add-scheme-to-htpasswd-params' of https://github.com/PugglePay/ansible into PugglePay-add-scheme-to-htpasswd-params 11 years ago
egghead 99c53981ff supervisorctl module: fixing typo in error handling 11 years ago
Jake Kreider 664aa794b0 Include database param if provided and valid in django_admin commands 11 years ago
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
11 years ago
Lorin Hochstein a43f5d4892 htpasswd docs: add notes about depending on python-passlib 11 years ago
Jell 070af1179e Add crypt scheme to htpasswd params 11 years ago
danxshap b8a43a37f0 use home path expansion for virtualenv param in django_manage module 11 years ago
didiercrunch 7f2ae3f375 Update supervisorctl
Fixed the example.
11 years ago
Michael DeHaan 81be8ff7d3 Update htpasswd module for various API incompatibilities 11 years ago
Michael DeHaan 6030c1bcaa tweak indentation for 'make pep8' 11 years ago
Michael DeHaan 80ef9e2628 Document when options were added on this module. 11 years ago
Michael DeHaan 2cd5e23a51 Merge pull request #3442 from neomantra/supervisorctl
supervisorctl: add command-line options as module parameters
11 years ago
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. 11 years ago
Evan Wies e48fb1e9a9 supervisor_ctl: rename to server_url and improve documentation 11 years ago
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.
12 years ago
Michael DeHaan 1919d02e7d Styling: trailing spaces 12 years ago
Lorin Hochstein 1847669754 Add GPL header and copyright 12 years ago
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
12 years ago
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.
12 years ago
Jochen Maes 0830376b0b adds 2 django commands (migrate, collectstatic)
Signed-off-by: Jochen Maes <jochen@sejo-it.be>
12 years ago
Michael DeHaan 152db00ed9 Merge remote branch 'origin' into devel
Conflicts:
	library/web_infrastructure/django_manage
12 years ago
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
12 years ago
Lorin Hochstein bc6416d202 Fix broken link in django_manage doc 12 years ago
Michael DeHaan ebf26ec0a3 Standardize docs 12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago