Log of /contributions/modules/provision/provision.inc
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.77 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 29 17:21:05 2009 UTC
(3 weeks, 5 days ago)
by
adrian
Branch:
MAIN
Changes since
1.76: +19 -4 lines
Diff to
previous 1.76
Use apaches mod_env to set the database credentials in the virtualhost file, so that they are only accessible inside a specific process. the $_SERVER values are now bootstrapped in the verify site process and the config file rewritten, so that you can now safely verify a site. the $_SERVER values are stored inside the site drushrc.php so that normal drush commands will continue to operate as they would. The open_basedir directive is commented out until we can resolve issues with it.
Revision
1.70 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Mar 26 01:58:33 2009 UTC
(8 months ago)
by
adrian
Branch:
MAIN
Changes since
1.69: +5 -3 lines
Diff to
previous 1.69
#408810 - site migration fails on head. This takes into account the new error logging changes in drush to solve this problem.
Revision
1.55 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Feb 4 14:09:27 2009 UTC
(9 months, 2 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.54: +33 -9 lines
Diff to
previous 1.54
Provide a layer of conditional includes for specific Drupal versions. One provision install can now drive Drupal 5, 6 and 7 platforms, without needing anything additional downloaded.
Revision
1.52 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 3 00:34:11 2009 UTC
(9 months, 3 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.51: +55 -37 lines
Diff to
previous 1.51
Synched head with d6 branch. Works with drush 2.x and no longer needs to be enabled on a site, as it is no longer a module. Hosting has not been updated to point to the right place per server, so you have to create the symlink to the central drush.php yourself. I have not sorted out the version specific stuff yet either.
Revision
1.49.2.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Dec 11 02:48:28 2008 UTC
(11 months, 2 weeks ago)
by
adrian
Branch:
DRUPAL-6--1
Changes since
1.49: +16 -19 lines
Diff to
previous 1.49
#343428 - better serialized string protection. not perfect due to weirdness in how exec handles spaces before newlines. Will need to switch to proc_open to fix this
Revision
1.50 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 9 02:17:48 2008 UTC
(11 months, 2 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.49: +51 -12 lines
Diff to
previous 1.49
First import of the basis of the 0.2 release of provision. This version has a much cleaner api, through the dynamic inclusion of <command>.provision.inc files , which any module can overload. Each of these files has the exact same structure, and thus it is much clearer what happens when, and much much simpler to document / extend. I also removed all the drupal dependencies i could find, in preperation for moving to a version agnostic drush, for all buy provision_drupal (which is going to be spun off into a different project). This also includes a working update command, and keeps track of the modules installed on a site after every verify / upgrade process. This information is not being tracked in hosting, yet
Revision
1.31.2.14 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Dec 3 01:57:32 2008 UTC
(11 months, 3 weeks ago)
by
adrian
Branch:
DRUPAL-5
Changes since
1.31.2.13: +30 -27 lines
Diff to
previous 1.31.2.13
, to
branch point 1.31
Replacement provision_invoke function which is a lot cleaner and simpler than the old one. It now automatically does pre_task, task and post_task variations, and handles rollbacks correctly across the whole set. This means broken site installs now roll back correctly.
Revision
1.49 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Dec 3 01:57:11 2008 UTC
(11 months, 3 weeks ago)
by
adrian
Branch:
MAIN
Branch point for:
DRUPAL-6--1
Changes since
1.48: +30 -27 lines
Diff to
previous 1.48
Replacement provision_invoke function which is a lot cleaner and simpler than the old one. It now automatically does pre_task, task and post_task variations, and handles rollbacks correctly across the whole set. This means broken site installs now roll back correctly.
Revision
1.48 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 2 23:49:46 2008 UTC
(11 months, 3 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.47: +11 -22 lines
Diff to
previous 1.47
Filter site.php to only show settings that are not configured in drushrc.php. No longer append options to site.php.
Revision
1.45 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Dec 2 03:06:10 2008 UTC
(11 months, 3 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.44: +49 -1 lines
Diff to
previous 1.44
moved the drupal installation process into it's own php process, to avoid cross db issues. much simpler now.
Revision
1.38 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 20 13:58:05 2008 UTC
(12 months ago)
by
adrian
Branch:
MAIN
Changes since
1.37: +24 -3 lines
Diff to
previous 1.37
Add provision_exec to run external provision scripts in their own namespace. This is the basis of a cleaner install task
Revision
1.31 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Oct 20 16:59:13 2008 UTC
(13 months ago)
by
adrian
Branch:
MAIN
Branch point for:
DRUPAL-5
Changes since
1.30: +13 -20 lines
Diff to
previous 1.30
#321942 (primarily) - working config file generation and synch command. Also cleaned up variables passed to the system so the site_ prefix is no longer used.
Revision
1.28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 10 02:32:34 2008 UTC
(13 months, 2 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.27: +4 -0 lines
Diff to
previous 1.27
L10n support for install profiles. Detects and installs sites using the available languages correctly. Does not currently detect the language of installed sites correctly. Will fix this along with #319299 momentarily
Revision
1.26 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 27 06:40:13 2008 UTC
(16 months, 4 weeks ago)
by
adrian
Branch:
MAIN
Changes since
1.25: +3 -0 lines
Diff to
previous 1.25
Do checking to see that the tarball has been correctly extracted. Remove db password from log info returned to hosting.
Revision
1.25 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jun 20 18:28:33 2008 UTC
(17 months ago)
by
adrian
Branch:
MAIN
Changes since
1.24: +1 -1 lines
Diff to
previous 1.24
Missing return to db create function. Added additional error checking. Become more stringent about regenerating the config files. Wrong path to database.sql
Revision
1.23 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 12 19:19:50 2008 UTC
(17 months, 1 week ago)
by
adrian
Branch:
MAIN
Changes since
1.22: +6 -52 lines
Diff to
previous 1.22
More work towards restore functionality. Moved the mysql utility functions to provision_mysql.inc, and the help stuff to it's own include too.
Made more constants to replace the various helper functions, still need to document them.
Replaced all references to db_username with db_user, which is consistent with everywhere else in the system.
Revision
1.22 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 12 05:32:30 2008 UTC
(17 months, 1 week ago)
by
adrian
Branch:
MAIN
Changes since
1.21: +28 -16 lines
Diff to
previous 1.21
Fix some issues with the site.php generation, that caused catastrophic problems when the site was synched (upon editing of the site node), because the site.php had been overwritten and lost it's db settings.
Revision
1.21 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jun 12 04:02:10 2008 UTC
(17 months, 1 week ago)
by
adrian
Branch:
MAIN
Changes since
1.20: +105 -68 lines
Diff to
previous 1.20
Practically completely rewrote the provision_check_path function.
It is now called provision_path, and instead of the nasty switch statement it has a small set of pluggable functions, which work similarly to theme() etc. For that reason I also ended up changing the order of the parameters to be provision_path('mkdir', 'somepath').
The functionality grew to over 200 lines of code (mostly comments), so i split it off into it's own file.
I also added checks that the user is in the correct group, and it will specify it to the user if it comes to it, but I should really hook it up into the user interface and write some better documentation about it before i can close #245664. Although it seems chgrp now fails silently for me, even from the command line. Please check it out.
I moved _provision_drupal_recursive_delete to provision.inc and removed the drupal from the module prefix. I also made it use the provision_path module for logging purposes, cleaning it up a bit.
#262008 is now completely fixed. I've re-added the permission checking in provision_drupal.module, since it now works. It was missing a clearstatcache(), so i added these pretty liberally.
Part of the fallout from this, is that each of the provision_path_ functions have an optional third parameter, which is a reference. This reference can be used to provide a reason for the operation failing. Also, mostly due to the chown function, i run the messages through t() before they get sent to logs. Meaning developers can just use @path and @confirm in their error messages, and they get the centrally prettied up variables. It's made the verify code a lot easier on the eyes. just check out provision_verify.
Added redirection to a new site maintenance page, for while the site is being restored.
Added a switch paths function, which flips around site directories. I'm building restore to be non-destructive, until after the site has been completely restored and verfied. #237555
I'm making a move to using more defines for various site infrastructure things. I just tackled the paths, will do the current user and current group stuff soon, bringing it back in line with hosting. It cleared up a fair amount of code just doing the paths.
Revision
1.17 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Apr 18 21:22:05 2008 UTC
(19 months, 1 week ago)
by
anarcat
Branch:
MAIN
Changes since
1.16: +10 -3 lines
Diff to
previous 1.16
compare users properly in check_path. also apply the same logic on chgrp, which was missing. add information on why the check failed in the error message
Revision
1.14 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Apr 11 21:56:03 2008 UTC
(19 months, 1 week ago)
by
anarcat
Branch:
MAIN
Changes since
1.13: +3 -2 lines
Diff to
previous 1.13
try to fix #242366: uncomment the permission checks in sites directory creation
fix the name of the user/group variables: it's now provision_script_user and provision_web_group, to follow what is configured in hosting
now this works, but the hostmaster user (or the script running the cron job) needs to be part of the provision_web_group
Revision
1.11 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Mar 19 00:02:21 2008 UTC
(20 months, 1 week ago)
by
adrian
Branch:
MAIN
Changes since
1.10: +5 -6 lines
Diff to
previous 1.10
Site creation is working again. There was a bug in the db switching code, and some permission changes that i commented out for now while i am testing
Revision
1.7 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Feb 11 16:55:39 2008 UTC
(21 months, 1 week ago)
by
adrian
Branch:
MAIN
Changes since
1.6: +122 -54 lines
Diff to
previous 1.6
In progress commit. Remove dependency on date module. Lots of help additions. Added verify step so the back end (mostly) configures itself. Switched templating to use php instead of tokens (needed loops in templates). Turned options to use underscore instead of dash for separation (now consistent). Lots of validation and logging, including strict permission checking.
Revision
1.6 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jan 23 01:28:32 2008 UTC
(22 months ago)
by
adrian
Branch:
MAIN
Changes since
1.5: +27 -4 lines
Diff to
previous 1.5
Partial refactoring, finished documentation. Lots of little helper functions to figure out defaults of things, for the auto-reconfiguring self documenting help.
Revision
1.5 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jan 20 20:25:51 2008 UTC
(22 months ago)
by
adrian
Branch:
MAIN
Changes since
1.4: +53 -4 lines
Diff to
previous 1.4
refactored database_mysql, added helper functions for finding out group name and file owner name. added functionality to stop functions from being run via the web. slightly updated documentation
Revision
1.4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 19 20:27:21 2008 UTC
(22 months ago)
by
adrian
Branch:
MAIN
Changes since
1.3: +4 -3 lines
Diff to
previous 1.3
Extensive inline documentation through the magic of hook_help. Documents the requirements for each of the component modules and all the commands and options that can be passed to it on the command line
Revision
1.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 7 00:21:42 2007 UTC
(23 months, 2 weeks ago)
by
adrian
Branch:
MAIN
Initial import of provisioning framework into drupal contrib. This set of modules extends Drush to provide the ability to install and manage Drupal sites. It is the back end component of the hostmaster system.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.