当前位置:网站首页>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
边栏推荐
- Qt development - scrolling digital selector commonly used in embedded system
- [ue4] cascading shadow CSM
- Vs+qt multithreading implementation -- run and movetothread
- Implement Gobang with C language
- C language dup2 function
- 【微信小程序】WXSS 模板样式
- 5-1 blocking / non blocking, synchronous / asynchronous
- [pytorch learning notes] datasets and dataloaders
- What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry
- Tensor ellipsis (three points) slice
猜你喜欢
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
QT - draw something else
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
Influxdb2 sources add data sources
Finally, someone explained the financial risk management clearly
链表有环,快慢指针走3步可以吗
My QT learning path -- how qdatetimeedit is empty
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
第04章_逻辑架构
[ue4] material and shader permutation
随机推荐
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
Pytoch deep learning and target detection practice notes
Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
What is machine reading comprehension? What are the applications? Finally someone made it clear
Yolov5系列(一)——网络可视化工具netron
Yolov5进阶之八 高低版本格式转换问题
Joomla! CMS 3.0~3.4.6 RCE
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
QT program font becomes larger on computers with different resolutions, overflowing controls
[wechat applet] wxss template style
Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
[opengl] face pinching system
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
NOI OPENJUDGE 1.3(06)
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
[engine development] in depth GPU and rendering optimization (basic)
2022/02/14
Byte practice surface longitude