Skip to content

Instantly share code, notes, and snippets.

@beddari
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beddari/59f91a5f274e6ae9e966 to your computer and use it in GitHub Desktop.
Save beddari/59f91a5f274e6ae9e966 to your computer and use it in GitHub Desktop.
omnibus-installer metadata format
Projects root
https://url/path/to/root
Variables:
operatingsystem=redhat,centos,fedora,ubuntu,debian,darwin
version=majorosrelease, e.g 6 or 7 for centos, 14.04 for ubuntu
arch=output of uname -s, typically x86_64
# <project>/versions.txt
# tag version
3.6 3.6.2-1
3.6.2 3.6.2-1
stable 3.6.2-1
# <project>/platforms.txt
# Lookup table for deciding which package to install
# operatingsystem version arch map
# default map is "%operatingsystem/$version/$arch"
centos 7 x86_64 el7
redhat 7 x86_64 el7
redhat 6 x86_64 el6
fedora 20 x86_64 f20
ubuntu 14.04 x86_64 trusty
# <project>/packages.txt
# map version url sha256
el6 $version https://url.to/path/puppet-omnibus-$version-$arch.rpm <sha256>
darwin 3.6.2-1 https://url.to/path/puppet-omnibus-3.6.2-1-darwin_$arch.pkg <sha256>
E.g a minmal valid project with no sha256
puppet/packages.txt:
redhat/6/x86_64 3.6.2 https://url.to/path/puppet-omnibus-3.6.2-1.x86_64.rpm
or with
redhat/6/x86_64 3.6.2 https://url.to/path/puppet-omnibus-3.6.2-1.x86_64.rpm <sha256sum>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment