项目作者: jfqd

项目描述 :
qutic varnish image for SmartOS
高级语言: VCL
项目地址: git://github.com/jfqd/mi-qutic-varnish.git
创建时间: 2018-03-06T18:13:01Z
项目社区:https://github.com/jfqd/mi-qutic-varnish

开源协议:MIT License

下载


mi-qutic-varnish

use jfqd/mi-qutic.base to create a provisionable image

description

A qutic varnish-image.

mdata variables

See mi-qutic-base Readme for a list of usable metadata.

installation

The following sample can be used to create a zone running a copy of the the mailserver image.

  1. IMAGE_UUID=$(imgadm list | grep 'qutic-varnish' | tail -1 | awk '{ print $1 }')
  2. vmadm create << EOF
  3. {
  4. "brand": "joyent",
  5. "image_uuid": "$IMAGE_UUID",
  6. "alias": "mx1",
  7. "hostname": "mx1.example.com",
  8. "dns_domain": "example.com",
  9. "resolvers": [
  10. "80.80.80.80",
  11. "80.80.81.81"
  12. ],
  13. "nics": [
  14. {
  15. "interface": "net0",
  16. "nic_tag": "admin",
  17. "ip": "10.10.10.10",
  18. "gateway": "10.10.10.1",
  19. "netmask": "255.255.255.0"
  20. }
  21. ],
  22. "max_physical_memory": 1024,
  23. "max_swap": 1024,
  24. "quota": 10,
  25. "cpu_cap": 100,
  26. "customer_metadata": {
  27. "admin_authorized_keys": "your-long-key",
  28. "root_authorized_keys": "your-long-key",
  29. "mail_smarthost": "mail.example.com",
  30. "mail_auth_user": "you@example.com",
  31. "mail_auth_pass": "smtp-account-password",
  32. "mail_adminaddr": "report@example.com",
  33. "munin_master_allow": "munin-master.example.com",
  34. "nagios_allow": "10.10.10.0/24"
  35. }
  36. }
  37. EOF

The varnish vcl file can be testet with: varnishd -C -f /opt/local/etc/varnish.vcl