diff --git a/Vagrantfile b/Vagrantfile index 2e9a58e..dc0b85c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -47,9 +47,6 @@ Vagrant.configure(2) do |config| # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. - config.vm.synced_folder ".", "/vagrant", - owner: "somapp", group: "somapp", - mount_options: ["dmode=775,fmode=664"] config.vm.synced_folder "~/Sites", "/sites" # Provider-specific configuration so you can fine-tune various diff --git a/install.sh b/install.sh index 188c10d..b552424 100755 --- a/install.sh +++ b/install.sh @@ -81,14 +81,20 @@ mv ansi-rant $OS cd $OS # Let the system know about your options -(sudo echo "$boxip $boxhostname" >> /etc/hosts) sed -i "" "s/change.vagrant.com/$boxhostname/" playbook.yml # Start installing vagrant up +printf "Please run the command below in Terminal, then press enter: " +printf 'sudo echo "$boxip $boxhostname" >> /etc/hosts' +read hosts + # Open default website open http://$boxhostname +# change user directory to be open (temp) +chmod -R 777 somapp + # Login to VM vagrant ssh diff --git a/tasks/mysql.yml b/tasks/mysql.yml index e6d3cca..32ad96d 100644 --- a/tasks/mysql.yml +++ b/tasks/mysql.yml @@ -8,6 +8,12 @@ - name: Start mysqld service service: name=mysqld state=reloaded +- name: Creating databases + mysql_db: name={{ item }} state=present + with_items: + - drupal + - name: Set root password for mysql mysql_user: name=root password={{ default_password_plain }} host=localhost - mysql_user: name={{ default_user }} password={{ default_password_plain }} host=* priv=*.*:ALL,GRANT state=present \ No newline at end of file + mysql_user: name={{ default_user }} password={{ default_password_plain }} host=* priv=*.*:ALL,GRANT state=present + mysql_user: name=drupal password={{ default_password_plain }} host=* priv=drupal.*:ALL,GRANT state=present