anchor.diff: -= Create Ubuntu Puppet-agent on Windows
  += Create Ubuntu Puppet-agent package on Windows
   :published_at: 2017-XX-XX
   :hp-tags: puppet, jruby, windows
  -:hp-alt-title: Testing puppet-agent on Windows to create on Ubuntu
  +:hp-alt-title: Testing puppet-agent on Windows to create Ubuntu package
   
   == Toolbox
   
  
positive.code: #
  #Run openssh
  $ service ssh --full-restart
  #
  #Add the ssh key for root
  $ touch /root/.ssh/authorized_keys
  
negative.code: 
  First you need to create the tools with *pl-build-tools-vanagon*
  
  You must create each tool. Actually the list for ubuntu-14 is:
  
  . pl-gcc
  . pl-boost
  . pl-cmake
  . pl-binutils
  . pl-yaml-cpp 
   
  [source,dos]
  > cd pl-build-tools-vanagon
  > ruby ..\vanagon.rb pl-gcc ubuntu-14.04-amd64 127.0.0.1:2222
  > ruby ..\vanagon.rb pl-boost ubuntu-14.04-amd64 127.0.0.1:2222
  > ruby ..\vanagon.rb pl-cmake ubuntu-14.04-amd64 127.0.0.1:2222
  > ruby ..\vanagon.rb pl-binutils ubuntu-14.04-amd64 127.0.0.1:2222
  > ruby ..\vanagon.rb pl-yaml-cpp ubuntu-14.04-amd64 127.0.0.1:2222
  > cd ..
  
  Unlike the original script, the ruby script *vanagon.rb* install the generated package on the machine at the end.
  This is necessary for building others packages. 
  (Original script use an url not allowed outside puppetlabs)
  
  
  Now you can build the puppet-agent
  
  > cd puppet-agent
  > ruby ..\vanagon.rb puppet-agent ubuntu-14.04-amd64 127.0.0.1:2222
  > cd ..
  
  