Skip to content

Commit

Permalink
drupal db and user
Browse files Browse the repository at this point in the history
  • Loading branch information
tlezotte committed Apr 25, 2015
1 parent 7b61dac commit 08cdc75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Vagrantfile
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion install.sh
Expand Up @@ -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
8 changes: 7 additions & 1 deletion tasks/mysql.yml
Expand Up @@ -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
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

0 comments on commit 08cdc75

Please sign in to comment.