Skip to content

jfqd/mi-qutic-varnish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

IMAGE_UUID=$(imgadm list | grep 'qutic-varnish' | tail -1 | awk '{ print $1 }')
vmadm create << EOF
{
  "brand":      "joyent",
  "image_uuid": "$IMAGE_UUID",
  "alias":      "mx1",
  "hostname":   "mx1.example.com",
  "dns_domain": "example.com",
  "resolvers": [
    "80.80.80.80",
    "80.80.81.81"
  ],
  "nics": [
    {
      "interface": "net0",
      "nic_tag":   "admin",
      "ip":        "10.10.10.10",
      "gateway":   "10.10.10.1",
      "netmask":   "255.255.255.0"
    }
  ],
  "max_physical_memory": 1024,
  "max_swap":            1024,
  "quota":                 10,
  "cpu_cap":              100,
  "customer_metadata": {
    "admin_authorized_keys": "your-long-key",
    "root_authorized_keys":  "your-long-key",
    "mail_smarthost":        "mail.example.com",
    "mail_auth_user":        "you@example.com",
    "mail_auth_pass":        "smtp-account-password",
    "mail_adminaddr":        "report@example.com",
    "munin_master_allow":    "munin-master.example.com",
    "nagios_allow":          "10.10.10.0/24"
  }
}
EOF

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

About

qutic varnish image for SmartOS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published