GithubHelp home page GithubHelp logo

optionalg / puppet-masterless Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tazjin/puppet-masterless

0.0 2.0 0.0 7 KB

A simple skeleton/template for a masterless Puppet setup using systemd.

License: MIT License

Ruby 13.58% Puppet 60.41% Shell 26.01%

puppet-masterless's Introduction

Masterless Puppet with systemd

This repository is intended as a sort of "template" for masterless Puppet setups on systemd-based distributions. This exact setup has been used on CentOS, but it should work on many other distributions (such as Debian >= 8) as well.

This setup is opinionated and requires that the infrastructure adheres to things such as a strict naming schema and version-controlled Puppet manifests in a git repository.

Bootstrapping

To bootstrap this repository on a machine, make sure you have installed Puppet as well as librarian-puppet.

# On Debian 8+
apt-get install puppet librarian-puppet git

# On CentOS 7+ (EPEL required)
yum install epel-release git && yum install puppet
gem install librarian-puppet

Make sure that the root user has an SSH key that can access your git-repo. On BitBucket, you can use the deployment-key feature for read-only access keys.

Clone the repository using git to the destination folder, /etc/puppet. You may have to remove this folder first.

rm -rf /etc/puppet && git clone [email protected]:company/puppet.git /etc/puppet

After this, you may proceed by running Puppet manually once. This should set up everything:

puppet apply --modulepath /etc/puppet/modules /etc/puppet/manifests

You should now have a host with a masterless Puppet setup. Use this for example to create a base image that other machines can be created from.

Hostnames

Hostnames are used to determine the role of a machine. Therefore you need to stick to the strict host naming schema defined in role.rb. You may amend the regular expression in that module to fit your needs.

More documentation

Please see puppet.md for more detailed documentation on this Puppet setup.

puppet-masterless's People

Contributors

tazjin avatar

Watchers

 avatar  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.