您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > puppet master client 安装
Puppet3.1MasterClient安装测试一,测试环境Master端#uname-aLinuxmaster.inno.com2.6.32-279.22.1.el6.centos.plus.x86_64#1SMPWedFeb605:16:56UTC2013x86_64x86_64x86_64GNU/Linux#cat/etc/redhat-releaseCentOSrelease6.3(Final)]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6192.168.234.135mastermaster.inno.com192.168.234.134clientclient.inno.com#cat/etc/resolv.conf#GeneratedbyNetworkManagerdomainlocaldomainsearchinno.comnameserver192.168.234.2client端#uname-aLinuxclient.inno.com2.6.18-308.el5#1SMPTueFeb2120:06:06EST2012x86_64x86_64x86_64GNU/Linux#cat/etc/redhat-releaseCentOSrelease5.8(Final)[root@clientC]#cat/etc/hosts127.0.0.1localhost.localdomainlocalhost::1localhost6.localdomain6localhost6192.168.234.134clientclient.inno.com192.168.234.135mastermaster.inno.com#cat/etc/resolv.conf;generatedby/sbin/dhclient-scriptsearchinno.comnameserver192.168.234.2二,Master端安装1,下载安装puppet.repo安装包#wget、#ls/etc/yum.repos.d/puppetlabs.repo/etc/yum.repos.d/puppetlabs.repo18:12:07root@master(~)[335]#cat/etc/yum.repos.d/puppetlabs.repo[puppetlabs-products]name=PuppetLabsProductsEl6-$basearchbaseurl==file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabsenabled=1gpgcheck=1[puppetlabs-deps]name=PuppetLabsDependenciesEl6-$basearchbaseurl==file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabsenabled=1gpgcheck=1[puppetlabs-devel]name=PuppetLabsDevelEl6-$basearchbaseurl==file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabsenabled=0gpgcheck=1[puppetlabs-products-source]name=PuppetLabsProductsEl6-$basearch-Sourcebaseurl==file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabsfailovermethod=priorityenabled=0gpgcheck=1[puppetlabs-deps-source]name=PuppetLabsSourceDependenciesEl6-$basearch-Sourcebaseurl==file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabsenabled=0gpgcheck=1[puppetlabs-devel-source]name=PuppetLabsDevelEl6-$basearch-Sourcebaseurl==file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabsenabled=0gpgcheck=12,在master上安装和启用puppet服务:由于软件自身依赖关系会自动安装ruby,facter等软件#yuminstallpuppet-server#chkconfigpuppetmasteron#servicepuppetmasterstartStartingpuppetmaster:[OK]三,Client端安装由于clietn端是CentOS5.8所以puppet.repo源要改变下,改成5的1,下载安装puppet.repo安装包#wget–yinstallpuppetlabs-release-5.7.noarch.rpm安装报错error:rpmts_HdrFromFdno:HeaderV4RSA/SHA1signature:BAD,keyID4bd6ec30报错解决方法#gpg--recv-key4bd6ec30gpg:requestingkey4BD6EC30fromhkpserversubkeys.pgp.netgpg:/root/.gnupg/trustdb.gpg:trustdbcreatedgpg:key4BD6EC30:publickeyPuppetLabsReleaseKey(PuppetLabsReleaseKey)info@puppetlabs.comimportedgpg:noultimatelytrustedkeysfoundgpg:Totalnumberprocessed:1gpg:imported:1(RSA:1)#gpg-a--export4bd6ec30/opt/key.txt#cat/opt/key.txt-----BEGINPGPPUBLICKEYBLOCK-----Version:GnuPGv1.4.5(GNU/Linux)mQINBEw3u0ABEAC1+aJQpU59fwZ4mxFjqNCgfZgDhONDSYQFMRnYC1dzBpJHzI6bfUBQeaZ8rh6N4kZ+wq1eL86YDXkCt4sCvNTP0eF2XaOLbmxtV9bdpTIBep9bQiKg5iZaz+brUZlFk/MyJ0Yz//VQ68N1uvXccmD6uxQsVO+gx7rnarg/BGuCNaVtGwy+S98g8Begwxs9JmGa8pMCcSxtC7fAfAEZ02cYyrw5KfBvFI3cHDdBqrEJQKwKeLKYGHK3+H1TM4ZMxPsLuR/XKCbvTyl+OCPxU2OxPjufAxLlr8BWUzgJv6ztPe9imqpH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Tl/llcbiOzAwXRTpDmzdLS0btj6hCEo0UlLiwfisd7WjkLErA1FLOpxwDSGm0rLcwdRnb7N4fO5F1FYaNvatSJXGci888EbEXYkeEHgRGEaBtPFFnrBlt1bToE4TyvukatSlR8LD9ZFPeAZckekY87MUC+vdeXtVwNQpNWYhqOel3dKjIPW3Zey8mVJAE5ZtWK5wd28ThIgpDvu8EtGVkihddVvpa7tWr55CzXJuPAY6GecqPPyWVdwycvPM3zpJOmM3ioZNdDL8T353JQ/WxefdFHBv5mR0jvubVhj3lBE2Ab+GqHvsi5ZaDUy1NKBCc/4XbuZ+jT/nbaE5uF0B7vdU7e20Q+KuJbLu3DdtL11o/ZMBVtjIWqS+m2QFvU5dFRLOpS5aMGZnflSVeMpC
本文标题:puppet master client 安装
链接地址:https://www.777doc.com/doc-4024401 .html