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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
989B

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