我是你的光 發表於 2023-9-21 00:00:00

rsync安装模块—puppet系列

<p><strong>1. 客户端安装rsync模块</strong></p>
<p>一定要下载,不然客户端的 /etc/rsyncd.conf 该文件是空的</p><pre class="brush:bash;toolbar:false"># cd /etc/puppet/modules  #进入模块路径目录
# git clone https://github.com/onyxpoint/pupmod-concat &amp;&amp; mv pupmod-concat concat
# git clone https://github.com/onyxpoint/pupmod-rsync &amp;&amp; mv pupmod-rsync rsync</pre><p>如果你主机上没有安装git, yum install git -y可以进行安装,你也可以通过wget下载,也可以先下载到本地,在上传到server上,方法很多<br>
对于puppet agent rsync server的主机,先mkdir -p /etc/puppet/modules,然后下载模块并重命名,之后就不需要再改动任何东西</p>
<p> </p>
<p><strong>2. 服务端添加node1.pp</strong></p>
<p><img src="https://zhuji.jb51.net/uploads/img/20230519/c5dcc76d495b53863d4568e5daf90eb0.jpg" width="565" height="334"></p>
<p>图中定义的参数,在客户端的下载模块中的/etc/puppet/modules/rsync/manifests/server 下的section.pp文件中define好的选项</p>
<p> </p>
<p><strong>3.  开始更新puppet</strong></p><pre class="brush:bash;toolbar:false">#puppetrun -p 10 --host vmclient63</pre><p>参考:http://www.linuxidc.com/Linux/2013-08/88713.htm<br>
转载请注明出处:http://www.ttlsa.com/html/2918.html</p>
頁: [1]
查看完整版本: rsync安装模块—puppet系列