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.

init.sls 730B

123456789101112131415161718
  1. {% raw %}
  2. apache2-config:
  3. file.blockreplace:
  4. - name: /etc/apache2/apache2.conf
  5. - append_if_not_found: True
  6. - content: |
  7. ServerName postfixadmin
  8. LogFormat "%{%Y-%m-%d %H:%M:%S}t %v:%p %h %l %u \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  9. LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %l %u \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  10. LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %l %u \"%r\" %>s %O" common
  11. apache2-config-site:
  12. file.line:
  13. - name: /etc/apache2/sites-available/000-default.conf
  14. - match: DocumentRoot .*
  15. - mode: replace
  16. - content: DocumentRoot /var/www/html/public
  17. {% endraw %}