Ubuntu Server Guide Changes, errors and bugs


Download 1.27 Mb.
Pdf ko'rish
bet238/286
Sana20.12.2022
Hajmi1.27 Mb.
#1035308
1   ...   234   235   236   237   238   239   240   241   ...   286
Bog'liq
ubuntu-server-guide

Resources
• See the update-motd man page for more options available to update-motd.
• The Debian Package of the Day weather article has more details about using the weatherutility.
Puppet
Puppet is a cross platform framework enabling system administrators to perform common tasks using code.
The code can do a variety of tasks from installing new software, to checking file permissions, or updating
user accounts. Puppet is great not only during the initial installation of a system, but also throughout the
system’s entire life cycle. In most circumstances puppet will be used in a client/server configuration.
This section will cover installing and configuring Puppet in a client/server configuration. This simple example
will demonstrate how to install Apache using Puppet.
Preconfiguration
Prior to configuring puppet you may want to add a DNS CNAME record for puppet.example.com, where
example.com is your domain. By default Puppet clients check DNS for puppet.example.com as the puppet
server name, or Puppet Master. See Domain Name Server for more details.
If you do not wish to use DNS, you can add entries to the server and client /etc/hosts file. For example, in
the Puppet server’s /etc/hosts file add:
1 2 7 . 0 . 0 . 1 l o c a l h o s t . l o c a l d o m a i n l o c a l h o s t puppet
1 9 2 . 1 6 8 . 1 . 1 7 p u p p e t c l i e n t . example . com p u p p e t c l i e n t
On each Puppet client, add an entry for the server:
1 9 2 . 1 6 8 . 1 . 1 6 puppetmaster . example . com puppetmaster puppet
Note
Replace the example IP addresses and domain names above with your actual server and client
addresses and domain names.
Installation
To install Puppet, in a terminal on the server enter:
sudo apt i n s t a l l puppetmaster
On the client machine, or machines, enter:
sudo apt i n s t a l l puppet

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   234   235   236   237   238   239   240   241   ...   286




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling