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.

35 lines
1.3KB

  1. base: freebsd-latest
  2. steps:
  3. - run:
  4. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install python3 nginx py37-cookiecutter
  5. - copy:
  6. - [ ../files/cookiecutter.json,
  7. /root/cookiecutter.json ]
  8. - [ files/nginx.conf,
  9. /root/nginx.conf ]
  10. - [ ../files/crontab_root,
  11. /root/crontab_root ]
  12. - run:
  13. - mkdir -p /root/nginx_template/\{\{cookiecutter.directory_name\}\}
  14. - mv -v /root/nginx.conf /root/nginx_template/\{\{cookiecutter.directory_name\}\}/nginx.conf
  15. - mv -v /root/cookiecutter.json /root/nginx_template/cookiecutter.json
  16. - run:
  17. - cookiecutter --no-input /root/nginx_template
  18. - mv -v ./nginx_conf/nginx.conf /usr/local/etc/nginx/nginx.conf
  19. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg remove python3 py37-cookiecutter
  20. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg autoremove
  21. - rm -rvf /root/nginx_template
  22. - rm -rvf ./nginx_conf
  23. - mkdir -p /usr/local/etc/letsencrypt
  24. - mkdir -p /certbot/webroot
  25. - run:
  26. - sysrc nginx_enable=YES
  27. - crontab -u root /root/crontab_root
  28. - rm -v /root/crontab_root
  29. - run:
  30. - sysrc sshd_enable=NO
  31. - sysrc sendmail_enable=NONE
  32. - sysrc clear_tmp_enable=YES
  33. - sysrc syslogd_flags="-ss"