Skip to content

blachniet/learn-puppet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learn Puppet

This setup is helping me learn more about Puppet. I learn by doing, and this is me doing Puppet.

Quickstart

  1. Start the master and node.

    cd puppetmaster
    vagrant up
    cd ../puppetnode
    vagrant up
  2. Run vagrant rsync-auto to sync files to puppetmaster.

    cd puppetmaster
    vagrant rsync-auto
  3. Sign the puppetnode certificate. Pay attention to where we are running each of these commands (master vs node).

    # Submit a certificate signing request on the node.
    [vagrant@puppetnode] sudo /opt/puppetlabs/bin/puppet agent --verbose --no-daemonize --onetime
    
    # Sign the cert on the master.
    [vagrant@puppetmaster] sudo /opt/puppetlabs/bin/puppetserver ca sign --certname puppetnode.localdomain
    
    # Confirm a successful connection on the node.
    [vagrant@puppetnode] sudo /opt/puppetlabs/bin/puppet agent --verbose --no-daemonize --onetime
    
  4. Enable the puppet agent service.

    sudo /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true

Reference

About

I'm learning Puppet!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors