Commit Graph

113 Commits (3853d2a9a6fb8a6cc85f5d8525eb3190408d8dec)

Author SHA1 Message Date
Toshio Kuratomi 832e81e691 Set some module parameters to type=path 9 years ago
Brian Coca c36bd28d08 Merge pull request #2641 from aaronkurtz/devel
Remove 'cache_table' from required params
9 years ago
Graham Ullrich e002161e6c Update django_manage documentation
As of Ansible 2.x, invocation of Django's ```manage.py``` requires a valid "shebang". Additionally, ```manage.py``` must be executable.
The old invocation was hardcoded as ```python manage.py ...``` while the new invocation is ```./manage.py ...```. See [this PR](https://github.com/ansible/ansible-modules-core/pull/1165).
This change allows more flexibility for which Python interpreter is invoked, but breaks existing deployment when ```manage.py``` is not properly configured. This documentation update adds a note explaining the new requirements for ```manage.py```.
9 years ago
Aaron Kurtz b303d760e6 Remove 'cache_table' from required params
Starting in Django 1.7, the createcachetable command looks for cache
table names in the CACHES settings dictionary, so cache_table is no
longer required, but is still allowed.
9 years ago
Toshio Kuratomi 191347676e When the password file does not exist and we're making sure the user isn't in the password file, change error into a warning
Warning catches typos in the filename.  Since the playbook is saying
"make sure this user doesn't have an entry" it makes more sense to warn
than to error.

Fixes #2619
9 years ago
Greg DeKoenigsberg 57dcf2c9dd @lorin stepping down as maintainer 9 years ago
Brian Coca b0b4c56bd7 made output match multiline, as per posted code from @n0trax
fixes #2081
9 years ago
Toshio Kuratomi 94b8ebe1bf Use is_executable from its new location 9 years ago
Adam Ever-Hadani 68c8234533 added support for 'collectstatic clear' in django_manage.py 9 years ago
Igor Khomyakov 305970569d fixed 'present' 9 years ago
Chris Church 9e47219b96 Merge pull request #1153 from Ernest0x/patch-3
make migrate command idempotent with django built-in migrations
9 years ago
Brian Coca f2acf41c77 Merge pull request #1700 from faulkner/django_manage-collectstatic-change
Report change status on django_manage collectstatic.
9 years ago
James Cammarata 9acf10face Correctly default crypt_scheme in htpasswd 9 years ago
Chris Faulkner 440b395f37 Report change status on django_manage collectstatic. 9 years ago
Brian Coca 549bbc7ee7 Merge pull request #1165 from ludat/devel
django_manage: Use shebang in manage.py instead of hardcoded "python"
10 years ago
Toshio Kuratomi 1458a6ec9a Merge pull request #621 from hostmaster/supervisorctl-not-existed-sv
supervisorctl module: Check if a service exists
10 years ago
Toshio Kuratomi ae49022a2c Merge pull request #574 from cchurch/django_manage_other_command
Add example of using django_manage to run other commands.
10 years ago
Brian Coca 68a310d860 Merge pull request #937 from nfubh/devel
added 'absent' option to supervisorctl
10 years ago
Brian Coca 081dc14ac7 Merge pull request #1617 from vroetman/devel
apache2_module documetation update
10 years ago
Brian Coca 64e357020e Merge pull request #469 from alexkingnz/allow-extra-hash
Extend the htpasswd so it can use different hashes in addition to the 4 currently supported by Apache.
10 years ago
Roetman, Victor a81dea2b17 apache2_module documetation update
requires a2enmod and a2dismod
10 years ago
Toshio Kuratomi 86677f9ed5 Merge pull request #376 from lorin/django-expanduser
django_manage: expand ~ in app_path parameter
10 years ago
Toshio Kuratomi 6611ee34a5 Fix for when the password file did not exist previously 10 years ago
James Cammarata a1181b490b Merge pull request #1406 from Jmainguy/htpasswd_blank
remove blank lines from htpasswd file
10 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 10 years ago
Kamil Madac b1160ade9a Better error handling in supervisorctl module.
If execution of supervisorctl was not successful (exit code > 0),
module silently supress this error and returns changed = false,
which turns to OK task state.
This is very confusing, when supervisorctl needs authentication,
and credentials are not specified in module or are incorrect,
services are not restarted/started/stopped without raising an error.
10 years ago
Igor Khomyakov 361a1e1b65 Check if a service exists 10 years ago
Jonathan Mainguy 41049042de remove blank lines from htpasswd file
used standard mktemp()
10 years ago
Lucas David Traverso 3b954edab2 django_manage: Use shebang in manage.py instead of hardcode python 10 years ago
Petros Moisiadis 3c605d4aba make migrate command idempotent with django built-in migrations
Django since version 1.7 has built-in migrations, so no need to have south installed with recent django versions. The 'migrate' command works with built-in migrations without any change, but the output is different than the output produced by south, which breaks idempotence. This commit fixes this.
10 years ago
Florian Apolloner afd0b3fcaa Added os.path.expanduser to app_path in django_manage 10 years ago
Tagir Bakirov 83c6cd04f4 added 'absent' option to supervisorctl 10 years ago
Brian Coca 44ffe73e02 Merge pull request #117 from direvus/apache2-module-word-boundary
Add word boundary in apache2_module regexp
10 years ago
Toshio Kuratomi 477391bb24 Better error messages if a2enmod/a2dismod are not found 10 years ago
Chris Church d9360a7613 Update docs, add example of using django_manage to run other commands. 10 years ago
Alex King 18183caf86 Extend hashes that can be specified by crypt_scheme beyond those
understood by Apache/Nginx.
10 years ago
Peter Bwire 1710b45075 Update django_manage to add database option for migrate
Allow passing the database option to the django_manage module for migrations. This is usefull in situations where multiple databases are used by a django application.
10 years ago
Tomasz Kontusz 18e641838a supervisorctl: Don't try to start a starting program
Starting a "STARTING" program throws ERROR (already started),
so don't do that.
10 years ago
Lorin Hochstein d7db09a0eb django_manage: expand ~ in app_path parameter
Allow users to specify app_path parameters that contain ~, for example:

app_path=~/myproject
10 years ago
Brendan Jurd 6157a6552f Add word boundary in apache2_module regexp
Add a word boundary \b to the regexp for checking the output of a2{en,dis}mod,
to avoid a false positive for a module that ends with the same text as the
module we're working on.

For example, the previous regexp r'.*spam already enabled' would also match
against 'eggs_spam already enabled'.

Also, get rid of the redundant '.*' from the end of the regexp.
10 years ago
Michael DeHaan 385a037cd6 package files 10 years ago
Michael DeHaan c8e1a2077e file extensions! 10 years ago
Michael DeHaan 417309a626 Restructuring. 10 years ago
Michael DeHaan 73123b69fa Move modules into subdirectory. 10 years ago
James Cammarata ba062de744 Merge branch '7736' of https://github.com/kcghost/ansible into kcghost-7736 10 years ago
Michael DeHaan 76eb5064f4 Merge pull request #7520 from jjneely/a2enmod
apache2_module module fixes
10 years ago
Casey Fitzpatrick c0543db5f3 apache2_module handles multiple lines of output, fixes #7736 and #7857 11 years ago
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.
11 years ago
Brian Coca ac14a8d6ad unified calls to fs function vs duplicate functions for file and
directory
11 years ago
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.
11 years ago