GithubHelp home page GithubHelp logo

mfg7-frks / comtrya Goto Github PK

View Code? Open in Web Editor NEW

This project forked from comtrya/comtrya

0.0 1.0 0.0 706 KB

A tool to simplify reprovisioning a fresh OS. Installs packages and manages dotfiles.

License: MIT License

Rust 100.00%

comtrya's Introduction

Comtrya

Comtrya

This is better, yes?


Warning

This tool is ridiculously early in its development. I'm building out features as I migrate my dotfiles over.

Those dotfiles can be used as a "reference" for migrating your own.

Only for early adopters and masochists.


[[TOC]]


About

Comtrya is a tool to help provision a fresh OS with the packages and configuration (dotfiles) you need to become productive again.

I'm a serial OS installer, I wipe the OS on my machines every, approx, 30 days. I've primarily relied on SaltStack to automate this, but I've grown frustrated with the mismatch between configuration management and personal provisioning.

I've also tried Ansible, Chef, Puppet, mgmt, and probably anything else you're about to suggest; they all have a flaw that makes it too cumbersome to adopt for the trivial use-case.

Getting Started

No binaries are distributed yet, please install and build with Cargo.

Prerequisites

  • Rust installed

Installation

cargo install comtrya

Usage

comtrya --manifest-directory <manifest-directory> # Directory where manifests are located [default: .]
# OR
comtrya --manifests <manifests> # Run a subset of your manifests, comma separated list

Manifests

A manifest is a collection of packages and files, and this will likely be expanded upon later. A Manifest is a logical grouping of resources that can be applied to your machine, and fetched from remote locations or local.

Actions

Actions do stuff

Packages

Single package:

actions:
  - action: package.install
    name: git

Install several packages with the list version:

actions:
  - action: package.install
    list:
      - git
      - minikube

Files

Files must be within a files directory within each manifest location.

actions:
  - action: file.copy
    from: gitconfig
    to: /Users/rawkode/gitconfig

Dependencies

depends:
  - manifest_name

What's Next?

You should take a look at the issues page (on GitLab, not GitHub) to see what's available to contribute. Below is a short list of the major features that are upcoming.

Better Output

Currently, Comtrya println!'s pretty much everything. We need to use a proper logging library to restrict the scope of the output and should provide a summary output.

Comtrya finished in 12.3s

Installed Packages: 12
Provisioned Files: 34

Async DAG

We're using petgraph to build out the graph, but we're not travesing it in a way that will allow us to concurrently execute manifests at the same depth. This is something I wish to sort out pretty soon.

Config

TODO: Allow manifest directory and variables to be configured in a Comtrya.yaml file.

Package Provider Enhancements

Currently, we execute arbitrary packager install commands. The provider spec should be enriched to support:

  • Already installed lookups
  • List refresh
  • Upgrades
  • Version pinning
  • Packager installation
    • If Homebrew doesn't exist, offer to install it
    • If Nix doesn't exist, offer to install it
    • etc

Files

Currently, files were prototyped pretty quickly. There's the ability to render and create files on a disk; we need to provide context providers to enrich the templating.

Also, symlinking only works if there's no rendering to take place; but there's no flag to encourage / enforce this.

comtrya's People

Contributors

bketelsen avatar philwelz avatar rawkode avatar

Watchers

 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.