Code Monkey home page Code Monkey logo

gobble's Introduction

Gobble: Like Ansible but in Go

What is Gobble?

Gobble is a config management tool like Ansible but written in Go. It is designed to be simple and easy to use.

Installation

Mac

brew install sikalabs/tap/gobble

Linux

curl -fsSL https://raw.githubusercontent.com/sikalabs/gobble/master/install.sh | sudo sh

Using slu

slu install-bin gobble

Example Usage

Create gobblefile.yml

meta:
  schema_version: 3
global:
  no_strict_host_key_checking: true
  vars:
    prefix: '[gobble]'
    msg: Global Gobble!
hosts:
  all:
    - ssh_target: [email protected]
      vars:
        ip: gobble-example.sikademo.com
        msg: Host Gobble!
plays:
  - name: Install Nginx
    hosts: [all]
    sudo: false
    tags: [setup]
    tasks:
      - name: Install Nginx
        apt_install:
          name: nginx
  - name: Index.html
    hosts: [all]
    sudo: false
    tags: [content]
    tasks:
      - name: Create index.html
        template:
          path: /var/www/html/index.html
          template: <h1>{{- if .Vars.prefix -}}{{.Vars.prefix}} {{ end -}}{{.Vars.msg}}</h1>{{ printf "\n" }}
  - name: See
    hosts: [all]
    sudo: false
    tags: [content]
    tasks:
      - name: See
        print:
          template: |
            See: http://{{.Vars.ip}}

Run

gobble run

gobble's People

Contributors

ondrejsika avatar kaplan-michael avatar

Stargazers

 avatar Jozef Vojtek avatar Vojtěch Mareš avatar

Watchers

Martin Jurco avatar

Forkers

kaplan-michael

gobble's Issues

gobble exec

gobble exec <target> -- <command>

example

gobble exec all -- slu ib consul

Add .gobble.state.json

Gobble can use optional state like Terraform. Use to apply steps only once. Enabled by default.

ssh_password doesn't work for SCP commands

The template task in Gobble requires a user prompt for the SSH password, as Gobble does not propagate the SSH password into the scp command. I suspect that the cp task might have the same issue.

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.