当前位置:网站首页>Puppet自动化运维排错案例
Puppet自动化运维排错案例
2022-07-03 15:04:00 【星哥玩云】
近日,自己维护的一组Puppet Agent机器,出现了如下报错:
[[email protected] src]# puppetd --test --server server.linuxidc.com
notice: Run of Puppet configuration client already in progress; skipping
解决方法:
之前用网上的方法,删除puppet.lock文件,命令如下:
rm /var/lib/puppet/state/puppet.lock
发现故障依旧;后来发现出现此现象是由于/etc/puppet/manifests/site.pp配置文件没有写正确,我们将其改正就行了,其实以后像puppet server里面的site.pp和init.pp有比较大的改动时,最好先用puppet parser validate命令先检查,示例如下:
[[email protected] manifests]# puppet parser validate site.pp
err: Could not parse for environment production: Syntax error at 'source'; expected '}' at
/etc/puppet/manifests/site.pp:8
err: Try 'puppet help parser validate' for usage
如上所示,很明显提标示site.pp第8行有错误,提示我们改正,改正以后故障排除,事实上puppet parser validate命令用于puppet server语法非常有用,示例如下:
puppet parser validate node.pp
node.pp本身语法就存在错误,第10行缺少}号,报错信息如下:
err: Could not parse for environment production: Syntax error at end of file; expected '}' at /etc/puppet/manifests/node.pp:10
err: Try 'puppet help parser validate' for usage
Puppet 学习系列:
Puppet 学习一:安装及简单实例应用 http://www.linuxidc.com/Linux/2013-08/88710.htm
Puppet学习二:简单模块配置和应用 http://www.linuxidc.com/Linux/2013-08/88711.htm
边栏推荐
- Joomla! CMS 3.0~3.4.6 RCE
- Série yolov5 (i) - - netron, un outil de visualisation de réseau
- Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
- 【pytorch学习笔记】Datasets and Dataloaders
- Unity hierarchical bounding box AABB tree
- Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
- How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
- [attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
- Byte practice surface longitude
- Tencent internship interview sorting
猜你喜欢

PS tips - draw green earth with a brush

Pytorch深度学习和目标检测实战笔记

Vs+qt application development, set software icon icon

4-29——4.32
![[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University](/img/83/922efb4f88843f1b7feaccf2b515b9.jpg)
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University

Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text

什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式

【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer

【微信小程序】WXSS 模板样式

On MEM series functions of C language
随机推荐
Global and Chinese market of postal automation systems 2022-2028: Research Report on technology, participants, trends, market size and share
Talking about part of data storage in C language
【pytorch学习笔记】Datasets and Dataloaders
Fundamentals of PHP deserialization
QT - draw something else
Byte practice plane longitude 2
B2020 points candy
[ue4] Niagara's indirect draw
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
[opengl] pre bake using computational shaders
PS tips - draw green earth with a brush
5.2-5.3
Byte practice surface longitude
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
2022/02/14
Besides lying flat, what else can a 27 year old do in life?
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
Awvs batch operation script