gem mirror – gemirro


Gemirro is a Ruby application that makes it easy way to create your own RubyGems mirror without having to push or write all gem you wanted in a configuration file. It does mirroring without any authentication and you can add your private gems in the gems directory. More, to mirroring a source, you only need to start the server, and gems will automaticly be downloaded when needed.

Gemirro will start on port 2000. I should proxy it via nginx.

Install the gem gemirro:

gem install gemirro

Create your mirror:

gemirro init /srv/mirror/gems/

Create a gemirro index:

gemirro index

Start the server:

gemirro server --start

Show the status:

gemirro server --status

Stop the server:

gemirro server --stop

Start the server with a http/s proxy:

https_proxy="" gemirro server --start

Github gemirro

chef knife-preflight logo

A preflight plugin for Chef::Knife which lets you see which nodes and roles use a particular cookbook before you upload it.

Edit your path. For example in zsh:

vi ~/.zshrc

export PATH

Install the knife-preflight gem:

chef gem install knife-preflight

Now you can see which nodes and roles use a particular cookbook:

knife preflight users::safematix

knife-preflight on github

OpenBSD chef client

OpenBSD chef client

If you like to install chef client on OpenBSD, you must install ruby on it:

pkg_add ruby
quirks-2.114 signed on 2015-08-09T11:57:52Z
Ambiguous: choose package for ruby
a       0: 
        1: ruby-
        2: ruby-
        3: ruby-
        4: ruby-2.1.6p0
        5: ruby-2.2.2p0
Your choice: 5
ruby-2.2.2p0:libffi-3.1p0: ok
ruby-2.2.2p0:libyaml-0.1.6p1: ok
ruby-2.2.2p0:gmp-5.0.2p3: ok
ruby-2.2.2p0: ok
--- +ruby-2.2.2p0 -------------------
If you want to use this package as your default system ruby, as root
create symbolic links like so (overwriting any previous default):
 ln -sf /usr/local/bin/ruby22 /usr/local/bin/ruby
 ln -sf /usr/local/bin/erb22 /usr/local/bin/erb
 ln -sf /usr/local/bin/irb22 /usr/local/bin/irb
 ln -sf /usr/local/bin/rdoc22 /usr/local/bin/rdoc
 ln -sf /usr/local/bin/ri22 /usr/local/bin/ri
 ln -sf /usr/local/bin/rake22 /usr/local/bin/rake
 ln -sf /usr/local/bin/gem22 /usr/local/bin/gem

Now install chef client:

gem install chef