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

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
S
SegmentFault 最新的问题
腾讯CDC
博客园 - 叶小钗
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
Jina AI
Jina AI
A
About on SuperTechFans
博客园 - 司徒正美
C
Check Point Blog
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
T
Tenable Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
小众软件
小众软件
Spread Privacy
Spread Privacy
阮一峰的网络日志
阮一峰的网络日志
Know Your Adversary
Know Your Adversary
NISL@THU
NISL@THU
K
Kaspersky official blog
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
D
DataBreaches.Net
A
Arctic Wolf
I
InfoQ
量子位
IT之家
IT之家
Security Latest
Security Latest
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
P
Proofpoint News Feed
P
Privacy International News Feed
T
Threatpost
L
Lohrmann on Cybersecurity
P
Proofpoint News Feed
G
GRAHAM CLULEY
V
Vulnerabilities – Threatpost
Martin Fowler
Martin Fowler
C
Cyber Attacks, Cyber Crime and Cyber Security
PCI Perspectives
PCI Perspectives
F
Full Disclosure

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