GithubHelp home page GithubHelp logo

smf-crate's Introduction

smf-crate

A Clojure library designed to work with pallet to create an smf file. It is specifically used with smartos but hopefully will work for other Solaris based OSes as well. It is inspired by manifold.

Continuous Integration Status

Build Status

Usage

Artifacts are released to Clojars. If you are using Maven, add the following definition to your pom.xml:

<repository>
 <id>clojars.org</id>
 <url>http://clojars.org/repo</url>
</repository>

The Most Recent Release

With Leiningen

   [org.clojars.strad/smf-crate "0.1.0"]

With Maven

   <dependency>
      <groupId>org.clojars.strad</groupId>
      <artifactId>smf-crate</artifactId>
      <version>0.1.0</version>
   </dependency>
  (def smf-data (create-smf "<category>" "<name of service>" "<version>" "run command" "user" "group"))
  (install-smf-service session smf-data "<remote location of smf file>" <true|false>) 
  ;; Please see the source code for options that can be passed in and overridden
  ;; for smf-data.
  ;; Also note that the true or false parameter for install-smf-service 
  ;; represents whether to remove the
  ;; temporary file on exit of the application or not.

Live test

To run the live-test sample you will need to do the following...

  • Create a local smartos image where root can log in to it.
  • Update your ~/pallet/config.clj to have the following
{:datacenter {:provider "node-list"
	:node-list [["<machine-name>" "smartos-testing" 
			"<ip address>" :smartos]]
        }
}
  • Run the test with
lein with-profile live-test test :live-test

License

Copyright © 2013 Ryan Stradling

Distributed under the Eclipse Public License, the same as Clojure.

smf-crate's People

Contributors

rstradling avatar

Stargazers

Anthony Marcar avatar

Watchers

James Cloos avatar

Forkers

moocar

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.