Commit f2b81420 authored by Marco Mariani's avatar Marco Mariani

working profile that does not use the drupal recipe

parent 974e7439
......@@ -5,26 +5,6 @@ recipe = slapos.cookbook:publish
drupal-admin-password = $${gen-passwd:passwd}
[drupal-init]
recipe = cp.recipe.cmd
install_cmd =
mkdir -m 700 ~/.ssh
cp ${ssh-config:location}/ssh-config ~/.ssh/config
cp -ax ${datapublic:location} $${rootdirectory:srv}/www/profiles/datapublic
# ${apache-php:location}/bin/drush make ${datapublic:location}/datapublic.make $${rootdirectory:srv}/www
#[drupal-init]
#recipe = slapos.cookbook:drupal_init
#drush-binary = ${apache-php:location}/bin/drush
#php-binary = ${apache-php:location}/bin/php
#settings-php = ${application-configuration:location}
#htdocs = $${rootdirectory:srv}/www
#admin-password = $${gen-passwd:passwd}
#dependency = $${apache-php:recipe}
#----------------
#--
#-- Generates a random password and stores it in the filesystem
......@@ -34,4 +14,3 @@ recipe = slapos.cookbook:generate.password
storage-path = $${rootdirectory:srv}/drupal_passwd
bytes = 16
......@@ -5,33 +5,32 @@ extends =
../../component/git/buildout.cfg
parts +=
datapublic
datapublic-patch
ssh-config
pear-modules
slapos.cookbook-repository
slapos-cookbook
check-recipe
instance
develop =
${:parts-directory}/slapos.cookbook-repository
[apache-php]
url = http://fr2.php.net/distributions/php-5.3.23.tar.gz
md5sum = 9cd92b0de2b51dcd372f46fa623984f4
[slapos.cookbook-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.git
branch = drupal
git-executable = ${git:location}/bin/git
[application]
recipe = slapos.recipe.build:download-unpacked
url = http://ftp.drupal.org/files/projects/drupal-7.22.tar.gz
md5sum = 068d7a77958fce6bb002659aa7ccaeb7
[application-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/settings.php.in
md5sum = 393813c5660590dfde74f835afa3389a
md5sum = 0406dfa6a733a541257ccf13c36366f7
download-only = True
filename = template.in
mode = 0644
......@@ -42,7 +41,7 @@ location = sites/default/settings.php
[custom-application-deployment]
path = ${custom-application-deployment-template:output}
part-list = drupal-init publish-drupal-admin-password
part-list = publish-drupal-admin-password
......@@ -50,29 +49,31 @@ part-list = drupal-init publish-drupal-admin-password
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-custom.cfg.in
output = ${buildout:directory}/instance-custom.cfg
md5sum = 9c3ab8d4e6cd4274cb2281a3aa1c4dee
md5sum = 4ce7536e799b46359680a7d205255ff4
mode = 0644
[datapublic]
[datapublic-download]
recipe = slapos.recipe.build:download-unpacked
url = http://ftp.drupal.org/files/projects/datapublic-7.x-1.0-beta2.tar.gz
md5sum = fcd038ee4cc4409f21e3f99787b7ed0e
[datapublic-patch]
[application]
# replace the download recipe to preprare the make step
recipe = cp.recipe.cmd
on_install = True
on_update = True
cmds =
sed -i "s|git@github.com:\(.*\)|https://github.com/\1|g" ${datapublic:location}/build-datapublic.make
sed -i "s|git@github.com:\(.*\)|https://github.com/\1|g" ${datapublic:location}/datapublic.make
dependency = ${datapublic-download:recipe}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
update_cmd = ${:install_cmd}
install_cmd =
# update drupal itself for security reasons
sed -i "s|7\.12$|7\.22|g" ${datapublic-download:location}/build-datapublic.make
sed -i "s|7\.12$|7\.22|g" ${datapublic-download:location}/datapublic.make
# we won't need to use a github account to download.
sed -i "s|git@github.com:\(.*\)|https://github.com/\1|g" ${datapublic-download:location}/build-datapublic.make
sed -i "s|git@github.com:\(.*\)|https://github.com/\1|g" ${datapublic-download:location}/datapublic.make
rm -rf ${:location}
${apache-php:location}/bin/drush make ${datapublic-download:location}/datapublic.make ${:location}
[ssh-config]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/ssh_config
md5sum = 6532ddf50989961ad55dfa6a49383a1b
mode = 0644
[pear-modules]
......@@ -80,7 +81,7 @@ recipe = cp.recipe.cmd
pear = ${apache-php:location}/bin/pear
install_cmd =
${:pear} channel-info pear.drush.org >/dev/null || ${:pear} channel-discover pear.drush.org
${:pear} info drush/drush >/dev/null || ${:pear} install drush/drush
${:pear} info drush/drush >/dev/null || ${:pear} install drush/drush-5.8.0
${:pear} info Console_Table >/dev/null || ${:pear} install Console_Table
[check-recipe]
......
Host github.com
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment