parent
97064229b2
commit
f5f29c0dc7
1 changed files with 13 additions and 1 deletions
|
|
@ -280,7 +280,11 @@ ignore_package_versions = true
|
|||
</div>
|
||||
|
||||
<div class="terminal mb-4">
|
||||
<pre class="mb-0"><code><span class="prompt">$</span> enroll diff --old /path/to/harvestA --new /path/to/harvestB --exclude-path /var/anacron --ignore-package-versions</code></pre>
|
||||
<pre class="mb-0"><code><span class="prompt">$</span> enroll diff \
|
||||
--old /path/to/harvestA \
|
||||
--new /path/to/harvestB \
|
||||
--exclude-path /var/spool/anacron \
|
||||
--ignore-package-versions</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="callout p-4 mb-3">
|
||||
|
|
@ -288,7 +292,15 @@ ignore_package_versions = true
|
|||
<div class="small text-secondary mb-0">If drift exists and <code>ansible-playbook</code> is on <code>PATH</code>, Enroll can generate a manifest from the <em>old</em> harvest and apply it locally to restore expected state. It avoids package downgrades, and will often run Ansible with <code>--tags role_...</code> so only the roles implicated by the drift are applied. This is very much like a return to Puppet's agent mode!</div>
|
||||
</div>
|
||||
|
||||
<div class="terminal mb-4">
|
||||
<pre class="mb-0"><code><span class="prompt">$</span> enroll diff \
|
||||
--old /path/to/harvestA \
|
||||
--new /path/to/harvestB \
|
||||
--enforce
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<h3 class="section-title fw-bold">How to run <code>enroll diff</code> automatically on a timer</h3>
|
||||
<p class="text-secondary">Store the below file at <code>/usr/local/bin/enroll-harvest-diff.sh</code> and make it executable.</p>
|
||||
<div class="codeblock terminal">
|
||||
<button class="btn btn-sm btn-outline-secondary copy-btn" data-copy-target="#enroll-harvest-diff"><i class="bi bi-clipboard"></i> Copy</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue