cloud-init.tpl 636 B

123456789101112131415161718192021
  1. #cloud-config
  2. # TODO: This needs to be customized/fixed
  3. preserve_hostname: false
  4. hostname: ${hostname}
  5. fqdn: ${fqdn}
  6. runcmd:
  7. - echo "${fqdn}" > /etc/salt/minion_id
  8. - /bin/systemctl restart salt-minion
  9. - /bin/systemctl enable salt-minion
  10. - /bin/systemctl start amazon-ssm-agent
  11. - /bin/systemctl enable amazon-ssm-agent
  12. - /usr/sbin/aide --update --verbose=0
  13. - /bin/cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
  14. # httpd here to avoid a chicken and egg for repo server
  15. # installing it via salt state won't work because by then
  16. # the salt states could have us pointed to ourselves as the repo server
  17. packages:
  18. - httpd