Windows 上的 puppet-acl 模块抛出 transactionstore.yaml 损坏错误
puppet-acl module on Windows throws transactionstore.yaml corrupt error
正在 Windows Server 2016 Preview5 上试用 puppet-acl 模块。我在 第二个人偶 运行 上遇到了最奇怪的错误。如果我删除 trnsactionstore.yaml 文件,并重新 运行 puppet 代理,该行为是可重复的。我 运行正在使用最新代理版本的 ning puppet4。
这是我的代码块
acl { "c:/temp":
permissions => [
{ identity => 'Administrator', rights => ['full'] },
{ identity => 'Users', rights => ['read','execute'] }
],
}
这是木偶的输出-运行。
PS C:\ProgramData\PuppetLabs\puppet\cache\state> puppet agent -t
Info: Using configured environment 'local'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for opslowebf02n02.local
Error: Transaction store file C:/ProgramData/PuppetLabs/puppet/cache/state/transactionstore.yaml is corrupt (wrong number of arguments (0 for 1..2)); replacing
Error: Transaction state file C:/ProgramData/PuppetLabs/puppet/cache/state/transactionstore.yaml is valid YAML but not returning a hash. Check the file for corruption, or remove it before continuing.
Info: Applying configuration version '1471436916'
Notice: /Stage[main]/platform_base_system::Role::Windows/Exec[check-powershell-exection-policy]/returns: executed successfully
Notice: /Stage[main]/configs_iis::Profile::Default/Exec[check-iis-global-anonymous-authentication]/returns: executed successfully
Notice: Applied catalog in 7.42 seconds
在 transactionstore.yaml 文件中,这是错误部分:
Acl[c:/temp]:
parameters:
permissions:
system_value:
- !ruby/hash:Puppet::Type::Acl::Ace {}
- !ruby/hash:Puppet::Type::Acl::Ace {}
inherit_parent_permissions:
system_value: :true
已通过将 Puppet 代理降级到 4.5.3 解决了这个问题。
4.6.0 版本的行为必须已更改。
对于 4.5.3,我仍然在日志文件中看到错误,但是 puppetrun 不会失败
我会试着和 puppet 的人谈谈这个。
Acl[c:/temp]:
parameters:
permissions:
system_value:
- !ruby/hash:Puppet::Type::Acl::Ace {}
- !ruby/hash:Puppet::Type::Acl::Ace {}
inherit_parent_permissions:
system_value: :true
此后立即被跟踪为 https://tickets.puppetlabs.com/browse/PUP-6629. It's almost coincidental that you created https://tickets.puppetlabs.com/browse/PUP-6630。
正在 Windows Server 2016 Preview5 上试用 puppet-acl 模块。我在 第二个人偶 运行 上遇到了最奇怪的错误。如果我删除 trnsactionstore.yaml 文件,并重新 运行 puppet 代理,该行为是可重复的。我 运行正在使用最新代理版本的 ning puppet4。
这是我的代码块
acl { "c:/temp":
permissions => [
{ identity => 'Administrator', rights => ['full'] },
{ identity => 'Users', rights => ['read','execute'] }
],
}
这是木偶的输出-运行。
PS C:\ProgramData\PuppetLabs\puppet\cache\state> puppet agent -t
Info: Using configured environment 'local'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for opslowebf02n02.local
Error: Transaction store file C:/ProgramData/PuppetLabs/puppet/cache/state/transactionstore.yaml is corrupt (wrong number of arguments (0 for 1..2)); replacing
Error: Transaction state file C:/ProgramData/PuppetLabs/puppet/cache/state/transactionstore.yaml is valid YAML but not returning a hash. Check the file for corruption, or remove it before continuing.
Info: Applying configuration version '1471436916'
Notice: /Stage[main]/platform_base_system::Role::Windows/Exec[check-powershell-exection-policy]/returns: executed successfully
Notice: /Stage[main]/configs_iis::Profile::Default/Exec[check-iis-global-anonymous-authentication]/returns: executed successfully
Notice: Applied catalog in 7.42 seconds
在 transactionstore.yaml 文件中,这是错误部分:
Acl[c:/temp]:
parameters:
permissions:
system_value:
- !ruby/hash:Puppet::Type::Acl::Ace {}
- !ruby/hash:Puppet::Type::Acl::Ace {}
inherit_parent_permissions:
system_value: :true
已通过将 Puppet 代理降级到 4.5.3 解决了这个问题。 4.6.0 版本的行为必须已更改。
对于 4.5.3,我仍然在日志文件中看到错误,但是 puppetrun 不会失败 我会试着和 puppet 的人谈谈这个。
Acl[c:/temp]:
parameters:
permissions:
system_value:
- !ruby/hash:Puppet::Type::Acl::Ace {}
- !ruby/hash:Puppet::Type::Acl::Ace {}
inherit_parent_permissions:
system_value: :true
此后立即被跟踪为 https://tickets.puppetlabs.com/browse/PUP-6629. It's almost coincidental that you created https://tickets.puppetlabs.com/browse/PUP-6630。