Answer for Kodekloud DEVOPS Questions - Install Puppet Server

 The Nautilus DevOps team started experimenting with the Puppet server to manage some of their infrastructure in Stratos DC. For testing different scenarios, the team will be using jump host as puppet master. At this point we just need to install puppet server package and ensure its service is up and running. Below you can find more details about the task.

1. Install puppetserver package on jump host and start its service.

2. Before starting puppetserver service, you might need to change its memory allocation configuration. We recommend to allocating it 512m of memory.

Note: Please make sure to install puppetserver package only not any other alternate package.

Answer:

#the task needs to be performed on jump host 
# install the puppet server ( the question clearly mentioned that install puppetserver only NO need to install agent) 

# first you need to add the package to your repo by using the below command 

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

#now install puppetserver 
    
    yum -y install puppetserver 

# change its memory allocation on puppetserver  config file
    
    vi /etc/sysconfig/puppetserver

 # Modify this if you'd like to change the memory allocation, enable JMX, etc
 JAVA_ARGS="-Xms2g -Xmx2g"

Replace 2g with the amount of memory you want to allocate to Puppet Server.
 JAVA_ARGS="-Xms512m -Xmx512m".

#save the file 

# start the puppet server and check the status 

    systemctl start puppetserver 

    systemctl status puppetserver 

*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 , ...