We use foreman-installer
and are at Foreman version 1.23.2. But inevitably, someone here will make manual changes to a file managed by foreman-installer
.
To detect these changes, I usually run a command like foreman-installer --noop --dont-save-answers --verbose
. This does print which files have changed since the last run, because it shows diffs:
[ WARN 2020-08-17T18:54:26 verbose] /Stage[main]/Foreman::Puppetmaster/File[/etc/puppetlabs/puppet/foreman.yaml]/content:
[ WARN 2020-08-17T18:54:26 verbose] --- /etc/puppetlabs/puppet/foreman.yaml 2020-02-07 10:52:04.777710541 -0800
[ WARN 2020-08-17T18:54:26 verbose] +++ /tmp/puppet-file20200817-28724-9ab092 2020-08-17 18:54:26.451256118 -0700
[ WARN 2020-08-17T18:54:26 verbose] @@ -1,6 +1,6 @@
[ WARN 2020-08-17T18:54:26 verbose] ---
[ WARN 2020-08-17T18:54:26 verbose] :url: "https://foreman.example.org"
[ WARN 2020-08-17T18:54:26 verbose] -#:ssl_ca: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem"
[ WARN 2020-08-17T18:54:26 verbose] +:ssl_ca: "/etc/puppetlabs/puppet/ssl/ca/ca_crt.pem"
However, this log can be quite long and hard to parse.
Is there an easier way for me to see which files on the host have been changed?