<p>Internally the "singleton" object id was dropped to make life more easy.
You can probably fix your configuration by running the following code
snippet (currently untested, please report back if it works for you):</p>
<divclass="highlight-sh notranslate"><divclass="highlight"><pre><span></span>find ~/.cdist/* -type f -exec sed -i <spanclass="s1">'s,/singleton,,'</span><spanclass="o">{}</span><spanclass="se">\;</span>
</pre></div>
</div>
</div>
<divclass="section"id="updating-from-2-0-to-2-1">
<h3>5.3.5. Updating from 2.0 to 2.1<aclass="headerlink"href="#updating-from-2-0-to-2-1"title="Permalink to this headline">¶</a></h3>
<p>Have a look at the update guide for [[2.0 to 2.1|2.0-to-2.1]].</p>
<blockquote>
<div><ulclass="simple">
<li>Type <strong>__package* and __process</strong> use --state <strong>present</strong> or <strong>absent</strong>.
The states <strong>removed/installed</strong> and <strong>stopped/running</strong> have been removed.
Support for the new states is already present in 2.0.</li>
<li>Type <strong>__directory</strong>: Parameter --parents and --recursive are now boolean
The old "yes/no" values need to be removed.</li>
<li>Type <strong>__rvm_ruby</strong>: Parameter --default is now boolean
The old "yes/no" values need to be removed.</li>
<li>Type <strong>__rvm_gemset</strong>: Parameter --default is now boolean
The old "yes/no" values need to be removed.</li>
<li>Type <strong>__addifnosuchline</strong> and <strong>__removeline</strong> have been replaced by <strong>__line</strong></li>
<li>The <strong>conf</strong> directory is now located at <strong>cdist/conf</strong>.
You need to migrate your types, explorers and manifests
manually to the new location.</li>
<li>Replace the variable <strong>__self</strong> by <strong>__object_name</strong>
Support for the variable <strong>__object_name</strong> is already present in 2.0.</li>
<li>The types <strong>__autofs</strong>, <strong>__autofs_map</strong> and <strong>__autofs_reload</strong> have been removed
(no maintainer, no users)</li>
<li>Type <strong>__user</strong>: Parameter --groups removed (use the new __user_groups type)</li>
<li><dlclass="first docutils">
<dt>Type <strong>__ssh_authorized_key</strong> has been replaced by more flexible type</dt>
<dd><strong>__ssh_authorized_keys</strong></dd>
</dl>
</li>
</ul>
</div></blockquote>
</div>
<divclass="section"id="updating-from-1-7-to-2-0">
<h3>5.3.6. Updating from 1.7 to 2.0<aclass="headerlink"href="#updating-from-1-7-to-2-0"title="Permalink to this headline">¶</a></h3>
<ulclass="simple">
<li>Ensure python (>= 3.2) is installed on the source host</li>
<li>Use "cdist config host" instead of "cdist-deploy-to host"</li>
<li>Use "cdist config -p host1 host2" instead of "cdist-mass-deploy"</li>
<li>Use "cdist banner" for fun</li>
<li>Use <strong>__object_name</strong> instead of <strong>__self</strong> in manifests</li>
</ul>
</div>
<divclass="section"id="updating-from-1-6-to-1-7">
<h3>5.3.7. Updating from 1.6 to 1.7<aclass="headerlink"href="#updating-from-1-6-to-1-7"title="Permalink to this headline">¶</a></h3>
<ulclass="simple">
<li>If you used the global explorer <strong>hardware_type</strong>, you need to change
your code to use <strong>machine</strong> instead.</li>
</ul>
</div>
<divclass="section"id="updating-from-1-5-to-1-6">
<h3>5.3.8. Updating from 1.5 to 1.6<aclass="headerlink"href="#updating-from-1-5-to-1-6"title="Permalink to this headline">¶</a></h3>
<ulclass="simple">
<li>If you used <strong>__package_apt --preseed</strong>, you need to use the new
type <strong>__debconf_set_selections</strong> instead.</li>
<li>The <strong>__package</strong> types accepted either --state deinstalled or
--state uninstaaled. Starting with 1.6, it was made consistently
to --state removed.</li>
</ul>
</div>
<divclass="section"id="updating-from-1-3-to-1-5">
<h3>5.3.9. Updating from 1.3 to 1.5<aclass="headerlink"href="#updating-from-1-3-to-1-5"title="Permalink to this headline">¶</a></h3>
<p>No incompatibilities.</p>
</div>
<divclass="section"id="updating-from-1-2-to-1-3">
<h3>5.3.10. Updating from 1.2 to 1.3<aclass="headerlink"href="#updating-from-1-2-to-1-3"title="Permalink to this headline">¶</a></h3>
<p>Rename <strong>gencode</strong> of every type to <strong>gencode-remote</strong>.</p>
</div>
<divclass="section"id="updating-from-1-1-to-1-2">
<h3>5.3.11. Updating from 1.1 to 1.2<aclass="headerlink"href="#updating-from-1-1-to-1-2"title="Permalink to this headline">¶</a></h3>
<p>No incompatibilities.</p>
</div>
<divclass="section"id="updating-from-1-0-to-1-1">
<h3>5.3.12. Updating from 1.0 to 1.1<aclass="headerlink"href="#updating-from-1-0-to-1-1"title="Permalink to this headline">¶</a></h3>
<p>In 1.1 the type <strong>__file</strong> was split into <strong>__directory</strong>, <strong>__file</strong> and
<strong>__link</strong>. The parameter <strong>--type</strong> was removed from <strong>__file</strong>. Thus you
need to replace <strong>__file</strong> calls in your manifests:</p>
<blockquote>
<div><ulclass="simple">
<li>Remove --type from all __file calls</li>
<li>If type was symlink, use __link and --type symbolic</li>
<ahref="cdist-install.html"class="btn btn-neutral float-left"title="4. How to install cdist"accesskey="p"rel="prev"><spanclass="fa fa-arrow-circle-left"></span> Previous</a>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.