IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

30 lines
941B

  1. base: freebsd-latest
  2. steps:
  3. - run:
  4. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install py37-certbot python3
  5. - mkdir -p /cookiecutter
  6. - mkdir -p /certbot/data
  7. - mkdir -p /certbot/webroot
  8. - mkdir -p /certbot/scripts
  9. - chown -R nobody:nobody /certbot
  10. - chmod 0750 /certbot
  11. - copy:
  12. - [ files/certbot.py,
  13. /certbot/scripts/certbot.py ]
  14. - [ files/crontab_nobody,
  15. /root/crontab_nobody ]
  16. - run:
  17. - crontab -u nobody /root/crontab_nobody
  18. - rm -v /root/crontab_nobody
  19. - mkdir -p /usr/local/etc/letsencrypt
  20. - mkdir -p /var/log/letsencrypt
  21. - mkdir -p /var/db/letsencrypt
  22. - chown nobody:nobody /var/log/letsencrypt
  23. - chown nobody:nobody /var/db/letsencrypt
  24. - run:
  25. - sysrc sshd_enable=NO
  26. - sysrc sendmail_enable=NONE
  27. - sysrc clear_tmp_enable=YES
  28. - sysrc syslogd_flags="-ss"