<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suzu_v</author_name>
  <author_url>https://blog.hatena.ne.jp/suzu_v/</author_url>
  <blog_title>すずけんメモ</blog_title>
  <blog_url>https://suzuken.hatenablog.jp/</blog_url>
  <categories>
    <anon>puppet</anon>
  </categories>
  <description>unlessというのを知ったのでメモ。たとえばmysqlのインストールをサクッとしたいという場合にrootパスワードを設定したくなる。そこでunlessを使うことによって、既にrootユーザにパスワードが設定されているかどうかを調べることができる。 class mysql-server::config { $password = &quot;pass&quot; exec { &quot;Set MySQL server root password&quot;: subscribe =&gt; Package[&quot;mysql-server&quot;], refreshonly =&gt; true, unless =&gt; &quot;mysqladmin -uroo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuzuken.hatenablog.jp%2Fentry%2F2013%2F11%2F26%2F135755&quot; title=&quot; unless文の使い方 - すずけんメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-11-26 13:57:55</published>
  <title> unless文の使い方</title>
  <type>rich</type>
  <url>https://suzuken.hatenablog.jp/entry/2013/11/26/135755</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
