Issue #8349 has been updated by James Turnbull.

Target version deleted (Telly)


----------------------------------------
Bug #8349: Cannot install puppet on Windows using the default options
https://projects.puppetlabs.com/issues/8349

Author: Josh Cooper
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The puppet install.rb does not run on Windows, because it attempts to install 
into /etc. We need better defaults on Windows so the install goes cleanly,

<pre>
Z:\work\puppet>ruby install.rb
C:/Ruby187/lib/ruby/1.8/fileutils.rb:243:in `mkdir': No such file or directory 
- /etc (Errno::ENOENT)
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:217:in `makedirs'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:215:in `makedirs'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:201:in `each'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:201:in `makedirs'
        from install.rb:299:in `prepare_installation'
        from install.rb:433
</pre>

In addition, the --destdir option does not work, because it does not handle 
drive letters or UNC paths (it generates a path like C:\mypuppetC:\mypuppet\etc)

<pre>
Z:\work\puppet>ruby install.rb --destdir=c:\mypuppet
C:/Ruby187/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Invalid argument - 
c:\mypuppetC: (Errno::EINVAL)
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:217:in `makedirs'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:215:in `makedirs'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:201:in `each'
        from C:/Ruby187/lib/ruby/1.8/fileutils.rb:201:in `makedirs'
        from install.rb:300:in `prepare_installation'
        from install.rb:433
</pre>

So currently the only way to install puppet on Windows is to specify the 
various directories:

<pre>
Z:\work\puppet>ruby install.rb --bindir=c:\mypuppet\bin 
--sbindir=c:\mypuppet\sbin --mandir=c:\mypuppet\man --configdir=c:\mypuppet\conf
</pre>

Note facter does install cleanly


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to