latcaptain.blogg.se

Puppet agent 6.4 download ubuntu 14.04
Puppet agent 6.4 download ubuntu 14.04






  1. Puppet agent 6.4 download ubuntu 14.04 install#
  2. Puppet agent 6.4 download ubuntu 14.04 code#

Puppet agent 6.4 download ubuntu 14.04 code#

When I run this code inside a docker container I have which is running Ubuntu 14 trusty it works fine.

Puppet agent 6.4 download ubuntu 14.04 install#

Rm puppetlabs-release-pc1-"$UBUNTU_CODENAME".deb & \Īpt-get install -no-install-recommends -y puppet-agent="$PUPPET_AGENT_VERSION"-1"$UBUNTU_CODENAME" & \ PUPPET_AGENT_VERSION="1.8.3"Īpt-get install -no-install-recommends -y wget ca-certificates lsb-release & \ĭpkg -i puppetlabs-release-pc1-"$UBUNTU_CODENAME".deb & \ Above manifest, if applied successfully, will create a file at /tmp/sharadfile with file content as “This is first file created by puppet”.I have the following script which installs Puppet 4 agent. If symbol has not appeared, that means request is not signed yet,Īfter successful completion of master and agent installation, configuration and authentication, it’s time to test the setup by running a small manifest.ġ) At master, edit /etc/puppet/manifests/site.pp file and copy and paste below code, save and exit.Ĭontent => “This is first file created by puppet\n”Ģ) Go to agent and run below command. # service puppet restart (This will generate new CSR and send it to the master)Īfter successful signing of request, there should appear a + symbol as shown below. # rm -rf /var/lib/puppet/ssl (This command will delete previously generated requests)

puppet agent 6.4 download ubuntu 14.04 puppet agent 6.4 download ubuntu 14.04

The request initially shows without + symbol in the beginning representing that the request has been received but not yet signed,ģ.a) If the request is received, we need to sign the request using following command,ģ.b) If request is not visible on the master, then go to agent and check all the configurations from the beginning, correct the errors (if any) and then again run following command,

puppet agent 6.4 download ubuntu 14.04

It will generate a CSR (certificate signing request) in /var/lib/pupet/ssl/ and send it to master.ģ) At master node, check if request from the agent is received or not using following command. The certificate will be generated with the certname defined in nf.Ģ) At agent node, start the puppet service. When service is started, it will generate a self signed certificate inside /var/lib/puppet/ssl/ using which it will authenticate all the agents. Steps involved in signing an agent’s request by Puppet master are as listed below,ġ) Start the puppet master service. Master will work as CA (Certificate Authority) server (if standalone CA server does not exist in the network) and it will generate self signed certificate using which all the agents will be authenticated. The default certificate directory for both puppet master and puppet agent is /var/lib/puppet/ssl. For this purpose, edit /etc/puppet/nf and add the following line under section,īy default puppet agent is not configured to start, So, At puppet agent, also edit /etc/default/puppet and set start = yes.Īfter successful configuration of master and agent, we need to perform SSL authentication for master and agent. # sudo touch /etc/puppet/manifests/site.ppĪfter agent is installed, it must be informed about its master. We will add following line in block of configuration file,Ĭreate an empty file with the name site.pp at location /etc/puppet/manifests/ because it is the default manifest file that is applied on agents. # sudo dpkg -i bĪfter installing master, we need to make some configuration changes in /etc/puppet/nf file. The /etc/hosts file should look similar to one below, Hostnames are required for SSL authentication that we will discuss further.Ģ) Edit /etc/hostname, delete previous entry and add new hostname to this file (on both master and agent).ģ) Edit /etc/hosts and add entries of both master and agent ip addresses corresponding to their hostnames. Stepwise setup of master and agent is given below:ġ) First of all, set hostname as for puppet master and for puppet agent (prefer to use FQDN). AWS EC2 instances have been used for this setup. It is written in ruby and uses DSL (Domain specific language) to write codes known as Manifests to perform various administration tasks at thousands of nodes according to their requirement.įor this test environment, two ubuntu 14.04 machines are required, one of them has to be configured as master and the other one as agent. Puppet is an open source configuration management tool used for automation of administration jobs across big server farms. This blog post focuses on installation and configuration of two node Puppet setup, i.e.








Puppet agent 6.4 download ubuntu 14.04