简体   繁体   中英

Troubleshooting Puppet Manifests for Windows puppet Node

I have puppet manifests which would download exe file and get installed in windows server.I am getting an error while running command: puppet agent -t on windows server.

Manifests file: /etc/puppet/modules/mercury/manifests/iisserver.pp

class mercury::iisserver {
        download_file { "Download dotnet core 2":
        url => 'http://download.microsoft.com/download/7/3/A/73A3E4DC-F019-47D1-9951-0453676E059B/dotnet-sdk-2.0.2-win-gs-x64.exe',
         destination_directory => 'C:/dotnet-sdk-2.0.2-win-gs-x64.ex',
        notify => Package["dotnercore2"],
    }
    package { "dotnercore2":
        ensure => installed,
        source => "C:/dotnet-sdk-2.0.2-win-gs-x64.exe",
        require => File["C:/dotnet-sdk-2.0.2-win-gs-x64.exe"],
    }
}

Error on windows server after running Puppet agent -t:

Error :Could not retreive catalog from remote server:error 400 on server:Syntax error at 'Stdlib::HTTPUrl'; Expected')' at /etc/puppet/modules/download_file/manifests/init.pp on node XXXX

Warning : not using cache on failed catalog. Error: Could not retrieve catalog; Skipping run

If you look closely, your error output shows what is wrong. There is a Syntax error with your HTTPUrl on your /etc/puppet/modules/download_file/manifests/init.pp file. It is expecting a ')' character somewhere. Could you recheck your manifest for the download_file module or post it here so that we can review :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM