title: Bootstrapping Galera on RHEL7.2 systemctl: unrecognized option '--wsrep-new-cluster'
body: <p>I am trying to set up Galera cluster via Puppet and I have an additional (probably misguided) requirement to use "Red Hat supported" RPMs.  The problem I have due to this requirement is that bootstrap command: <code>systemctl start mysqld --wsrep-new-cluster</code> fails with the error:</p>
  
  <pre><code>systemctl: unrecognized option '--wsrep-new-cluster'
  </code></pre>
  
  <p>I am assuming that the RPM I am using, <code>mariadb-galera-server-5.5.42-5.el7ost.x86_64</code>, does not a very good <code>mariadb.service</code> file. I was hoping that <code>mysqld.service</code> (which is a symlink to <code>mariadb.service</code>) would accept the <code>--wsrep-new-cluster</code> option and start mysql/mariadb server with the <code>--wsrep-new-cluster</code> option, but it does not.</p>
  
  <p>How should I modify the <code>/usr/lib/systemd/system/mariadb.services</code> file to execute <code>/usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mariadb/mariadb.pid --wsrep-new-cluster</code> when someone executes, <code>systemctl start mariadb --wsrep-new-cluster</code>?</p>
  
  <p>Thanks!</p>