当前位置:网站首页>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 个重复字符的最长子串
- Global and Chinese market of iron free motors 2022-2028: Research Report on technology, participants, trends, market size and share
- Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
- 视觉上位系统设计开发(halcon-winform)-3.图像控件
- Yolov5 advanced seven target tracking latest environment construction (II)
- Can‘t connect to MySQL server on ‘localhost‘
- 4-24--4-28
- What is label encoding? How to distinguish and use one hot encoding and label encoding?
- Redis主从、哨兵、集群模式介绍
猜你喜欢
视觉上位系统设计开发(halcon-winform)-4.通信管理
el-switch 赋值后状态不变化
[graphics] hair simulation in tressfx
Pytoch deep learning and target detection practice notes
视觉上位系统设计开发(halcon-winform)-5.相机
Halcon与Winform学习第二节
Halcon与Winform学习第一节
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
视觉上位系统设计开发(halcon-winform)
Kubernetes帶你從頭到尾捋一遍
随机推荐
Remote server background hangs nohup
[opengl] advanced chapter of texture - principle of flowmap
视觉上位系统设计开发(halcon-winform)-5.相机
Puppet自动化运维排错案例
SQL server installation location cannot be changed
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
【可能是全中文网最全】pushgateway入门笔记
[graphics] hair simulation in tressfx
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
Chapter 04_ Logical architecture
ASTC texture compression (adaptive scalable texture compression)
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Use of Tex editor
[wechat applet] wxss template style
Matplotlib drawing label cannot display Chinese problems
Global and Chinese market of iron free motors 2022-2028: Research Report on technology, participants, trends, market size and share
视觉上位系统设计开发(halcon-winform)-2.全局变量设计
406. 根据身高重建队列
Open under vs2019 UI file QT designer flash back problem