GithubHelp home page GithubHelp logo

puppet-vagrant's Introduction

Pre-Requisites

  • Virtual Box 7.0 or above installed on Windows OS

Post both master and agent are provisioned run below command on agent vm

puppet ssl bootstrap

On master vm , run below command to sign the certificate for agent

sudo puppetserver ca sign --certname agent.localdomain

On agent node run again the bootstrap command

puppet ssl bootstrap

On agent run below and verify the working with below commands

puppet agent -t

facter

On master verify the puppet resource working.

puppet resource user alice

[root@puppet ~]# puppet resource user alice

user { 'alice':
  ensure   => 'absent',
  provider => 'useradd',
}

facter

Verify with module

Copy httpd folder from modules folder to master vm under folder /etc/puppetlabs/code/environments/production/modules and add file site.pp at location /etc/puppetlabs/code/environments/production/manifests with below entries.

node 'agent.localdomain' {
  class { 'httpd' :
    port    => 80,
    docroot => '/var/www/html',
  }

Run below command again on agent vm and verify its working with httpd service running and enabled.

[root@agent ~]# puppet agent -t
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for agent.localdomain
Info: Applying configuration version '1698460390'
Notice: Applied catalog in 1.02 seconds

puppet-vagrant's People

Contributors

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