15.01.2013 Views

Ubuntu kiszolgáló kézikönyve - Ubuntu dokumentáció - Ubuntu ...

Ubuntu kiszolgáló kézikönyve - Ubuntu dokumentáció - Ubuntu ...

Ubuntu kiszolgáló kézikönyve - Ubuntu dokumentáció - Ubuntu ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2. Puppet<br />

Távoli adminisztráció<br />

Puppet is a cross platform framework enabling system administrators to perform common tasks using<br />

code. The code can do a variety of tasks from installing new software, to checking file permissions,<br />

or updating user accounts. Puppet is great not only during the initial installation of a system, but also<br />

throughout the system's entire life cycle. In most circumstances puppet will be used in a client/server<br />

configuration.<br />

This section will cover installing and configuring puppet in a client/server configuration. This simple<br />

example will demonstrate how to install Apache using Puppet.<br />

2.1. Telepítés<br />

To install puppet, in a terminal on the server enter:<br />

sudo apt-get install puppetmaster<br />

On the client machine, or machines, enter:<br />

sudo apt-get install puppet<br />

2.2. Beállítás<br />

Prior to configuring puppet you may want to add a DNS CNAME record for puppet.example.com,<br />

where example.com is your domain. By default puppet clients check DNS for puppet.example.com as<br />

the puppet server name, or Puppet Master. See 7. fejezet - Tartománynév-szolgáltatás (DNS) [94]<br />

for more DNS details.<br />

If you do not wish to use DNS, you can add entries to the server and client /etc/hosts file. For<br />

example, in the puppet server's /etc/hosts file add:<br />

127.0.0.1 localhost.localdomain localhost puppet<br />

192.168.1.17 meercat02.example.com meercat02<br />

On each puppet client, add an entry for the server:<br />

192.168.1.16 meercat.example.com meercat puppet<br />

Replace the example IP addresses and domain names above with your actual server and<br />

client addresses and domain names.<br />

Now setup some resources for apache2. Create a file /etc/puppet/manifests/site.pp containing<br />

the following:<br />

package {<br />

52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!