Code Monkey home page Code Monkey logo

smartos_globalzone's Introduction

SmartOS Global Zone scripts

This repository contains script to automate the setup of SmartOS Global Zones.

transfer_to_gz.sh copies features (subfolders) to /opt/custom. E.g. ./transfer_to_gz.sh 192.168.114.130 ssh_authorized_keys snaptransfer/ copies the content of the folders ssh_authorized_keys, and snaptransfer to /opt/custom on 192.168.114.130.

   | transfer_to_gz.sh
   |
   +- ipfilter        <-- package name
      +- ipfilter     <-- gets copied to /opt/custom
         + ipf.conf
      +- runonce.sh    <-- will be run after the package contents has been copied over

Provided packages

ipfilter

Installs ipfilter rules that prohibit any non-ssh network access to the gz.

setup_ssh

Copies all from setup_ssh/setup_ssh/root.ssh into ~/root/.ssh on every boot of the zone. authorized_keys is also copied into /usbkey/config.inc, this makes SmartOS use it. This is achieved by running an SMF service (svc:/ssh-key-import-atboot:default) on each boot.

please make sure, that the key in authorized_keys is your key, not my key!

msmtp

Provides a custom build of msmtp without SSL support, which would use OpenSSL, which in turn is not available in the GZ. Installed as /opt/custom/msmtp/msmtp.

snaptransfer

Periodically take ZFS snapshots, and send them to a backup host. Basically a mesh up of a patched version of zfSnap, zxfer, and snapxfer.

Backup Configuration

The backup host, the source, and the target volume is configured in the snapxfer script.

Crontab

An SMF service installs a root crontab defined here.

smartos_globalzone's People

Contributors

neuhalje avatar

Stargazers

Corrado Primier avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

smartos_globalzone's Issues

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.