GithubHelp home page GithubHelp logo

isabella232 / computology-packagecloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from computology/computology-packagecloud

0.0 0.0 0.0 55 KB

Puppet module for packagecloud.io

License: Apache License 2.0

Ruby 57.90% Puppet 39.96% HTML 2.14%

computology-packagecloud's Introduction

packagecloud

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with packagecloud
  4. Usage - Configuration options and additional functionality
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Overview

This is the packagecloud.io puppet module which allows you to easily get public and private packagecloud.io repositories installed on your infrastructure.

Module Description

This is the packagecloud.io puppet module which allows you to easily get public and private packagecloud.io repositories installed on your infrastructure.

Setup

What packagecloud affects

  • The packagecloud module will:
    • install apt-transport-https or pygpgme as appropriate for the underlying system
    • add the packagecloud.io gpg key for verifying repository metadata
    • add apt or yum repos to the system by creating the necessary files under /etc/apt/sources.list.d/ and /etc/yum.repos.d/, respectively

Beginning with packagecloud

Simply install the packagecloud puppet module and you will be able to use the packagecloud::repo resource in your manifests:

packagecloud::repo { 'username/publicrepo':
  type => 'rpm',
}

packagecloud::repo { 'username/privaterepo':
  type => 'deb',
  master_token => 'eae123bca276162f376b9614ba134fa7993624a8de0bb3a2',
}

packagecloud: enterprise users can specify the host and port by setting server_address:

packagecloud::repo { 'username/privaterepo':
  type => 'deb',
  master_token => 'eae123bca276162f376b9614ba134fa7993624a8de0bb3a2',
  server_address => 'http://my.internal.server.domain:1234/',
}

If you need to install more than one type of package from the same repository (for example, gem and deb files from username/publicrepo) you can use the fq_name parameter:

packagecloud::repo { 'deb repository for blah':
  fq_name => "username/blah",
  type => 'rpm',
}

packagecloud::repo { 'gem repository for blah':
  fq_name => "username/blah",
  type => 'gem',
}

In order to properly use Gem repos, be sure to set your Exec path to include the directory where your gem binary is located. For example, in your site.pp:

Exec {
  path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ]
}

Usage

As in the examples show in the above section, you should specify at least type (which can be either deb, rpm, or gem) and optionally master_token if the repository is private.

Limitations

Currently supports the following operating systems:

  • Redhat Enterprise Linux 5 and 6
  • CentOS 5 and 6
  • Scientific Linux 5 and 6
  • Fedora 14 - 20
  • AWS Linux
  • Ubuntu 4.10 - 14.04
  • Debian 4.0 - 8.0

Development

Pull requests are welcome!

Release Notes/Contributors/Etc

Special thanks to Eric Lindvall for help with puppet.

computology-packagecloud's People

Contributors

alexsacr avatar colinhebert avatar ice799 avatar igalic avatar mmonaco avatar petems avatar t0xiccode avatar

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.