Commit graph

116 commits

Author SHA1 Message Date
Brian Coca
53c4827da5 added missing version_added 2016-04-19 17:45:36 -04:00
Pål Nilsen
eb6192c050 Add optional force parameter for apache2_module ()
* Add optional force parameter for apache2_module

Fixes 

* Add documentation for the force parameter

* Clarify in description that -f(orce) is a Debian parameter
2016-04-19 17:44:08 -04:00
Michael Scherer
3a1ffa12f1 Set the locales to avoid issue with screenscrapping
See https://github.com/ansible/ansible-modules-core/pull/2462 for

details on why this could happen
2016-04-05 10:24:43 -07:00
Toshio Kuratomi
832e81e691 Set some module parameters to type=path 2016-02-29 00:21:02 -08:00
Brian Coca
c36bd28d08 Merge pull request from aaronkurtz/devel
Remove 'cache_table' from required params
2016-01-25 23:44:35 -05:00
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```.
2016-01-23 12:20:18 -07:00
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.
2015-12-07 01:51:16 -08:00
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 
2015-12-04 09:20:29 -08:00
Greg DeKoenigsberg
57dcf2c9dd @lorin stepping down as maintainer 2015-10-28 14:38:11 -04:00
Brian Coca
b0b4c56bd7 made output match multiline, as per posted code from @n0trax
fixes 
2015-10-19 10:27:52 -04:00
Toshio Kuratomi
94b8ebe1bf Use is_executable from its new location 2015-09-25 07:47:06 -07:00
Adam Ever-Hadani
68c8234533 added support for 'collectstatic clear' in django_manage.py 2015-07-26 11:56:59 -07:00
Igor Khomyakov
305970569d fixed 'present' 2015-07-22 19:19:00 +03:00
Chris Church
9e47219b96 Merge pull request from Ernest0x/patch-3
make migrate command idempotent with django built-in migrations
2015-07-21 14:42:48 -04:00
Brian Coca
f2acf41c77 Merge pull request from faulkner/django_manage-collectstatic-change
Report change status on django_manage collectstatic.
2015-07-10 21:16:22 -04:00
James Cammarata
9acf10face Correctly default crypt_scheme in htpasswd 2015-07-10 13:51:25 -04:00
Chris Faulkner
440b395f37 Report change status on django_manage collectstatic. 2015-07-09 14:36:52 -07:00
Brian Coca
549bbc7ee7 Merge pull request from ludat/devel
django_manage: Use shebang in manage.py instead of hardcoded "python"
2015-07-04 15:56:12 -04:00
Toshio Kuratomi
1458a6ec9a Merge pull request from hostmaster/supervisorctl-not-existed-sv
supervisorctl module: Check if a service exists
2015-07-01 12:38:28 -07:00
Toshio Kuratomi
ae49022a2c Merge pull request from cchurch/django_manage_other_command
Add example of using django_manage to run other commands.
2015-06-30 06:47:00 -07:00
Brian Coca
68a310d860 Merge pull request from nfubh/devel
added 'absent' option to supervisorctl
2015-06-30 00:38:12 -04:00
Brian Coca
081dc14ac7 Merge pull request from vroetman/devel
apache2_module documetation update
2015-06-29 23:55:03 -04:00
Brian Coca
64e357020e Merge pull request from alexkingnz/allow-extra-hash
Extend the htpasswd so it can use different hashes in addition to the 4 currently supported by Apache.
2015-06-29 23:33:31 -04:00
Roetman, Victor
a81dea2b17 apache2_module documetation update
requires a2enmod and a2dismod
2015-06-26 14:50:29 -04:00
Toshio Kuratomi
86677f9ed5 Merge pull request from lorin/django-expanduser
django_manage: expand ~ in app_path parameter
2015-06-25 08:35:50 -07:00
Toshio Kuratomi
6611ee34a5 Fix for when the password file did not exist previously 2015-06-24 11:23:34 -07:00
James Cammarata
a1181b490b Merge pull request from Jmainguy/htpasswd_blank
remove blank lines from htpasswd file
2015-06-23 13:32:02 -04:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
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.
2015-06-14 19:48:00 +02:00
Igor Khomyakov
361a1e1b65 Check if a service exists 2015-06-08 12:30:33 +03:00
Jonathan Mainguy
41049042de remove blank lines from htpasswd file
used standard mktemp()
2015-05-26 19:06:54 -04:00
Lucas David Traverso
3b954edab2 django_manage: Use shebang in manage.py instead of hardcode python 2015-04-19 04:39:59 -03:00
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.
2015-04-17 19:43:25 +03:00
Florian Apolloner
afd0b3fcaa Added os.path.expanduser to app_path in django_manage 2015-03-29 21:34:29 +02:00
Tagir Bakirov
83c6cd04f4 added 'absent' option to supervisorctl 2015-03-13 11:07:13 +01:00
Brian Coca
44ffe73e02 Merge pull request from direvus/apache2-module-word-boundary
Add word boundary in apache2_module regexp
2015-02-16 18:54:00 -05:00
Toshio Kuratomi
477391bb24 Better error messages if a2enmod/a2dismod are not found 2015-01-13 23:18:04 -08:00
Chris Church
d9360a7613 Update docs, add example of using django_manage to run other commands. 2014-12-26 01:29:54 -05:00
Alex King
18183caf86 Extend hashes that can be specified by crypt_scheme beyond those
understood by Apache/Nginx.
2014-12-09 13:33:02 +13:00
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.
2014-12-05 18:08:47 +03:00
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.
2014-12-02 22:33:49 +01:00
Lorin Hochstein
d7db09a0eb django_manage: expand ~ in app_path parameter
Allow users to specify app_path parameters that contain ~, for example:

app_path=~/myproject
2014-11-22 20:59:36 -05:00
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.
2014-10-02 16:32:30 +10:00
Michael DeHaan
385a037cd6 package files 2014-09-26 11:05:47 -04:00
Michael DeHaan
c8e1a2077e file extensions! 2014-09-26 10:37:56 -04:00
Michael DeHaan
417309a626 Restructuring. 2014-09-26 10:13:26 -04:00
Michael DeHaan
73123b69fa Move modules into subdirectory. 2014-09-26 09:23:50 -04:00
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 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 and 2014-06-24 20:37:49 -04:00