【问题标题】:Salt-stack error with state git.config状态 git.config 的盐堆栈错误
【发布时间】:2017-05-19 04:45:05
【问题描述】:

我在尝试将 git.config 状态与 saltstack 版本 2014.7.2 (Helium) 一起使用时遇到了这个错误。我也在使用无主设置。

----------
    State: - git
    Name:      user.email
    Function:  config
        Result:    False
        Comment:   State git.config found in sls git is unavailable

        Changes:

产生这个错误的状态在这里:

git:
  pkg.installed

gitConfigEmail:
  git.config:
    - name: user.email
    - value: {{pillar['user']['email']}}
    - is_global: True
    - require:
      - pkg: git

这个错误是什么意思,我该如何解决?

【问题讨论】:

  • 尝试刷新你的状态和模块到奴才docs.saltstack.com/en/latest/ref/modules/…
  • 我剪切并粘贴了呈现的状态(带有硬编码的支柱值),它对我有用。尝试仅隔离这两个状态定义并最终运行它。

标签: git salt-stack


【解决方案1】:

您将希望使用git.config_set 状态,而不是 git.config 模块。

https://docs.saltstack.com/en/latest/ref/states/all/salt.states.git.html#salt.states.git.config_set

【讨论】:

    猜你喜欢
    • 2015-07-18
    • 2011-12-08
    • 2018-08-06
    • 2011-03-27
    • 1970-01-01
    • 2021-06-04
    • 2010-11-13
    • 1970-01-01
    • 2021-03-03
    相关资源
    最近更新 更多