Re: [Puppet Users] Right approach to Windows installers

277 views
Skip to first unread message

Josh Cooper

unread,
Sep 17, 2012, 9:07:53 PM9/17/12
to puppet...@googlegroups.com
Hi Jason,

On Mon, Sep 17, 2012 at 11:05 AM, Jason_s <jason.s...@gmail.com> wrote:
> Hi Puppeteers,
>
> I hope I can get you advice about the best way to approach using MSIs and other installers on Windows.
>
> Currently I am downloading Windows installers from the puppet master with the puppet:// syntax and the "file" type into a temporary directory c:\puppet_temp with subdirectories where necessary. Then after running the installers witht the "package" type, I was hoping to remove them with the "tidy" type.
>
> Is this the right approach

Removing them will cause puppet to think they needed to be downloaded
the next time it runs. And then it will try to re-install the package.

> or should we be planning to host our installers in a Windows-based file server and using running the installers with a UNC path? Will this be a future feature?

UNC paths is on the roadmap http://projects.puppetlabs.com/issues/8657

Alternatively you might want to try out Simon's module:
http://forge.puppetlabs.com/simondean/net_share

> Assuming the temp directory approach is correct, could I get your advice on the most lightweight way to copy the files, since I can't use the checksum "none" setting, and I don't need to check the files are present on each run, I plan to remove them after the package is installed correctly.
>
> Sorry for the noob question. Look forward to your responses.
>
> Thanks, Jason
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/noF9F-TV4rgJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>

Josh

--
Josh Cooper
Developer, Puppet Labs

Josh Cooper

unread,
Sep 18, 2012, 2:06:33 AM9/18/12
to puppet...@googlegroups.com
On Mon, Sep 17, 2012 at 6:07 PM, Josh Cooper <jo...@puppetlabs.com> wrote:
> Hi Jason,
>
> On Mon, Sep 17, 2012 at 11:05 AM, Jason_s <jason.s...@gmail.com> wrote:
>> Hi Puppeteers,
>>
>> I hope I can get you advice about the best way to approach using MSIs and other installers on Windows.
>>
>> Currently I am downloading Windows installers from the puppet master with the puppet:// syntax and the "file" type into a temporary directory c:\puppet_temp with subdirectories where necessary. Then after running the installers witht the "package" type, I was hoping to remove them with the "tidy" type.
>>
>> Is this the right approach
>
> Removing them will cause puppet to think they needed to be downloaded
> the next time it runs. And then it will try to re-install the package.
>
>> or should we be planning to host our installers in a Windows-based file server and using running the installers with a UNC path? Will this be a future feature?
>
> UNC paths is on the roadmap http://projects.puppetlabs.com/issues/8657
>
> Alternatively you might want to try out Simon's module:
> http://forge.puppetlabs.com/simondean/net_share

My bad, this is for managing shares, not mounts (net use). See
http://projects.puppetlabs.com/issues/13197

Paul Tötterman

unread,
Sep 18, 2012, 2:51:04 AM9/18/12
to puppet...@googlegroups.com
UNC paths is on the roadmap http://projects.puppetlabs.com/issues/8657

I'm using UNC paths with 2.7.19. Works fine. https://github.com/puppetlabs/puppet-docs/pull/100

Cheers,
Paul

Jason_s

unread,
Sep 19, 2012, 6:04:54 PM9/19/12
to puppet...@googlegroups.com
Hi Josh,

I have realized my noob-ness since asking this question. I think it comes down to my mindset of thinking procedurally rather than in the puppet mindset of deterministically http://puppetlabs.com/blog/inside-puppet-about-determinism/

This are all great and useful comments: I will pass this on to my team!

Thanks for being such a resourceful community!

Cheers, JS

Jason_s

unread,
Sep 20, 2012, 2:54:14 AM9/20/12
to puppet...@googlegroups.com
Hi Paul,

Thanks - good to know. I will double-check our server and client versions today.

JS

Reply all
Reply to author
Forward
0 new messages