Answer for Kodekloud DEVOPS Questions --Install Puppet agent

 The Nautilus DevOps team to would like to set up a Puppet agent mode to manage their infrastructure in Stratos DC. For testing they are trying to install and set up Puppet agent package on App Server 3. Please find below more details about the task to proceed further.

1. Install puppet agent on App Server 3 also start its service.


Sample Answer: 

#login to the given app server 

    ssh <user>@<app-server>

#switch to root user ( or you can execute commands with "sudo" in front)


    sudo su

#Install a release package to enable Puppet Platform repositories. (it should be base on the OS version)


    rpm -Uvh https://yum.puppet.com/puppet5-release-el-7.noarch.rpm


#install puppet agent


    yum -y install puppet-agent


#starting puppet agent

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

#status
 
    systemctl status puppet

*Please comment on this post if you have any questions or facing any issues in the above steps, also provide your feedback in the comments :)

Note: **The Question copied it for learning purposes.** Commands are correct but based on your question the server, user name, and other details might differ, so please do check.

    

No comments:

Post a Comment

Featured Post

Answer for Kodekloud DEVOPS Questions - Init container in Kubernetes

Question: 1. Create a Deployment named as ic-deploy-devops. 2. Configure spec as replicas should be 1 , labels app should be ic-devops , ...