Giter Site home page Giter Site logo

vishal815 / puppet_master_and_puppet_slave_setup_on_aws Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 11.0 15 KB

Video link for Simplify your Puppet Master and Puppet slave setup on AWS with these straightforward commands.

Home Page: https://www.youtube.com/watch?v=bMBue_LOW7g&t=578s

aws certificate-request ec2 manifests puppet puppet-master puppet-module setup

puppet_master_and_puppet_slave_setup_on_aws's Introduction

Puppet Master and Puppet Agent Setup on AWS

This guide will help you set up a Puppet Master and Puppet Agent (or Puppet Node) on Amazon Web Services (AWS) using straightforward commands. This setup allows you to manage configurations and automate tasks on your nodes using Puppet.

MY Video link:- https://www.youtube.com/watch?v=bMBue_LOW7g&t=578s

Puppet Master Setup

Modify the Puppet Master's hosts file

sudo nano /etc/hosts

Add the following line:

<Puppet_Master_Private_IP> puppet

p1

Download and install the Puppet Master packages

curl -O https://apt.puppetlabs.com/puppet6-release-bionic.deb
sudo dpkg -i puppet6-release-bionic.deb
sudo apt-get update
sudo apt-get install puppetserver -y

Add changes

sudo nano /etc/default/puppetserver
JAVA_ARGS = "-Xms512m -Xms512m"

Allow traffic on port 8140

sudo ufw allow 8140

Configure and start Puppet Master

sudo systemctl enable puppetserver.service
sudo systemctl start puppetserver.service

Verify the version of Puppet Master

sudo systemctl status puppetserver.service

Puppet Agent Setup

Modify the Puppet Agent's hosts file

sudo nano /etc/hosts

Add the following line:

<Puppet_Master_Private_IP> puppet

Download and install the Puppet Agent packages

curl -O https://apt.puppetlabs.com/puppet6-release-bionic.deb
sudo dpkg -i puppet6-release-bionic.deb
sudo apt-get update
sudo apt-get install puppet-agent -y

Enable and restart the Puppet Agent service

sudo systemctl enable puppet
sudo systemctl restart puppet
sudo systemctl status puppet

Signing Certificates on the Puppet Master

List certificate requests

sudo /opt/puppetlabs/bin/puppetserver ca list

Sign a specific certificate request

sudo /opt/puppetlabs/bin/puppetserver ca sign --certname <Agent_CertName>

ss

Applying Manifests on Puppet master

Create a Puppet manifest file

sudo nano /etc/puppetlabs/code/environments/production/manifests/site.pp

Add content like the following example:

file { '/tmp/puppet_test.txt':
  ensure => present,
  mode   => '0644',
  content => "Hello from Puppet master (Welcome to puppet testing with vishal.) to agent on IP address ${ipaddress_eth0}\n",
}

Trigger Puppet Agent to apply the changes (run on puppet Agent)

sudo /opt/puppetlabs/bin/puppet agent --test

Check the content of the test file (run on puppet Agent)

sudo cat /tmp/puppet_test.txt

๐Ÿ‘‰

download PPT for All command.

Congratulations! Your Puppet Master and Puppet Agent are now set up and running. You've tested the configuration to ensure everything is working smoothly.

Puppet-Cheat-Sheet (1)-PhotoRoom

chef-vs-puppet-vs-ansible-what-are-the-differences-it-infographic

Happy learning!

puppet_master_and_puppet_slave_setup_on_aws's People

Contributors

vishal815 avatar

Stargazers

 avatar

Watchers

 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.