客户端使用主机名区分,比如主机名为aaa、bbb、ccc、ddd四台机器,我模版文件里有aaa.erb、bbb.erb、standard.erb 我想取他们相对应的主机名的模版文件,如aaa取aaa.erb的模版文件,bbb取bbb.erb模版文件,ccc、ddd没有相对应的,就取standard.erb 我现在设置如下: $mark = $hostname file { "test": mode => 644, owner => root, group => root, ensure => p...
by anran_008 - 监控及自动化运维技术 - 2013-09-28 10:30:02 阅读(6146) 回复(4)
朋友们好,最近在学习puppet,搭建了一个环境,遇到了个问题。 网络环境 192.168.199.3 server 192.168.199.5 client1 192.168.199.2 client2 系统环境 server=centos5_8x64 client=centos5_8x86 其中每台机器的hosts文件内均是相同的 [root@server /]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdo...
puppet无法从远程服务器检索目录:主机名不匹配的服务 系统Linux master 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux centos 5.5 我的安装过程 在vmware上安装centos 5.5. 主机配置:master 192.168.2.128 客户机配置:client2 192.168.2.129 在master以及client主机中的/etc/hosts文件写入 192.168.2.128 master 192.168.2.129 client2 在安装puppet之前先修改master跟client1主机...
请问一下,为什么用puppet cert list –all命令得出来结果中,会多余一条master.localdomain的记录,在昨天刚弄好时,是没有这条记录的。在hosts文件中只有 192.168.56.195 master master.vpsee.com 192.168.56.196 client client.vpsee.com 192.168.56.197 client3 client3.vpsee.com /etc/sysconfig/network文件中也分别改了主机名为master.vpsee.com,client.vpsee.com, client3.vpsee.com —————————————————...
朋友们好,最近在学习puppet,搭建了一个环境,遇到了个问题,纠结了很久 网络环境 192.168.199.3 puppetserver 192.168.199.5 client1 192.168.199.2 client2 系统环境 server=centos5_8x64 client=centos5_8x86 其中每台机器的hosts文件内均是相同的 [root@server /]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 ...
[code][root@clent opt]# cat lgh.sh #!/bin/bash mkdir aabv [root@clent opt]# ll 总计 4 -rw-r--r-- 1 root root 23 04-18 18:11 lgh.sh [root@clent opt]# puppetd --test --server master.com notice: Ignoring --listen on onetime run info: Caching catalog for clent.com info: Applying configuration version '1366280041' notice: /Stage[main]//Exec[exec-mkdir123]/returns: executed successfully notice: Finishe...
本帖最后由 liu-shaobo 于 2012-08-08 17:11 编辑 写的一个nginx、mysql、php 批量安装的模块,大家可以参考一下,欢迎指正 目录如下: |-- mysql | |-- files | | `-- my.cnf | |-- manifests | | |-- config.pp | | |-- init.pp | | |-- install.pp | | `-- service.pp | `-- templates |-- nginx | |-- files | | |-- fcgi.conf | | `-- nginx.conf | |-- manifests | | |-- c...
由于客户机比较多,想把puppet做成集群,但是好像实现起来遇到很多麻烦 启用mongrel模式,nginx和puppet只能放在同一台机器上是可行的,分开了就有问题了 有什么样的方案可以让puppet可以做成集群?
本帖最后由 kofpet 于 2014-08-06 16:23 编辑 环境: centos 5.7 64位 内核:2.6.39 内存:8G CPU:E5620 puppet version:2.7.25 通过使用puppet来管理节点服务器,在服务器上开启了四个puppetmasterd进程服务,但是老是过一段时间就报内存溢出,需要重启puppetmasterd才能解决。 有遇到这样情况的大神吗?
我写了一个pp文件 file1.pp 内容为 file {'/tmp/1': ensure => directory } file {'/tmp/1/1.txt': content => 'this is 1.txt file' } file {'/tmp/1/2.txt': content => 'this is 2.txt file' } file {'/tmp/1': ensure => absent, force => true } 然后,执行puppet apply file1.pp 报错:提示/tmp/1重复定义 求解决?