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
   ],
    # :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_ANSSI.png',
    :logo     => 'images/logo_RF.png',
    :url      => 'http://cyber.gouv.fr'
  },
  :letter => {
    :author_title    => 'PhD',
    :institute       => 'French National Cybersecurity Agency (ANSSI)',
    :department      => 'Laboratoire Architectures Matérielles et logicielles',
    :department_acro => 'LAM',
    :address         => '51, boulevard de La Tour-Maubourg',
    :zipcode         => '75007',
    :location        => 'Paris, France',
    :phone           => '(+33) n/a',
    :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, :vagrant, :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" },
    :github => { :url => 'github.com', :name => 'Github', :login => (`whoami`.chomp.capitalize).to_s },
    :gitlab => { :url => 'gitlab.com', :name => 'Gitlab', :login => (`whoami`.chomp.capitalize).to_s }
  },
  :vagrant => {
    :os     => :debian12,
    :ram    => 1024,
    :vcpus  => 2,
    :domain => 'vagrant.dev',
    :range  => '192.168.56.0/21',
    :provider => 'virtualbox',
    :boxes => {
      :debian12        => 'generic/debian12',
      :debian12_uefi   => 'ncrmro/debian-bookworm64-uefi',
      :almalinux9      => 'almalinux/9',
      :almalinux8      => 'almalinux/8',
      :almalinux8_uefi => 'almalinux/8.uefi',
      :rockylinux8     => 'rockylinux/8',
      :centosstream8   => 'centos/stream8',
      :ubuntu22        => 'ubuntu/jammy64',
      :ubuntu20        => 'ubuntu/focal64',
      :fedora38        => 'generic/fedora38',
      :archlinux       => 'archlinux/archlinux'
    },
  }
}