Module: FalkorLib::Config::Bootstrap

Defined in:
lib/falkorlib/bootstrap/base.rb

Overview

Default configuration for Bootstrapping processes

Constant Summary collapse

DEFAULTS =
{
  :gitcrypt => {
    :owner    => `git config user.signingKey`.chomp,
    :subkeys  => [],
    :hooksdir => 'config/hooks',
    :hook     => 'pre-commit.git-crypt.sh',
    :ulhpc    => [
      #'0x5D08BCDD4F156AD7',  # S. Varrette
      '0x37183CEF550DF40B',   # H. Cartiaux
      '0x7E1457DB75803F41',   # T. Valette
      '7F883C928BC48E98',     # A. Olloh
    ],
    # :hooks    => {
    #   :precommit => 'https://gist.github.com/848c82daa63710b6c132bb42029b30ef.git',
    # },
  },
  :motd => {
    :file     => 'motd',
    :hostname => `hostname -f`.chomp,
    :title    => "Title",
    :desc     => "Brief server description",
    :support  => `git config user.email`.chomp,
    :width    => 80
  },
  :latex => {
    :name     => '',
    :author   => `git config user.name`.chomp,
    :mail     => `git config user.email`.chomp,
    :title    => 'Title',
    :subtitle => 'Overview and Open Challenges',
    :image    => 'images/logo_ULHPC.pdf',
    :logo     => 'images/logo_UL.pdf',
    :url      => 'http://csc.uni.lu/sebastien.varrette'
  },
  :letter => {
    :author_title    => 'PhD',
    :institute       => 'University of Luxembourg',
    :department      => 'Parallel Computing and Optimization Group',
    :department_acro => 'PCOG',
    :address         => '2, avenue de l\'Université',
    :zipcode         => 'L-4365',
    :location        => 'Esch-sur-Alzette, Luxembourg',
    :phone           => '(+352) 46 66 44 6600',
    :twitter         => 'svarrette',
    :linkedin        => 'svarrette',
    :skype           => 'sebastien.varrette',
    :scholar         => '6PTStIcAAAAJ'
  },
  :metadata => {
    :name         => '',
    :type         => [],
    :by           => (ENV['USER']).to_s,
    :author       => `git config user.name`.chomp,
    :mail         => `git config user.email`.chomp,
    :summary      => "rtfm",
    :description  => '',
    :forge        => '',
    :source       => '',
    :project_page => '',
    :origin       => '',
    :license      => '',
    :issues_url   => '',
    :tags         => []
  },
  :trashdir => '.Trash',
  :types    => [ :none, :latex, :gem, :octopress, :puppet_module, :rvm, :pyenv ],
  :licenses => {
    "none"       => {},
    "Apache-2.0" => {
      :url  => "http://www.apache.org/licenses/LICENSE-2.0",
      :logo => "https://www.apache.org/images/feather-small.gif"
    },
    "BSD" => {
      :url  => "http://www.linfo.org/bsdlicense.html",
      :logo => "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/License_icon-bsd.svg/200px-License_icon-bsd.svg.png"
    },
    "CC-by-nc-sa" => {
      :name => "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International",
      :url  => "http://creativecommons.org/licenses/by-nc-sa/4.0",
      :logo => "https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png"
    },
    "GPL-2.0" => {
      :url  => "http://www.gnu.org/licenses/gpl-2.0.html",
      :logo => "https://licensebuttons.net/l/GPL/2.0/88x62.png"
    },
    "GPL-3.0" => {
      :url  => "http://www.gnu.org/licenses/gpl-3.0.html",
      :logo => "https://www.gnu.org/graphics/gplv3-88x31.png"
    },
    "LGPL-2.1" => {
      :url  => "https://www.gnu.org/licenses/lgpl-2.1.html",
      :logo => "https://licensebuttons.net/l/LGPL/2.1/88x62.png"
    },
    "LGPL-3.0" => {
      :url  => "https://www.gnu.org/licenses/lgpl.html",
      :logo => "https://www.gnu.org/graphics/lgplv3-88x31.png"
    },
    "MIT" => {
      :url  => "http://opensource.org/licenses/MIT",
      :logo => "http://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/License_icon-mit-2.svg/200px-License_icon-mit-2.svg.png"
    }
  },
  :puppet => {},
  :forge => {
    :none   => { :url => '', :name => "None" },
    :gforge => { :url => 'gforge.uni.lu', :name => 'GForge @ Uni.lu' },
    :github => { :url => 'github.com',    :name => 'Github', :login => (`whoami`.chomp.capitalize).to_s },
    :gitlab => { :url => 'gitlab.uni.lu', :name => 'Gitlab @ Uni.lu', :login => (`whoami`.chomp.capitalize).to_s }
  },
  :vagrant => {
    :os     => :centos7,
    :ram    => 1024,
    :vcpus  => 2,
    :domain => 'vagrant.dev',
    :range  => '10.10.1.0/24',
    :boxes => {
      :centos8  => 'generic/centos8', #'centos/8' is having issue - see https://github.com/dotless-de/vagrant-vbguest/issues/367
      :centos7  => 'centos/7',
      :debian8  => 'debian/contrib-jessie64',
      :ubuntu14 => 'ubuntu/trusty64'
    },
  }
}