Search code examples
ubuntuvagrantpuppetubuntu-14.04puphpet

Using config from PuPHPet for prod Server


I built a testing Server with PuPHPet and Vagrant running Ubuntu 14.04.
I have a server with root acces running Ubuntu 14.04

My goal is to install all the software that I have on my Vagrant Box on my live server.
Therefore I've installed puppetmaster and puppet with "apt-get" and configured them to use the host "puppet" which I added in the host file of the live Server.

Then I copied everything from my Vagrant Box puphpet/puppet Folder to my server /etc/puppet/manifests.
I installed "augeas-tools and libaugeas-dev" with apt-get and run "/usr/bin/gem install haml hiera facter json ruby-augeas"

After that I tried to load the puppet manifest with "puppet agent --test" which kind of worked but produced this error: "Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Could not match |$key, at /etc/puppet/manifests/nodes/hhvm.pp:63 on node puppet"
So obviously it doesn't work that easy. Unfortunately I haven't found a tutorial or something on Stackoverflow to help me.

The Question is: How can I use the PuPHPet stuff on my live server to get it up and running, or what do I have to change? (Yes I know, I shouldn't use X-Debug, but besides that?)


Solution

  • PuPHPet depends on the Puppet future parser for a few tools. The error you're seeing is the foreach that is available only in that parser.

    Currently the easiest way to provision an existing server with a PuPHPet config is to use this plugin: https://github.com/tknerr/vagrant-managed-servers