2016-08-17 50 views
0

在Windows Server 2016 Preview5上试用puppet-acl模块。我在第二个木偶游戏上收到了最奇怪的错误。如果我删除trnsactionstore.yaml文件,并重新运行puppet代理,则行为是可重复的。我正在用最新的代理版本运行puppet4。Windows上的puppet-acl模块引发transactionstore.yaml损坏错误

这是我的代码块

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 
+0

只是spottet,使木偶代理是失败的操作系统更新...测试这对服务器2012R2 工作,服务器2012 R2 \t调试:运行环境:puppet_version = 4.5.3,RUBY_VERSION = 2.1.9 ,run_mode =剂,default_encoding = IBM437 不工作,服务器2016 TP5 \t调试:运行环境:puppet_version = 4.6.0,RUBY_VERSION = 2.1.9,run_mode =剂,default_encoding = IBM437 –

回答

0

这已经被dowwngrading傀儡代理4.5.3解决。 4.6.0版本的行为必须已更改。

随着4.5.3我仍然看到在日志文件中的错误,但puppetrun不会失败 我会尽力与傀儡人民谈这件事。

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