Commit Graph

34 Commits (6d16f85b30bafbf830ec0bf00c5b513966483bdc)

Author SHA1 Message Date
Patrick Michaud c1e241577c 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 1dbdd9d6d1 supervisorctl: user expansion on config filepath 11 years ago
Michael DeHaan 119b6d73dd Remove examples of module antipattern of setting the choices array for boolean types. 11 years ago
Javier Candeira f8255b538e fix django_manage migrate command 11 years ago
Stoned Elipot b03912278e 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 42eeac5aba htpasswd documentation formatting fix 11 years ago
jctanner 351c4d749e Merge pull request #4163 from lorin/htpasswd-doc
htpasswd docs: add notes about depending on python-passlib
11 years ago
James Cammarata 2ed803837e Merge pull request #4228 from mragh/devel
Include database param if provided and valid in django_admin commands
11 years ago
James Cammarata b41ea366c8 Doc fix in htpasswd module due to colon on the line 11 years ago
James Cammarata 786a765063 Merge branch 'add-scheme-to-htpasswd-params' of https://github.com/PugglePay/ansible into PugglePay-add-scheme-to-htpasswd-params 11 years ago
egghead 255d2d6770 supervisorctl module: fixing typo in error handling 11 years ago
Jake Kreider bd446ef777 Include database param if provided and valid in django_admin commands 11 years ago
egghead 3f4dc876fc 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 d4326d8196 htpasswd docs: add notes about depending on python-passlib 11 years ago
Jell a47f2674a4 Add crypt scheme to htpasswd params 11 years ago
danxshap 4db4607ee5 use home path expansion for virtualenv param in django_manage module 11 years ago
didiercrunch 15160f2d93 Update supervisorctl
Fixed the example.
11 years ago
Michael DeHaan 508c1d8256 Update htpasswd module for various API incompatibilities 11 years ago
Michael DeHaan e1167d6977 tweak indentation for 'make pep8' 11 years ago
Michael DeHaan 85731a374e Document when options were added on this module. 11 years ago
Michael DeHaan 16314b2ec9 Merge pull request #3442 from neomantra/supervisorctl
supervisorctl: add command-line options as module parameters
11 years ago
Andrew Todd e477d993dd 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 f5c81f79de supervisor_ctl: rename to server_url and improve documentation 12 years ago
Evan Wies cbeb6a63e5 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 39834d854c Styling: trailing spaces 12 years ago
Lorin Hochstein f69f364b90 Add GPL header and copyright 12 years ago
Lorin Hochstein 06d92f1103 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 1ef1b03bf6 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 7b763dc487 adds 2 django commands (migrate, collectstatic)
Signed-off-by: Jochen Maes <jochen@sejo-it.be>
12 years ago
Michael DeHaan 78fdedd490 Merge remote branch 'origin' into devel
Conflicts:
	library/web_infrastructure/django_manage
12 years ago
Jan-Piet Mens 5c69918d53 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 d2ea9d85d0 Fix broken link in django_manage doc 12 years ago
Michael DeHaan 956bff2f07 Standardize docs 12 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago