当前位置:网站首页>Puppet automatic operation and maintenance troubleshooting cases
Puppet automatic operation and maintenance troubleshooting cases
2022-07-03 15:11:00 【Brother Xing plays with the clouds】
In recent days, , A group maintained by oneself Puppet Agent machine , The following error has been reported :
[[email protected] src]# puppetd --test --server server.linuxidc.com
notice: Run of Puppet configuration client already in progress; skipping
resolvent :
Before using the online method , Delete puppet.lock file , The order is as follows :
rm /var/lib/puppet/state/puppet.lock
The fault is still found ; Later, it was found that this phenomenon was due to /etc/puppet/manifests/site.pp The configuration file is not written correctly , We can just correct it , In fact, it will be like puppet server Inside site.pp and init.pp When there are relatively large changes , It's better to use puppet parser validate Command check first , Examples are as follows :
[[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
As shown above , It's obvious to mention signs site.pp The first 8 There's a mistake in the line , Prompt us to correct , After correction, troubleshoot , in fact puppet parser validate The command is used for puppet server Grammar is very useful , Examples are as follows :
puppet parser validate node.pp
node.pp There are grammatical errors in itself , The first 10 Row missing } Number , The error information is as follows :
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 Learning Series :
Puppet Learning one : Installation and simple example application http://www.linuxidc.com/Linux/2013-08/88710.htm
Puppet Study two : Simple module configuration and Application http://www.linuxidc.com/Linux/2013-08/88711.htm
边栏推荐
- Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
- 【日常训练】395. 至少有 K 个重复字符的最长子串
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- [transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
- 高并发下之redis锁优化实战
- PyTorch crop images differentiablly
- Global and Chinese market of optical fiber connectors 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
- Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
- 2022/02/14
猜你喜欢

基础SQL教程
![MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)](/img/cd/2e4f5884d034ff704809f476bda288.png)
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)

C string format (decimal point retention / decimal conversion, etc.)

CentOS7部署哨兵Redis(带架构图,清晰易懂)
![[wechat applet] wxss template style](/img/28/f9d12bf761e25f9564d92697cf049d.png)
[wechat applet] wxss template style

解决pushgateway数据多次推送会覆盖的问题
![[set theory] inclusion exclusion principle (complex example)](/img/9a/db5a75e27516378c31531773a8a221.jpg)
[set theory] inclusion exclusion principle (complex example)

视觉上位系统设计开发(halcon-winform)-4.通信管理

4-33--4-35

什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
随机推荐
Stress test WebService with JMeter
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
The first character of leetcode sword offer that only appears once (12)
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
Zero copy underlying analysis
Pytorch深度学习和目标检测实战笔记
Byte practice plane longitude 2
视觉上位系统设计开发(halcon-winform)-4.通信管理
[ue4] cascading shadow CSM
视觉上位系统设计开发(halcon-winform)
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
Web server code parsing - thread pool
[pytorch learning notes] transforms
【微信小程序】WXSS 模板样式
Yolov5系列(一)——网络可视化工具netron
Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
Unity hierarchical bounding box AABB tree
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding