AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 490381
Accepted
Larsen
Larsen
Asked: 2013-03-23 01:41:40 +0800 CST2013-03-23 01:41:40 +0800 CST 2013-03-23 01:41:40 +0800 CST

Augeas 任务显示为已更改,尽管文件未更改

  • 772

我已经安装了 puppet-dashboard 并注意到我所有的 augeas 任务都显示为“已更改”。我希望 augeas 自动检查要设置的值是否已经设置,在这种情况下什么都不做。

我的食谱:

$puppet_conf = "/etc/puppet/puppet.conf"
file { "${puppet_conf}": }

augeas { "puppet_conf":
        context => "/files/${puppet_conf}/",
        changes => [
                "set agent/report true",
        ],
        require => File["${puppet_conf}"],
}

之前已经设置值时正常运行:

info: Applying configuration version '1363882751'
debug: Augeas[puppet_conf](provider=augeas): Opening augeas with root /, lens path , flags 0
debug: Augeas[puppet_conf](provider=augeas): Closed the augeas connection
debug: Augeas[puppet_conf](provider=augeas): Opening augeas with root /, lens path , flags 0
debug: Augeas[puppet_conf](provider=augeas): sending command 'set' with params ["/files//etc/puppet/puppet.conf/agent/report", "true"]
debug: Augeas[puppet_conf](provider=augeas): Closed the augeas connection
notice: /Stage[main]/Puppet_agent/Augeas[puppet_conf]/returns: executed successfully

文件的日期/时间没有改变,所以它显然不会改变文件。虽然,puppet-dashboard 将文件显示为“已更改”。如果我输入一个“onlyif”,那部分将不会出现,但我不想在 onlyif 中重复所有内容,而且我一次只能设置一个配置选项。

Debian Squeeze
Puppet 2.6.2
Augeas 0.10.0

配置它的正确方法是什么?

puppet-dashboard
  • 1 1 个回答
  • 442 Views

1 个回答

  • Voted
  1. Best Answer
    Dominic Cleal
    2013-03-23T04:18:20+08:002013-03-23T04:18:20+08:00

    感谢您提供版本信息。看起来你遇到了 Puppet bug #11414,这是由于新的 Augeas 0.10.0 和旧版本的 Puppet 的组合。

    Puppet 中的提供程序将 Augeas 版本号误解为非常旧的版本(字符串而不是正确的版本比较)并且它无法按预期工作。

    您需要使用来自squeeze-backports(或Puppet Labs repo)的 Puppet 2.7.18 修复了错误,或者使用旧版或更新版的 Augeas(1.0.0 或 0.9.0)。

    • 2

相关问题

  • 从我的站点清单中的 Puppet 仪表板引用组/类

  • puppet-dashboard:无法从库存服务中检索事实

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve