Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Puppet

You're reading from   Mastering Puppet Mastering Puppet for network programming enables developers to pull the strings of Puppet and configure enterprise-level environments for optimum performance

Arrow left icon
Product type Paperback
Published in Jul 2014
Publisher
ISBN-13 9781783982189
Length 280 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas Uphill Thomas Uphill
Author Profile Icon Thomas Uphill
Thomas Uphill
Arrow right icon
View More author details
Toc

Using GitHub for public modules


If you have a module you wish to use that is only hosted on GitHub, (github.com is an online Git service for sharing code using Git) a good way to keep your modules organized is to create a local Git repository and make the GitHub module a submodule of your modules.

We'll start by creating a new Git repository for our public modules:

git@worker1$ git init --bare --shared=group public.git
Initialized empty shared Git repository in /var/lib/git/public.git/

Tip

If your Git user still has git-shell set as its login shell from the previous chapter, change it back to bash, as shown in the following commands:

# chsh -s /bin/bash git
Changing shell for git.
Shell changed.

The first module we will download from GitHub is puppetdb, which is a module to install and configure puppetdb. This module is available at https://github.com/puppetlabs/puppetlabs-puppetdb.

With our public repository created, we will clone the repository in another location and create a Git submodule...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime