Code Monkey home page Code Monkey logo

packerpuphetpuppet's Introduction

Explanation

This is a repo to illustrate my problems with the combination of packer puphpet and puppet. https://github.com/chef/bento is the basis I try to build upon.

I am using their basebox ubuntu-14.04-amd64.json

Bento

Bento is a project that encapsulates Packer templates for building Vagrant baseboxes. We use these boxes internally at Chef Software, Inc. for testing Hosted Chef, Chef Server and our open source cookbooks via test-kitchen.

Follow along to replicate my problem:

First, install Packer and then clone this project.

Inside the directory, a JSON file describes each box that can be built. I use ubuntu-14.04-amd64.json. As I use paralells the following command will only build a parallels box:

packer build -only=parallels-iso ubuntu-14.04-amd64.json

Description of the problem

The problem appears when puppet is launched via packer. There are issues with puppets modules and thus packer-build fails. However the same puppet files do work with vagrant.

The installation works fine. Parallels tools are installed as supposed. However there are problems with puppet reading the modules created by puphpet

Example of the error code

so the commad is actually executed as follows

==> parallels-iso: Provisioning with Puppet...
    parallels-iso: Creating Puppet staging directory...
    parallels-iso: Uploading hiera configuration...
    parallels-iso: Uploading manifest directory from: puphpet/puppet
    parallels-iso: Uploading local modules from: puphpet/puppet/modules
    parallels-iso:
    parallels-iso:
    parallels-iso: Uploading manifests...
    parallels-iso:
    parallels-iso: Running Puppet:   sudo -E puppet apply --verbose --modulepath='/tmp/packer-puppet-masterless/module-0' --hiera_config='/tmp/packer-puppet-masterless/hiera.yaml' --manifestdir='/tmp/packer-puppet-masterless/manifests' --detailed-exitcodes /tmp/packer-puppet-masterless/manifests/site.pp

and results in the following error after a couple of packages have been parsed by puppet:

parallels-iso: Info: Loading facts in /tmp/packer-puppet-masterless/module-0/php/lib/facter/php_fact_extension_dir.rb
    parallels-iso: Error: Could not parse for environment production: Syntax error at '{'; expected '}' at /tmp/packer-puppet-masterless/manifests/nodes/Postgresql.pp:57 on node vagrant.vm
    parallels-iso: Error: Could not parse for environment production: Syntax error at '{'; expected '}' at /tmp/packer-puppet-masterless/manifests/nodes/Postgresql.pp:57 on node vagrant.vm
==> parallels-iso: Unregistering virtual machine...
==> parallels-iso: Deleting output directory...
Build 'parallels-iso' errored: Puppet exited with a non-zero exit status: 1

==> Some builds didn't complete successfully and had errors:
--> parallels-iso: Puppet exited with a non-zero exit status: 1

packerpuphetpuppet's People

Contributors

juliandunn avatar fnichol avatar hh avatar schisamo avatar tmatilai avatar geoheil avatar bflad avatar scotthain avatar legal90 avatar tduffield avatar eshamow avatar lewg avatar rickard-von-essen avatar rjocoleman avatar client9 avatar sethvargo avatar vincentaubert avatar zuazo avatar petecheslock avatar justsee avatar josephholsten avatar hartmantis avatar jamesonjlee avatar routelastresort avatar comuttun avatar maks3w avatar kramvan1 avatar petere avatar reneoelke avatar rmoriz avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.