Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
Copy settings/local.py-dist on first vagrant up
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Oct 27, 2011
1 parent 1b41f09 commit eca40ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions puppet/manifests/classes/playdoh.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@

# TODO: Make this rely on things that are not straight-up exec.
class playdoh {
file { "$PROJ_DIR/settings/local.py":
ensure => file,
source => "$PROJ_DIR/settings/local.py-dist",
replace => false;
}

exec { "create_mysql_database":
command => "mysqladmin -uroot create $DB_NAME",
unless => "mysql -uroot -B --skip-column-names -e 'show databases' | /bin/grep '$DB_NAME'",
require => File["$PROJ_DIR/settings/local.py"]
}

exec { "grant_mysql_database":
Expand Down

0 comments on commit eca40ad

Please sign in to comment.