Skip to content

Commit

Permalink
add / configure yum-cron
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed May 18, 2022
1 parent 8260fd1 commit 8e3f9e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloudinit/bastion_host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ runcmd:
- systemctl enable fail2ban
- systemctl restart fail2ban

# configure yum-cron
- yum install -y yum-cron
- systemctl start yum-cron
- systemctl enable yum-cron
- sed -i 's/^apply_updates.*/apply_updates = yes/g' /etc/yum/yum-cron.conf
- sed -i 's/^random_sleep.*/random_sleep = 0/g' /etc/yum/yum-cron.conf

# config SELinux Network access
- setsebool httpd_can_network_connect on -P

Expand Down

0 comments on commit 8e3f9e9

Please sign in to comment.