- Virtual Box 7.0 or above installed on Windows OS
puppet ssl bootstrap
sudo puppetserver ca sign --certname agent.localdomain
puppet ssl bootstrap
puppet agent -t
facter
puppet resource user alice
[root@puppet ~]# puppet resource user alice
user { 'alice':
ensure => 'absent',
provider => 'useradd',
}
facter
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