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

推荐订阅源

博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
P
Palo Alto Networks Blog
SecWiki News
SecWiki News
S
Secure Thoughts
P
Privacy International News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tenable Blog
W
WeLiveSecurity
Application and Cybersecurity Blog
Application and Cybersecurity Blog
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Spread Privacy
Spread Privacy
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero
C
CERT Recently Published Vulnerability Notes
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
Cyberwarzone
Cyberwarzone
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
L
Lohrmann on Cybersecurity
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Scott Helme
Scott Helme
H
Hacker News: Front Page
博客园 - Franky
月光博客
月光博客
D
DataBreaches.Net
Know Your Adversary
Know Your Adversary
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
O
OpenAI News
N
Netflix TechBlog - Medium
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
博客园 - 叶小钗
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog
人人都是产品经理
人人都是产品经理
I
Intezer
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
IT之家
IT之家
V
Vulnerabilities – Threatpost
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
L
LangChain Blog
Google Online Security Blog
Google Online Security Blog
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网

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