Giter VIP home page Giter VIP logo

mi-dsapid's Introduction

mi-dsapid

Use joyent/mibe to create a provisionable image

description

SmartOS image server.

Image upload

Ensure that the /tmp space (tmpfs) is big enough to hold the uploaded image.

curl -v -u your-secure-admin-token: https://10.10.10.10/api/upload -F manifest=@/opt/mibe/images/qutic-base-17.3.1-dsapi.dsmanifest  -Ffile=@/opt/mibe/images/qutic-base-17.3.1.zfs.gz

mdata variables

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

installation

The following sample can be used to create an image server.

IMAGE_UUID=$(imgadm list | grep 'qutic-base-64' | tail -1 | awk '{ print $1 }')
vmadm create << EOF
{
  "brand":      "joyent",
  "image_uuid": "$IMAGE_UUID",
  "alias":      "dsapid-server",
  "hostname":   "dsapid.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,
  "tmpfs":               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":        "[email protected]",
    "mail_auth_pass":        "smtp-account-password",
    "mail_adminaddr":        "[email protected]",
    "munin_master_allow":    "munin-master-ip",
    "admin_upload_token":    "your-secure-admin-token",
    "nginx_ssl":             "certificat-with-encoded-linebreaks",
    "vfstab":                "storage.example.com:/export/smartos-images    -       /data    nfs     -       yes     rw,bg,intr"
  }
}
EOF

mi-dsapid's People

Contributors

jfqd avatar merlindmc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.