Skip to content

Commit

Permalink
Add cron for yum update to cloudinit
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Pritchard committed Mar 31, 2021
1 parent 085eeaf commit ed22641
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions terraform/cloudinit/nessus_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ hostname: ${hostname}
manage_etc_hosts: true
package_upgrade: true
locale: en_GB.UTF-8
write_files:
- path: /usr/local/bin/yum-update
permissions: '0755'
content: |
#!/bin/sh
yum -y update
- path: /etc/crontab
content: |
0 7 * * * /usr/local/bin/yum-update
append: true

runcmd:
- |
cat>/usr/local/bin/nessus-cloudinit.sh<<EOF
Expand Down

0 comments on commit ed22641

Please sign in to comment.