[英]How do I get Puppet Master to run a manifest against a Puppet Agent node when there are different errors?
[英]How do I run a Puppet Manifest on a Windows server with Puppet Agent?
我過去做過。 我不知道為什么我下面無法做到這一點。 我在Puppet Master服務器上使用CentOS 7。 我將Windows Server 2012與Puppet Agent結合使用。
以下所有內容均來自Puppet Master服務器。 這是site.pp(在/ etc / puppet / manifests中):
node 'fqdnOfWindowsServer' { import 'good.pp'}
node 'fqdnOfLinuxServer' {}
這是good.pp(在/ etc / puppet / manifests中):
file { 'c:/fun.ps1':
ensure => 'present',
source => '/tmp/special.ps1',
source_permissions => 'ignore',
}
當我運行人偶代理-t時,會發生以下情況:
... fqdnOfLinuxServer的緩存目錄...錯誤:無法應用目錄:File [c:/fun.ps1]上的參數路徑失敗:文件路徑必須是完全限定的,而不是/ etc中的'c:/fun.ps1' /puppet/manifests/good.pp:5
如何輸入標准路徑? Windows Server作為Puppet Agent似乎有問題。 路徑與Linux Puppet代理不同。
根據我對錯誤消息的理解,您正在嘗試在Linux服務器上創建Windows文件資源(該錯誤提到了fqdnOfLinuxServer的緩存目錄)。 在這種情況下,該錯誤消息是有道理的,因為在Linux上,代理希望文件路徑以正斜杠開頭。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.