Ask Your Question
0

" Installing and configuring ULTRAVNC" through puppet resulted error

asked 2017-05-08 13:23:43 -0600

gangadhar gravatar image

updated 2017-05-08 15:27:27 -0600

DarylW gravatar image

I have simple puppet program which 1) Install the "UltraVNC" from "chocolatey" repo 2) Move the config file to "C:\Program Files\uvnc bvba\UltraVnc" 3) Then start the service

When I ran the puppet program it resulted in few errors which I have mentioned below.

" Info: Applying configuration version '48ad96db3a314f99325dde5f328dab1e54c98a00'
Notice: /Stage[main]/Nrhlteamcity::Ultravnc/File[C:\Program Files\uvnc bvba\UltraVnc]/ensure: current_value absent, shou
ld be file (noop)
Info: /Stage[main]/Nrhlteamcity::Ultravnc/File[C:\Program Files\uvnc bvba\UltraVnc]: Scheduling refresh of Service[uvnc_
service]
Notice: /Stage[main]/Nrhlteamcity::Ultravnc/Service[uvnc_service]/ensure: current_value stopped, should be running (noop
)
Info: /Stage[main]/Nrhlteamcity::Ultravnc/Service[uvnc_service]: Unscheduling refresh on Service[uvnc_service]
Notice: Class[Nrhlteamcity::Ultravnc]: Would have triggered 'refresh' from 2 events
Notice: Stage[main]: Would have triggered 'refresh' from 1 events
Notice: Applied catalog in 10.39 seconds
PS C:\Windows\system32> puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Facter: error while resolving custom facts in C:/ProgramData/PuppetLabs/puppet/cache/lib\facter\salts.rb: undefin
ed method `split' for nil:NilClass
Error: Facter: error while resolving custom facts in C:/ProgramData/PuppetLabs/puppet/cache/lib/facter\salts.rb: undefin
ed method `split' for nil:NilClass
Info: Caching catalog for erp-udc-build06.hautelook.local
Info: Applying configuration version '48ad96db3a314f99325dde5f328dab1e54c98a00'
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - C:/Program Files/uvnc bvba/UltraVnc2017
0508-5836-rk38fl.lock at /etc/puppetlabs/code/environments/production/site/nrhlteamcity/manifests/ultravnc.pp:13
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - C:/Program Files/uvnc bvba/UltraVnc2017
0508-5836-rk38fl.lock at /etc/puppetlabs/code/environments/production/site/nrhlteamcity/manifests/ultravnc.pp:13
Wrapped exception:
No such file or directory @ dir_s_mkdir - C:/Program Files/uvnc bvba/UltraVnc20170508-5836-rk38fl.lock
Error: /Stage[main]/Nrhlteamcity::Ultravnc/File[C:\Program Files\uvnc bvba\UltraVnc]/ensure: change from absent to file
failed: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - C:/Program Files/uvnc bvba/UltraVnc201
70508-5836-rk38fl.lock at /etc/puppetlabs/code/environments/production/site/nrhlteamcity/manifests/ultravnc.pp:13
Notice: /Stage[main]/Nrhlteamcity::Ultravnc/Service[uvnc_service]: Dependency File[C:\Program Files\uvnc bvba\UltraVnc]
has failures: true
Warning: /Stage[main]/Nrhlteamcity::Ultravnc/Service[uvnc_service]: Skipping because of failed dependencies
Notice: Applied catalog in 5.58 seconds"

And my puppet program looks like

"class nrhlteamcity::ultravnc {

if $::hostname =~ /^erp-(udc|aws)-build(06|07|08)/ {

      package { 'ultravnc':
        ensure   => latest,
        provider => 'chocolatey',
      }

      file { 'C:\Program Files\uvnc bvba\UltraVnc':
        ensure => 'present',
        source => 'puppet:///modules/nrhlteamcity/UltraVNC.ini',
      }

      service { 'uvnc_service':
        ensure  => 'running',
    }

      Package['ultravnc'] -> File['C:\Program Files\uvnc bvba\UltraVnc'] ~> Service['uvnc_service']

}"

I think I have provided the enough info here to trouble shoot the issue.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-05-08 14:51:12 -0600

gangadhar gravatar image

I have noticed the path provided for the "file" resource

"file { 'C:\Program Files\uvnc bvba\UltraVnc':"

As puppet assumes the "\" as escape character so puppet was unable to create the required file for me. I have changed the line to

"file { 'c:/Program Files/uvnc bvba/UltraVnc/UltraVNC.ini':"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-05-08 13:23:43 -0600

Seen: 39 times

Last updated: May 08