<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>buty4649</author_name>
  <author_url>https://blog.hatena.ne.jp/buty4649/</author_url>
  <blog_title>ぶていのログでぶログ</blog_title>
  <blog_url>https://tech.buty4649.net/</blog_url>
  <categories>
    <anon>Chef</anon>
    <anon>Ruby</anon>
    <anon>Ubuntu</anon>
  </categories>
  <description>※ Chef + Knife-Zeroな環境を想定してこの記事を書いている。 かなり特殊な状況ではあるが、chef-clientの実行ユーザがubuntuのときにはubuntuユーザの削除を行わないということがしたい。 想定状況としては、Ubuntu VMを新たに立ち上げてbootstrapをかけ、それによりubuntuユーザの削除と別ユーザの追加*1を行うという感じ。 何も考えずに以下のようなレシピを書いても意図した動作はしない。 # knife-zeroの実行時に評価されてしまう user = ENV['SSH_USER'] || ENV['USER'] unless user == 'u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.buty4649.net%2Fentry%2F2022%2F03%2F25%2F102656&quot; title=&quot;Chefのruby_blockからリソースを制御する - ぶていのログでぶログ&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>2022-03-25 10:26:56</published>
  <title>Chefのruby_blockからリソースを制御する</title>
  <type>rich</type>
  <url>https://tech.buty4649.net/entry/2022/03/25/102656</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
