Permalink
Browse files

Copy settings/local.py-dist on first vagrant up

  • Loading branch information...
1 parent 1b41f09 commit eca40ad2497b3603fca3eaa30b24c4cfc37899d9 @tofumatt tofumatt committed Oct 27, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 puppet/manifests/classes/playdoh.pp
@@ -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":

0 comments on commit eca40ad

Please sign in to comment.