2016-08-17 52 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