Giter Club home page Giter Club logo

Comments (7)

nanliu avatar nanliu commented on September 26, 2024

What's your puppet/ruby version?

$ ruby -c lib/**/*.rb
Syntax OK

Maybe Ruby 1.8.7 is not be happy with the , at the end? (I'm downloading tools and compiling 1.8.7 on my system to check right now).

from puppet-archive.

myoung34 avatar myoung34 commented on September 26, 2024

Basic centos 6, so ruby 1.8.7 an puppet-3.5.1.

I usually avoid ruby 1.8.7, but I have an untouched centos AWS AMI that I use for agent rebuilding.

My teamcity build agents are built using that base centos AMI, then the shell scripts to install puppet, then a single puppet run via Packer.

Upgrading ruby would mean modifying ruby before the puppet run. However the purpose of the puppet run is to install everything my teamcity build agent requires, which includes RVM (and ruby 2.1.1).

from puppet-archive.

nanliu avatar nanliu commented on September 26, 2024

Yeah, I'm using Puppet Enterprise so I didn't catch this. Once I have Ruby 1.8.7, I'll dive into this. Looking forward to Puppet AIO packages since it will simplify these issues.

from puppet-archive.

nanliu avatar nanliu commented on September 26, 2024

So, yes it's the comma, despite the basic syntax check passing ok. If the latest PR resolve the problem, I'll release 0.2.1 tomorrow. Thanks.

Note: with travis.ci down most of the day, I'm going to defer this until they are back online.

from puppet-archive.

myoung34 avatar myoung34 commented on September 26, 2024

Confirmed resolved. You can close this once 0.2.1 makes it to the forge, that way I can remove the following commit when I get the closed email.

Before using master instead of forge 0.2.0:

[15:24:58][Step 2/2]  [0;32m    amazon-ebs:  [1;31mError: Could not autoload puppet/provider/archive/default: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:108: syntax error, unexpected ')' [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:115: syntax error, unexpected $end, expecting kEND [0m [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs:  [1;31mError: Could not autoload puppet/type/archive: Could not autoload puppet/provider/archive/default: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:108: syntax error, unexpected ')' [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:115: syntax error, unexpected $end, expecting kEND [0m [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs:  [1;31mError: Could not autoload puppet/type/archive: Could not autoload puppet/provider/archive/default: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:108: syntax error, unexpected ')' [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:115: syntax error, unexpected $end, expecting kEND on node ip-10-203-10-89..com [0m [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs:  [1;31mError: Could not autoload puppet/type/archive: Could not autoload puppet/provider/archive/default: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:108: syntax error, unexpected ')' [0m
[15:24:58][Step 2/2]  [0;32m    amazon-ebs: /etc/puppet/modules/archive/lib/puppet/provider/archive/default.rb:115: syntax error, unexpected $end, expecting kEND on node ip-10-203-10-89..com [0m [0m

Using code in master:

--- a/puppet/Packer.json
+++ b/puppet/Packer.json
@@ -41,11 +41,11 @@
       "type": "shell",
       "inline": [
         "sudo yum install -y https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm >/dev/null 2>&1",
-        "sudo yum install -y hiera-1.3.2 puppet-3.5.1",
+        "sudo yum install -y hiera-1.3.2 puppet-3.5.1 git",
         "[[ -d /etc/puppet/modules/ntp ]] || sudo puppet module install puppetlabs-ntp",
         "[[ -d /etc/puppet/modules/java ]] || sudo puppet module install puppetlabs-java",
         "[[ -d /etc/puppet/modules/pip ]] || sudo puppet module install tracywebtech-pip",
-        "[[ -d /etc/puppet/modules/archive ]] || sudo puppet module install nanliu-archive"
+        "[[ -d /etc/puppet/modules/archive ]] || (cd /etc/puppet/modules; git clone https://github.com/nanliu/puppet-archive.git archive; cd -) #testing https://github.com/nanliu/puppet-archive/issues/31"
       ]
     },

Output/build was successful.

from puppet-archive.

nanliu avatar nanliu commented on September 26, 2024

0.2.1 released on forge. Let me know if you run into any other surprises. Thanks.

from puppet-archive.

myoung34 avatar myoung34 commented on September 26, 2024

Tested via forge, all looks good. Thanks!

from puppet-archive.

Related Issues (20)

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.