Skip to content

Merge to production#160

Merged
albatrossflavour merged 15 commits into
masterfrom
development
Oct 15, 2019
Merged

Merge to production#160
albatrossflavour merged 15 commits into
masterfrom
development

Conversation

@albatrossflavour

Copy link
Copy Markdown
Collaborator

No description provided.

rnelson0 and others added 15 commits July 5, 2019 09:04
When parsing command output, we should ensure the utility will emit
messages in the language we are using for matching patterns.  Force the
locale to be 'C' by setting the LC_ALL environment variable.
The `Exec[os_patching::exec::fact]` requires the
`${cache_dir}/reboot_override` file.
* #143 try a new way of doing matching for pinned packages

* Fixed typos

* #147 update the fact with the new data

* #147 fix ordering

* #147 only create the mismatch array if the file has data in it

* #147 cross linux distro compatability

* #147 sles compatability

* #145 add a list of KB updates to the fact

* Fix handling of KBArticleIDs (#146)

* Fix handling of KBArticleIDs

- Ensures all KBArticleIDs are processed, not just the first one in the array
- Ensures the ID's start with "KB", which aids reusing the fact info later on.

* fix typo in variable

typo in variable (kbslist --> kblist) on line 57

* #143 try a new way of doing matching for pinned packages

* Fixed typos

* #147 update the fact with the new data

* #147 fix ordering

* #147 only create the mismatch array if the file has data in it

* #147 cross linux distro compatability

* #147 sles compatability

* #145 add a list of KB updates to the fact

* Fix handling of KBArticleIDs (#146)

* Fix handling of KBArticleIDs

- Ensures all KBArticleIDs are processed, not just the first one in the array
- Ensures the ID's start with "KB", which aids reusing the fact info later on.

* fix typo in variable

typo in variable (kbslist --> kblist) on line 57

* Fix missing slash (#147)

* #143 Fix formatting and use puppet_vardir rather than puppet_client_datadir

* #143 change to clientcert rather than fqdn for the catalog name
* #143 first stab at a new parameter to control VSBNLP behaviour

* Try the new format for the locked files

* Abort flag

* update fact
* Add an option to the task to allow the running of `apt-get autoremove` after patching

* #149 try both ways of doing the autoremove

* #149 fix default

* #149 fix default

* #149 allow cron job to be removed

* #149 revert changes to the task now that we are doing the autoremove via cron

* Add an option to the task to allow the running of `apt-get autoremove` after patching

* #149 try both ways of doing the autoremove

* #149 fix default

* #149 fix default

* #149 allow cron job to be removed

* #149 revert changes to the task now that we are doing the autoremove via cron
If the file /etc/yum/pluginconf.d/versionlock.list does not exist, awk
will output a diagnostic message to stderr:

```
awk: fatal: cannot open file `/etc/yum/pluginconf.d/versionlock.list' for reading (No such file or directory)
```

Because the os_patching_fact_generation.sh script is run by cron, an
e-mail is sent to the root user every hour with this error message.

Ensure the file exist and is readable and only in this case check it's
content to avoid unexpected messages.
`yum --check-update` will include a list of obsoleting packages if the available update will cause packages to be obsoleted.
This output needs to be removed from the fact as it causes unwanted behavior.
@albatrossflavour
albatrossflavour merged commit c225015 into master Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants