title: Have puppet conditionally execute multiple commands
body: <p>I have a working puppet configuration to help installing mysql instances on a machine.  My environment is setup such that there are multiple instances running on the same machine (with different configs/ports/etc).</p>
  
  <p>The basic setup I have in a manifest looks like</p>
  
  <pre><code>File{
      owner =&gt; $owner,
      group =&gt; $group,
      before =&gt; Exec["mysql_install_db-${name}"],
  }
  
  exec{"mysql_install_db-${name}":
      creates =&gt; "/var/lib/mysql/${name}/mysql",
      command =&gt; "/usr/local/percona/mysql-${version}/usr/bin/mysql_install_db --user=mysql --datadir=/var/lib/mysql/${name} --basedir=/usr/local/percona/mysql-${version}/usr",
      logoutput =&gt; true,
  }
  </code></pre>
  
  <p>This works perfectly fine, however now I'd like to modify this install process to run some subsequent commands to bootstrap the fresh install with some internal stored procedures and do some other 'prep work' we do for a new install.</p>
  
  <p>The commands would be basically like</p>
  
  <pre><code>mysql -u user &lt; /path/to/bootstrap1.sql
  mysql -u user &lt; /path/to/bootstrap2.sql
  mysql -u user &lt; /path/to/bootstrap3.sql
  </code></pre>
  
  <p>I only want these run once, after the mysql_install_db command but somewhat under the same "creates" guard.</p>
  
  <p>I found some references to just passing an array to the command argument but that reference was in the form of a bug report of it not always working consistently.</p>
  
  <p>What's the preferred method to accomplish something like this, and ensure the commands get executed in a deterministic order and only after mysql_install_db was run?</p>