惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
V
Visual Studio Blog
The Register - Security
The Register - Security
Y
Y Combinator Blog
I
InfoQ
小众软件
小众软件
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
Arctic Wolf
P
Privacy & Cybersecurity Law Blog
AWS News Blog
AWS News Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Security Archives - TechRepublic
Security Archives - TechRepublic
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
C
Cyber Attacks, Cyber Crime and Cyber Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
爱范儿
爱范儿
Spread Privacy
Spread Privacy
Recent Commits to openclaw:main
Recent Commits to openclaw:main
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
C
CERT Recently Published Vulnerability Notes
IT之家
IT之家
月光博客
月光博客
雷峰网
雷峰网
博客园 - 【当耐特】
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
NISL@THU
NISL@THU
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Puppet

有 V 友参加 2015 年在 Portland 的 PuppetConf 么? - V2EX 去中心化的 puppet 配置 - V2EX Puppet Server - V2EX 清除 Puppet Master 的 /var/lib/puppet/reports 目录下旧文件的指令 - V2EX 关于 Puppet Master 的性能调优 - V2EX Puppet Labs 和企业级路由器厂商合作,未来可以通过 Puppet 来进行路由器配置 - V2EX 在基于 Debian 的发行版上使用最新的开源版本的 Puppet - V2EX Puppet 里使用 define 时的依赖关系…… - V2EX 关于 Puppet 2 到 3 的升级 - V2EX Puppet APT 源非官方国内镜像 - V2EX Puppetboard - V2EX puppet agent --test 运行后的 return code - V2EX Ubuntu 自带版本的 facter 无法输出 JSON? - V2EX Puppet有没有办法在Windows重启后,继续执行未执行完的操作? - V2EX Puppet 出现两个漏洞:任意代码执行、模块权限绕过,大家尽快升级! - V2EX 用 Ubuntu 内置的 Puppet 的话,还能否接收到来自官方的安全更新呢? - V2EX puppet占用内存不少,这个问题大家是怎么解决的? - V2EX puppet-lint - V2EX package 类型的 ensure 的 installed 和 present 有什么区别呢? - V2EX puppet.tmbundle for TextMate - V2EX 大家 Puppet 是用 Crontab 還是 Daemon 運行的呢,時間間隔多少? - V2EX Install Puppet Dashboard - V2EX Running Puppet Master with Passenger - V2EX puppet有没有办法接收通知来触发部署? - V2EX Puppet CookBook - V2EX Puppet Enterprise 3.0 - V2EX 关于 Puppet 及其替代品 - V2EX 关于 Puppet Enterprise - V2EX 如果 Puppet 客户端用 3.1.1 版本,但是服务器端是 2.7,会有什么问题么? - V2EX 在 Mac OS X 上安装 Puppet 最好的方法是? - V2EX 请大家推荐一些关于 Puppet 项目架构方面的好例子吧 - V2EX 关于 Puppet 的 include 语法的问题 - V2EX 目前有可以对 Puppet 的 .pp 格式做语法检查的编辑器么? - V2EX Pro Puppet 是一本好书 - V2EX Puppet Enterprise 2.7.1 for Ubuntu 12.04 64-bit 国内镜像 - V2EX Puppet REST API - V2EX Puppet 在装好之后可以同时管理很多机器,但是在最初如何同时把 Puppet 装到很多机器上呢? - V2EX Learning Puppet - V2EX Puppet用Ruby开发的原因 - V2EX Hacking Puppet - V2EX
关于修复 puppet agent 因为网络不好而时不时 administratively disabled 的问题 - V2EX
Livid · 2013-10-14 · via Puppet

以下为大概思路,可以用各种语言实现。

在 crontab 中每 4 小时检查一次 /var/lib/puppet/state/puppetdlock 这个文件是否存在 [1],如果存在,获得其 mtime,如果 mtime 和当前时间已经差了一个小时以上(没有理由单次运行会超过 1 个小时),那就:

service puppet stop
puppet agent --enable
puppet agent --test

当然,需要加入保证 Service['puppet'] 一直运行,这样当 --test 的时候,除了会完成同步之外,也就可以重新启动 puppet agent daemon。

[1] http://projects.puppetlabs.com/issues/3757