当前位置:网站首页>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
- Using notepad++ to build an arbitrary language development environment
- How does vs+qt set the software version copyright, obtain the software version and display the version number?
- 5.2-5.3
- mysql innodb 存储引擎的特性—行锁剖析
- Yolov5系列(一)——网络可视化工具netron
- 解决pushgateway数据多次推送会覆盖的问题
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- 【可能是全中文网最全】pushgateway入门笔记
- Stress test WebService with JMeter
猜你喜欢
链表有环,快慢指针走3步可以吗
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
[engine development] in depth GPU and rendering optimization (basic)
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
How can entrepreneurial teams implement agile testing to improve quality and efficiency? Voice network developer entrepreneurship lecture Vol.03
[ue4] cascading shadow CSM
4-33--4-35
Byte practice surface longitude
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
C string format (decimal point retention / decimal conversion, etc.)
随机推荐
SQL server installation location cannot be changed
Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
Incluxdb2 buckets create database
[engine development] rendering architecture and advanced graphics programming
Global and Chinese markets for transparent OLED displays 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
在MapReduce中利用MultipleOutputs输出多个文件
Stress test WebService with JMeter
Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
Class part2
【可能是全中文网最全】pushgateway入门笔记
. Net six design principles personal vernacular understanding, please correct if there is any error
【pytorch学习笔记】Transforms
Yolov5 advanced seven target tracking latest environment construction (II)
基于SVN分支开发模式流程浅析
"Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
App global exception capture
Mmdetection learning rate and batch_ Size relationship
Vs+qt application development, set software icon icon