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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Recent Announcements
Recent Announcements
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
T
Troy Hunt's Blog
F
Fortinet All Blogs
Webroot Blog
Webroot Blog
S
Secure Thoughts
D
Docker
Attack and Defense Labs
Attack and Defense Labs
博客园 - 叶小钗
H
Heimdal Security Blog
S
Security Affairs
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
T
Tenable Blog
I
InfoQ
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
NISL@THU
NISL@THU
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
IT之家
IT之家
Vercel News
Vercel News
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Forbes - Security
Forbes - Security
博客园 - 聂微东
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
Latest news
Latest news
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Stack Overflow Blog
Stack Overflow Blog
Cloudbric
Cloudbric
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
N
Netflix TechBlog - Medium
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
C
Check Point Blog
Recorded Future
Recorded Future
Jina AI
Jina AI

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