Code Monkey home page Code Monkey logo

ruby-infra-recipe's Introduction

ruby-infra-recipe

Usage

Prepare environment for hocho apply

(some of them are to be automated using hocho)

  1. Add the ssh configuration to ~/.ssh/config for your machine as follows. The Host <ip address> is used as an argument of the hocho apply later.

    Host debian.rubyci.org
      User=<user>
      IdentityFile <path to key>
    
  2. Install curl, git and rsync commands in the target VM server.

  3. Add the NOPASSWD option to /etc/sudoers for your logined user in the target VM server.

RHEL

You should enable CodeReady Linux Builder repository.

sudo yum-config-manager --enable codeready-builder-for-rhel-9-rhui-rpms

You can confirm these repos with the following command.

sudo yum repolist --all

OpenBSD

(to be automated using hocho)

doas pkg_add rsync
doas pkg_add bash
doas pkg_add sudo # then add NOPASSWD to /etc/sudoers

Funtoo

# Try adding `package 'eix'` before all other `package` next time
sudo emerge eix
sudo eix-update # to be automated too

Run hocho

The specified domain is equivalent with the Host <ip address> in the ~/.ssh/config.

# check if you can login
bash -cx "ssh debian.rubyci.org echo OK"

# dry-run
bin/hocho apply -n debian.rubyci.org

# apply
bin/hocho apply debian.rubyci.org

All chkbuild

# check if you can login
for i in $(bin/hosts); do bash -cx "ssh ${i} echo OK"; done

# dry-run
for i in $(bin/hosts); do bundle exec hocho apply -n "${i}"; done

# apply
for i in $(bin/hosts); do bundle exec hocho apply "${i}"; done

License

Ruby License

ruby-infra-recipe's People

Contributors

eregon avatar hsbt avatar ioquatix avatar jemmaissroff avatar jeremyevans avatar junaruga avatar k0kubun avatar kddnewton avatar knu avatar mame avatar peterzhu2118 avatar shyouhei avatar soutaro avatar tenderlove avatar znz 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.