dergachev / vagrant-drupal

Example of integration of Vagrant, deploy-drupal cookbook, and your Drupal project.
8 stars 3 forks source link

Update default attributes in Vagrantfile #5

Open dergachev opened 11 years ago

dergachev commented 11 years ago

We now have a new version of https://github.com/amirkdv/chef-deploy-drupal

We need to include the following diff:


   # Installs the previously exported site code and SQL dump via deploy-drupal
   config.vm.provision :chef_solo do |chef|
-    reset = ENV["reset"].nil? ? "" : ENV["reset"]
     chef.json.merge!({
       "deploy-drupal" => {
         "dev_group_name" => "vagrant", # use Vagrant default user group as dev group
-        "reset" => reset, # if set to "true", provisioning starts with obliterating existing project
-        "sql_load_file" => "/vagrant/db/dump.sql.gz", # if non-existant, DB will be initialized via 'drush si', can also be relative (db/du
-        "copy_project_from" =>  "/vagrant", # if folder is empty, will download D7 instead
-        "site_path" => "site" # site is default, this can be removed
+        "sql_load_file" => "/vagrant/db/ewmuhc_d6site3-latest.sql.gz", # if non-existant, DB will be initialized via 'drush si', can also b
+        "get_project_from" => { :path => "/vagrant" }, # if folder is empty, will download D7 instead
+        "drupal_root_dir" => "site" # site is default, this can be removed
       },
       "mysql" => {
dergachev commented 11 years ago

And maybe generally add other attributes to be explicit (eg project_name) and remove unnecessary shell provisioners.