Report abuse

# only execute when the apache2 database/users table does not already exists, the "mysql statements file" is there and the password has been set
	exec {"execute_mysql_statements":
		command => "mysql -u root -p$root_mysql_password < /tmp/mysql-create-data.sql",
		onlyif  => ["test ! -f /var/lib/mysql/apache2/users.MYD"],
		require => Exec ["Set MySQL server root password"],
		require => File ["/tmp/mysql-create-data.sql"],

	}