Giter Club home page Giter Club logo

specinfra-1's Introduction

libspecnfra

What is this

Libspecinfra is a project to make the alternative of specinfra gem by Rust.

Specinfra gem is a base library of serverspec .

Specinfra gem is made of Ruby, so you cannot call the functions of specinfra from other languages.

Libspecinfra project will provide binary library and language bindings to call this library. So you will be able to call the functions of specinfra from many languages.

This project is in the phase of very beginning. If you have comments, questions and so on, feel free to post comments in GitHub Issues.

Here is the Japanese post about this project.

Language bindings

We provide only Ruby and mruby bindings currently.

Other languages will be supported.

Sample code

This is a sample mruby code to get the permission of /etc/passwd of local host:

b = Libspecinfra::Backend::Direct.new()
s = Libspecinfra::Specinfra.new(b)
f = s.file("/etc/passwd")

printf("%#o", f.mode)

This is a sample mruby code to get the permission of /etc/passwd via SSH:

b = Libspecinfra::Backend::SSH.new("localhost")
s = Libspecinfra::Specinfra.new(b)
f = s.file("/etc/passwd")

printf("%#o", f.mode)

Other language examples are here .

TODO

Resources

Resources should be implemented. These resources are picked up from Resource Types of Serverspec . So some resources are implemented in serverspec, not in specinfra.

  • bond
  • bridge
  • cgroup
  • command
  • cron
  • default gateway
  • docker container
  • docker image
  • file
  • group
  • host
  • iis app pool
  • iis website
  • interface
  • ip6tables
  • ipfilter
  • ipnat
  • iptables
  • kernel module
  • linux audit system
  • linux kernel parameter
  • lxc
  • mail alias
  • mysql config
  • package
  • php config
  • port
  • ppa
  • process
  • routing table
  • selinux
  • selinux module
  • service
  • user
  • x509_certificate
  • x509_private_key
  • windows_feature

Platforms

Platforms should be implemented. Specinfra gem supports these platforms.

  • AIX
  • Alpine Linux
  • Amazon Linux
  • Arch Linux
  • CoreOS
  • Cumulus Linux
  • MacOS(Darwin)
  • Debian Linux
  • elementary OS
  • EOS(Arista)
  • VMWare ESXi
  • Fedora
  • FreeBSD
  • Gentoo Linux
  • Linux MInt
  • NixOS
  • OpenBSD
  • openSUSE
  • Plamo Linux
  • Poky(Yokto)
  • Redhat Linux
  • SUSE Linux Enterprise Server
  • SmartOS
  • Solaris
  • SuSE Linux
  • Ubuntu
  • Windows

Backends

Backends should be implemented. Specinfra gem supports these backends.

  • CMD(Windows)
  • Docker
  • Exec
  • jexex
  • LXC
  • SSH
  • Telnet
  • WinRM

specinfra-1's People

Contributors

mizzy avatar pocket7878 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.