博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
#puppet#新版puppet的问题
阅读量:6954 次
发布时间:2019-06-27

本文共 1544 字,大约阅读时间需要 5 分钟。

hot3.png

231455_Fwxi_987833.jpg

tips:检查puppet版本:

puppet --version

我安装的版本是3.7.4

最近因为安装了saltstack,不知道为什么salt执行命令很慢(CPU使用率高),又暂时找不到什么解决方案(怀疑是bug),于是滚回puppet的世界

参考了这篇资料,安装了puppet:

分别在master和agent上安装了puppetmaster和puppet(agent),但是默认的agent是不启用的,

so,编辑:/etc/default/puppet文件,把当中的START=no改为yes:

# Defaults for puppet - sourced by /etc/init.d/puppet# Enable puppet agent service?# Setting this to "yes" allows the puppet agent service to run.# Setting this to "no" keeps the puppet agent service from running.START=yes# Startup optionsDAEMON_OPTS=""

再执行:service puppet start即可

后来在agent或master上执行命令时都弹出以下警告:

root@workgroup1:~# puppet agent --server workgroup0.hzg.com --testWarning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations   (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')Info: Caching certificate for caInfo: csr_attributes file loading from /etc/puppet/csr_attributes.yamlInfo: Creating a new SSL certificate request for workgroup1.hzg.comInfo: Certificate Request fingerprint (SHA256): 58:F4:2B:86:1B:26:D8:CF:24:34:C3:5F:C5:C9:46:37:11:65:26:F1:72:C0:AC:E4:A9:C3:6A:BF:F4:70:26:E8Info: Caching certificate for caExiting; no certificate found and waitforcert is disabled

警告内容如下:

Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations   (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')

参考这里:

把/etc/puppet/puppet.conf文件中的:

# templatedir=$confdir/templates

注释掉即可。

转载于:https://my.oschina.net/hochikong/blog/379779

你可能感兴趣的文章
分布式文件服务器dfs
查看>>
正则表达式
查看>>
关于直播视频格式和浏览器兼容性历史的来龙去脉
查看>>
是的,InfoQ正在招聘技术编辑!跟对的人,一起做喜欢的事!
查看>>
vue2+vue-cli,dis文件加载出错解决方案
查看>>
立下“去O”Flag的AWS,悄悄修炼了哪些内功?
查看>>
关于团队建设,穆帅能教我们什么?
查看>>
2019 SRE 调查报告:事故处理是主要工作,SRE 压力山大
查看>>
xpath学习
查看>>
Java工程师的成长路线图是什么?
查看>>
JavaOne 2016——首日亮点
查看>>
EDU_BOOK 开发总结
查看>>
简单的支持网页画框拖拽缩放功能的js插件
查看>>
使用 ES2015 开发 Angular1.x 应用指南
查看>>
密码学协议 门限
查看>>
true or false in JavaScript
查看>>
Android学习笔记6:使用Intent1
查看>>
js实现继承的几种方式
查看>>
[LintCode/LeetCode] Two Strings are Anagrams/Valid Anagram
查看>>
Consul入门03 - 注册服务
查看>>