Giter VIP home page Giter VIP logo

puppet-freight's Introduction

#Freight

Simple module to handle freight package and configuration

##Usage

Simple case

class {'freight':
    config_gpgkey => '[email protected]',
}

Expert case

class {'freigh':
  config_gpgkey          => '[email protected]',
  config_varlib          => '/var/lib/freight',
  config_varcache        => '/var/cache/freight',
  config_origin          => 'Freight',
  config_label           => 'Freight',
  config_cache           => true,
  config_gpg_digest_algo => 'SHA512',
  config_symlinks        => true,

  install_ensure         => 'present',

  manage_install         => true,
  manage_config          => true,
}

The manage_install set to false will skip the package installation while the manage_config set to false will skip the config file creation. If you do set those value to false, it is up to you to call ::freight::config and ::freight::install.

##Pacakge source

This module does not handle the source for you. It is up to you to setup your package source before calling this module. See https://github.com/freight-team/freight for more info about the package sources.

Here is an example of handling the source for Debian use the puppetlabs apt module:

  apt::key { "Add key: 30EBF4E73CCE63EEE124DD278E6DA8B4E158C569 from Apt::Source freight-repo":
    ensure      => 'persent',
    id          => '30EBF4E73CCE63EEE124DD278E6DA8B4E158C569',
    source      => 'https://swupdate.openvpn.net/repos/repo-public.gpg',
  }

  apt::source { 'freight-repo':
    ensure   => 'present',
    location => 'http://build.openvpn.net/freight_team',
    release  => $::lsbdistcodename, #wheezy or jessie or whatever the codename of the distribution is.
    repos    => 'main',
    require  => Apt::Key["Add key: 30EBF4E73CCE63EEE124DD278E6DA8B4E158C569 from Apt::Source freight-repo"]
  }

The reason we don't handle the source directly in the module is because every user has their own way of handling the package source and it would be a shame to enforce source handling in a way that would conflict with the way other user handles package sources.

puppet-freight's People

Contributors

nvanheuverzwijn avatar

Watchers

James Cloos avatar  avatar Yannick Paquette avatar

Forkers

kasunda

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.