Puppet First Steps: How To Install A Puppetmaster With A puppetclient
Download File ->->->-> https://fancli.com/2t4NYR
6. Create /etc/puppet/puppetdb.conf with the following content[root@puppetmaster ~]# cat /etc/puppet/puppetdb.conf[main]server = puppetmasterport = 8081soft_write_failure = false
There are a variety of ways to install open source Puppet. We will use the debian package called puppetmaster-passenger, which is provided by Puppet Labs. The puppetmaster-passenger package includes the Puppet master plus production-ready web server (Passenger with Apache), which eliminates a few configuration steps compared to using the basic puppetmaster package.
First of all - this is a great tutorial. I was able to get puppet masterless to run in a couple hours (2 to read and digest and about an hour to take my time and do the work. Since we already had some RHEL 7 VMs and Bitbucket, I used those as my machine and git repo respectively. I downloaded and installed RHEL puppet using Step 4 on the Puppet Installation website ( _puppet/install_el.html) - Step 4: Install Puppet on Agent Nodes. I ensured I had an ssh key from my machine to Bitbucket. I then followed the configuration steps in this tutorial for all the puppet config and module creation steps. The cron entry worked on the first puppet apply. Thanks for this!
I use the shell provisioner to install puppet on the puppet master and the puppet client and this is run during the first vargrant up, I then allow each machine to see the others using /etc/hosts via the vagrant hostsupdater plugin.
In short, you don't even need 8139 open.In long:The puppetmaster does not under any circumstances install modules onthe client, regardless of what ports are open where. Instead, theclient initiates one or more connections to the server, pulls downinstructions and data, and performs whatever system modifications arerequired. The client does all that either on demand at regularintervals, depending on how it is set up. No ports need to be open inthe client's firewall for this to work, but that firewall must notinterfere with traffic on connections that the client initiates.The puppet agent also has a feature, disabled by default, where itlistens on port 8139 for "kick" messages. Such messages trigger theagent to perform the same operations already described above (i.e.this is a special case of on-demand runs). Only for that feature towork does the client need port 8139 to be open.On the other side, the puppetmaster's firewall must leave thepuppmaster port open for clients to be able to connect. That port is8140 by default.John
It is just that one of my puppet client is a cloud server on Rackspaceand while it can connect to the puppetmaster and apply basicconfigurations(like write a file) from puppetmaster manifest butunable configure things (such as install apache/tomcat etc.)
> > On 30/11/2011, at 5:29, Namrata wrote:>> >> Thanks Nan.>> >> So, my puppetmaster should be able to install modules on puppet client> >> if the port 8139 is open?>> >> On Nov 29, 10:24 am, Nan Liu wrote:> >>> On Tue, Nov 29, 2011 at 6:19 PM, Namrata wrote:> >>>> Just a quick question. In order for puppet run to execute successfully> >>>> on puppet client (ubuntu 10.04), the port 8139 on puppet client should> >>>> be open and listening correct? Do we also require that port 8140 be> >>>> open and running on puppet client?>> >>> You don't need that port unless you plan to enable listen and use> >>> puppet kick. 8140 is the default puppet master port and not for the> >>> agent.>> >>> Nan>> >> --> >> You received this message because you are subscribed to the Google Groups "Puppet Users" group.> >> To post to this group, send email to puppet...@googlegroups.com.> >> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
On Nov 29, 4:00 pm, Namrata wrote:> Thanks everyone for the clarifications to a puppet newbie aka me :)> It is much clear now.>> It is just that one of my puppet client is a cloud server on Rackspace> and while it can connect to the puppetmaster and apply basic> configurations(like write a file) from puppetmaster manifest but> unable configure things (such as install apache/tomcat etc.)
Once the first virtual machine is completely installed, boot into it. Then, set up the second virtual machine, the one that will act as our puppet client. Proceed just as you did with the first machine, with one exception: In VirtualBox and within the Ubuntu installation process, name the second machine puppetclient instead of puppetserver.
Upon finishing the installation, boot into the second VM just as you did with the first one. This should result in two VirtualBox windows, both running Ubuntu 12.04, both offering you a login prompt. Next, we need to configure some VirtualBox settings, so please log into both machines (user: ubuntu, password ubuntu), and shut them down with sudo poweroff.
You can verify that a node can "see" your hiera settings with the command sudo puppet lookup --node --compile --explain on the standalone puppetmaster. The compile is needed to set all the right facts for hiera in Cloud VPS, and there will be a lot of warnings you can ignore. The answer will be at the end of the command's output.
Puppetdb can be enabled on standalone puppetmasters on Cloud VPS by designating a puppetdb server with the role::puppetmaster::puppetdb role and a lot of hiera values on both the DB server and the puppetmaster. This requires significant effort and is not a recommended configuration unless you have significant experience with puppet, need it and are able to maintain the setup, including your own postgresql database. It is not likely to succeed unless puppetmaster runs on Debian Stretch/Buster (you may have problems if your puppetmaster OS and puppetdb OS do not match due to PuppetDB termini packaging), and it is guaranteed to break your puppet setup if you just enable it without following a particular order. Notes on that can be found on the standalone puppetdb notes page.
There are a variety of ways to install open source Puppet. We will use the debian package called puppetmaster-passenger, which is provided by Puppet Labs. The puppetmaster-passenger package includes the Puppet master plus production-ready web server (Passenger with Apache), which eliminates a few configuration steps compared to using the basic puppetmaster package.
The puppetlabs recommend this one, as it will save us a step in the post-install tasks. It will install Puppet and its prerequisites, and automatically configure a production-capacity web server. In other words, this puppetmaster-passenger package includes the Puppet master plus production-ready web server (Passenger with Apache), which eliminates a few configuration steps compared to using the basic puppetmaster package.
Note that this module no longer explicitly requires the puppetlabs apache module. If you want to use the apache functionality of this module you will have to specify that the apache module is installed with:
Puppet Configuration is a Ruby based Configuration Management System with client/server model, licensed under GPLv2 .It has one Master server puppetmasterd and all other machines are configured as puppet clients . We set configurations at the puppet server and then push them to all clients which are connected to the master. The client puppet correctly applies the corresponding configurations on the client machine regardless of their platform difference.
Before installing Puppet, we need to setup some dependencies. First we need ruby with common library files(xml,ssl,etc.) installed, and facter, which is another ruby project that gathers all system information. Facter will be installed in all puppet clients. The puppet server retrieves the client configuration settings and other system-specific details from facter.
Last and very powerful feature of the puppet is the way Puppet server define the Client configurations. For that Puppet use one declarative language which support most of the high level language constructs like OOPs. So lets try one simple configuration which change the permission of /etc/passwd file at all the clients connected with server to 640 and check Apache webserver installed or not , if not, puppet client will install it automatically.
In the provisioners section, we have our two provisioners: first Packer will run the shell script to install Puppet, and then it will use the puppet-masterless provisioner to apply the Puppet manifests.
Now, when I run vagrant up puppetagent-1, my box will first run my shell script to install the Puppet agent software, but then use the Puppet provisioner to install Apache while connecting to my Puppet master. Here is some of the output related to the Puppet agent provisioning process:
The first step was to rip out the puppet foss packages. rpm -qa | grep puppet gives me the list of what to uninstall on the nodes I want to preserve. It may vary based on the role assigned to a node. For instance, on my build node: 2b1af7f3a8
https://sway.office.com/QfTxDrKF4QTlN9qP
https://sway.office.com/6NyCIleYJHnovrZp
https://sway.office.com/ytvmBVB8tQDrXW5U
https://sway.office.com/0UUWxx6gU3cKaFv3
https://sway.office.com/gS0vSYR0bt5rIJpn
https://sway.office.com/gOlWuxHEZSiiyihl
https://sway.office.com/qoB7GQCGtwF2VXjy
https://sway.office.com/0VN1aDV7dKY11E9j
https://sway.office.com/izdvdWqGI1lOeBf4
https://sway.office.com/Kqmafrs3qHedgtlw
https://sway.office.com/umAl7AmvscAq9AH5
https://sway.office.com/qKgeAKyKTYf0hSAn
https://sway.office.com/CdyWzHb2mj81f0Hl
https://sway.office.com/5qqVuF5IlyIN0fWz
https://sway.office.com/qu8ur6DKWHBornDz
https://sway.office.com/kc9ecN2bGSPV40TW
https://sway.office.com/lGoTLYiFyMkjeEva
https://sway.office.com/LBQ6rr2i5o8s3OSP
https://sway.office.com/xoZJZjvo8XxGqc5W
https://sway.office.com/3JqVcDPYzkkngeAb
https://sway.office.com/ImgQoAG9WWvx1Fd5
https://sway.office.com/FY1FP9bGL1mF9i21
https://sway.office.com/DTL7DhWlHTUFPu3d
https://sway.office.com/at4ZV8vQMzftJkAV
https://sway.office.com/Gvg3t1sHPY21BuAj
https://sway.office.com/vpbDoP8LYcEg2DrS
https://sway.office.com/v04LV3R8SMLzTpDH
https://sway.office.com/WtbYI73EMCtPqlgr
https://sway.office.com/9fucmNBg5TzjXxwn
https://sway.office.com/KqMNw94LejYTA84q
https://sway.office.com/0DUYkieYpWRU4ZsH
https://sway.office.com/avqeeUha4HxZa3vL
https://sway.office.com/eJBpeVKsoCZXCuQ3
https://sway.office.com/Sh4kFK7dBQJ5Pbsc
https://sway.office.com/sYqp3cZxF9DrWl8H
https://sway.office.com/EnA7r3hrO83HrvmC
https://sway.office.com/oCJClV7YwMfUs24r
https://sway.office.com/jCwcB36cDdis7QRb
https://sway.office.com/6KRPDtuH9WcAR2Nl
https://sway.office.com/bPfamB7m49V3vb12
https://sway.office.com/k5fDErSOy64Kl0rE
https://sway.office.com/QwacN9mS5pjWF6Y4
https://sway.office.com/3G11vMxVnSDgpZCd
https://sway.office.com/l7ozIvLZYBKDtCln
https://sway.office.com/DT6DfDMJmCkh5dSU
https://sway.office.com/fb908mXgOsZTJ0sJ
https://sway.office.com/DrIXRDROh7uqEP4R
https://sway.office.com/P2J7grWOLjPPU6lg
https://sway.office.com/o12iAk6n3eshcOb2
https://sway.office.com/khWy4v02WiedNaOP
https://sway.office.com/nvCjF3iNx60YTEaL
https://sway.office.com/rLG5F5CAp69pLbM1
https://sway.office.com/90FkOP1LkGOgBtAd
https://sway.office.com/yOO1BrXoThfTD8wg
https://sway.office.com/VBMlstha0aK3oFif
https://sway.office.com/DCLVpbBEPhOnQGgj
https://sway.office.com/vkCWxnMa3dQkceud
https://sway.office.com/LX3hb9WtssSFYhz6
https://sway.office.com/QEwfGY895GbNIyy1
https://sway.office.com/SFRQLxIh7Nl8FeeT
https://sway.office.com/JHp6FnXsxVM4L1CP
https://sway.office.com/GReFLyCiPaKXRORF
https://sway.office.com/1VZmQjbdXeukDd3Q
https://sway.office.com/po1ZvLTEmvnyszUK
https://sway.office.com/H0PcoMBrJZYwpKMF
https://sway.office.com/jP25jAbqqGb6D41n
https://sway.office.com/VvEmlQU3r3T1rDEW
https://sway.office.com/n4zGdb4w3Cqt0HNX
https://sway.office.com/D9aQfiosCCiXT7Un
https://sway.office.com/DYkuvQF6X2qR0dzh
https://sway.office.com/xFD4GAXkDRHgDrJe
https://sway.office.com/eaxkVuD0HDnSgbR9
https://sway.office.com/JFBXzyT7kgrvXcA6
https://sway.office.com/PffWswrUBcMzynZX
https://sway.office.com/GShh0IztCqXoYd07
https://sway.office.com/xJB1YNeNRLVC3fqv
https://sway.office.com/FBzan1bW4sTdCeNi
https://sway.office.com/XKhOFWmXUzf2GtZK
https://sway.office.com/aCfjvn9qTmdVpMOs
https://sway.office.com/r4A8QpmniGRXYpUD
https://sway.office.com/ezrSZsm6sZgovcAm
https://sway.office.com/SVj4zsK80EE5WBKr
https://sway.office.com/1q7MUCiYZkbo8JwJ
https://sway.office.com/RJtceqtEbKJPkGEg
https://sway.office.com/423TgsekOj7dz3Ql
https://sway.office.com/OtsKjnu5HxJRNGkM
https://sway.office.com/3iMDO830IouFKmB6
https://sway.office.com/FM25bXIIuajsgS4o
https://sway.office.com/xQoOfjAbUvyDICLQ
https://sway.office.com/CNOpks50DkHnkITh
https://sway.office.com/zvaVUiNHyRgHMCFY
https://sway.office.com/rSxHAtGsdhXbFHf5
https://sway.office.com/wVZcwHAMjQI59kB2
https://sway.office.com/L4nNOnRV7HjLqo8s
https://sway.office.com/7c7Hwd3ThwNJjDMi
https://sway.office.com/sG1jLrIeSt1jbrOi
https://sway.office.com/IMToy5cgXdXZg1KS
https://sway.office.com/klYrOCEfpI6HxHGW
https://sway.office.com/TGB88XyUCCSDrvNe
https://sway.office.com/5Izi9kB4RzhZR6AV
https://sway.office.com/6b5ycte7V2d7qJQJ
https://sway.office.com/x84mYnwO5ypWBiE7
https://sway.office.com/Aj1CiGxhISjPM7Mz
https://sway.office.com/HEtAH5yj0EH73wYa
https://sway.office.com/bXJ7MynpTdGaUmUT
https://sway.office.com/xoH3kjfA6pYz2XtO
https://sway.office.com/E4ZGxU4N7t4IUpSW
https://sway.office.com/7ux1w0oulpZrIAAg
https://sway.office.com/J79pOYC7bjNHW7ye
https://sway.office.com/TkXenQHfrSAJ6t3j
https://sway.office.com/bDZo0mREDaXpenjF
https://sway.office.com/T5GQuYI7RI1YjHL0
https://sway.office.com/yzMpRiPKHqJV1i07
https://sway.office.com/xt6LcMQl7wQ4zCsr
https://sway.office.com/PrtLCUDzNSvAUpQK
https://sway.office.com/HhoxeHAtePhxCiVV
https://sway.office.com/3IWwGFY9dqa3J8Mo
https://sway.office.com/LbxsQjGdiZJ3hhJW
https://sway.office.com/jobhrfiuSTFGryY6
https://sway.office.com/rKa3M1TR0YovQJ26
https://sway.office.com/bhBoL7osVyJbvO7g
https://sway.office.com/xNdKddM4AqAryDUO
https://sway.office.com/CrdJcjG8ZaYWNEV2
https://sway.office.com/SbzqicRRBCxoiYit
https://sway.office.com/cVsj6p7wEZEqoGBM
https://sway.office.com/IiX8Hur7yIycBpp3
https://sway.office.com/ydHdlng5bziLURmC
https://sway.office.com/O5vUhaSBKdwOya6r
https://sway.office.com/YmZ7aUVUZg6Ul0g4
https://sway.office.com/pjDUMziKOXpS3dPg
https://sway.office.com/ZJENaJDNWdVF31zr
https://sway.office.com/aC8gFzdb84z6PXCX
https://sway.office.com/SiV0oVR5C0cPabyM
https://sway.office.com/CUqbp3uByThFMxAm
https://sway.office.com/D7ssMWX0ZzkmzHeD
https://sway.office.com/lWXCuVDuNfRELYYr
https://sway.office.com/BQWHms7l7sjNLr0E
https://sway.office.com/7XBHP6NRiLj7ajxV
https://sway.office.com/VUGcPy6epl0fqiVb
https://sway.office.com/lCNDhRDvO62UxqLT
https://sway.office.com/TBsJldCAYhp2g4fT
https://sway.office.com/BFd3VNrQVqIjMfRQ
https://sway.office.com/Nzod9V3jGpqAytcB
https://sway.office.com/eUjsxFu7eHR6QkSG
https://sway.office.com/wVH5p1J13BExTBL9
https://sway.office.com/ejzh88OQbGle3wou
https://sway.office.com/NaM5kCmcqK22yQBl
https://sway.office.com/jASYo6nJhBxtBkeA
https://sway.office.com/XDpORqyv18FaOPPX
https://sway.office.com/7DXUmvZoD0dlTTYg
https://sway.office.com/3XE8Ct2RfHhvBecV
https://sway.office.com/c6rrELKxWRGtXBBU