The dnf-automatic cookbook takes over management of the dnf-automatic
package which replaced yum-cron
. This
provides an automatic way to upgrade any dnf base operating system.
- CentOS >= 8
- Chef 16+
- none
The attributes build the /etc/dnf/automatic.conf
configuration file using the following format:
default['dnf-automatic']['conf']['section']['key'] = 'value'
Will generate the following in the config file:
[section]
key = value
The default attributes match the current upstream defaults as installed on CentOS 8 with the exception of enabling
apply_updates
. Please consult man dnf.automatic
for more available configuration options.
default['dnf-automatic']['conf']['commands']['upgrade_type'] = 'default'
default['dnf-automatic']['conf']['commands']['random_sleep'] = 0
default['dnf-automatic']['conf']['commands']['download_updates'] = 'yes'
default['dnf-automatic']['conf']['commands']['apply_updates'] = 'yes'
default['dnf-automatic']['conf']['emitters']['emit_via'] = 'stdio'
default['dnf-automatic']['conf']['email']['email_from'] = '[email protected]'
default['dnf-automatic']['conf']['email']['email_to'] = 'root'
default['dnf-automatic']['conf']['email']['email_host'] = 'localhost'
default['dnf-automatic']['conf']['command_email']['email_from'] = '[email protected]'
default['dnf-automatic']['conf']['command_email']['email_to'] = 'root'
default['dnf-automatic']['conf']['base']['debuglevel'] = 1
- Fork the repository on Github
- Create a named feature branch (like
username/add_component_x
) - Write tests for your change
- Write your change
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
- Author:: Oregon State University [email protected]
Copyright:: 2019, Oregon State University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.