On Thu, Jun 4, 2015 at 1:05 AM, Puppeteer <[email protected]> wrote:
> Hi, > > I want to create a custom MSI for the puppet agent. Can someone guide me > on this. > I tried using puppetlabs/puppet_for_the_win but was not successful. > Hey! Unfortunately, we have yet to streamline this process for external use. You can still roll your own native facter build though. You'll want to use the script at https://github.com/puppetlabs/facter/blob/master/contrib/facter.ps1. You need to run the script on probably a windows 2012 box (64 bit), and I would strongly suggest reviewing the script to ensure that we don't do anything that's going to mess you up. It's meant to be run on a disposable box. After that builds, we collect all the built bits and library dependencies into the zip archive that the automation in puppet_for_the_win looks for. We don't have that automation in a public space, but here's a summary of what goes into that archive. This assumes you're building 64 bit, so if you're building for a 32 bit machine, you'll have to modify it. # Move all necessary dll's into facter bindir "cp /cygdrive/c/tools/mingw64/bin/libgcc_s_seh-1.dll /cygdrive/c/tools/mingw64/bin/libstdc++-6.dll /cygdrive/c/tools/mingw64/bin/libwinpthread-1.dll /home/Administrator/facter/release/bin/" # Format everything to prepare to archive it "mkdir -p /home/Administrator/archive/lib ; cp -r /home/Administrator/facter/release/bin /home/Administrator/facter/lib/inc /home/Administrator/archive/ ; cp /home/Administrator/facter/release/lib/facter.rb /home/Administrator/archive/lib/" # Zip up the built archives "7za.exe a -r -tzip facter.zip 'C:\\cygwin64\\home\\Administrator\\archive\\*'\" Once you have that archive, you can modify the config file you're using to point to where that archive can be found. That *should* let the automation in puppet_for_the_win work. Let me know how that goes! > > I used the command: > rake windows:build AGENT_VERSION_STRING=1.0.0 CONFIG=foss-4.1-x86.yaml > > I get the following error: > > curl -O > http://builds.puppetlabs.lan/facter/9586d5cd1ee6c18e88506a8f4a8b12f2ee51 > d154/artifacts/windows//facter-2.4.3-1074-g9586d5c-x86.zip > > curl: (6) Couldn't resolve host 'builds.puppetlabs.lan' > rake aborted! > Command failed with status (6): [curl -O > http://builds.puppetlabs.lan/facte...] > > Tasks: TOP => windows:msi => windows:wixobj => windows:wxs => > windows:stage => w > indows:checkout => windows:clone > (See full trace by running task with --trace) > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/d759891a-e50b-4553-a36f-3416f39a88c7%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/d759891a-e50b-4553-a36f-3416f39a88c7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Melissa Stone Release Engineer, Puppet Labs -------------------------------------------------- *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter> * *—**save $349!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAHEe_ko3nJcrCApycWK5a0Jh%3Dv8GUeETkDi8VZqXiMzRV3PDgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
