Hi Gareth,

thanks a lot, using the control comment fixed my problem and the CI run is
now passing.

Regards Thomas

2016-01-19 13:31 GMT+01:00 Gareth Rushgrove <[email protected]>:

> The error from Travis suggests a linting issue, specifically:
>
>     manifests/config/mysql.pp - WARNING: ensure found on line but it's
> not the first attribute on line 24
>
> My guess for why you're not seeing that locally, but it's coming up in
> Travis is that the version of puppet-lint is unspecified. I'd wager
> that locally you have an older version, but Travis is installing the
> latest.
>
> https://github.com/thbe/puppet-bacula/blob/master/Gemfile#L7
>
> Looking at this more closely however the plot thickens. It looks like
> it might be a bug in puppet-lint.
>
>
> https://github.com/thbe/puppet-bacula/blob/master/manifests/config/mysql.pp#L24
>
> The code referenced does use ensure, but as an attribute of a nested
> data structure, not as a parameter.
>
> Two options present:
>
> * Add a control comment to ignore the check for that line, described
> here: http://puppet-lint.com/controlcomments/
> * Determine the local version of puppet-lint that is passing the check
> and pin to that version in your Gemfile
>
> I'd also open the issue over on
> https://github.com/rodjek/puppet-lint/issues as I think it's a bug.
>
> Cheers (and definitely not off-topic. This list is for pretty-much
> anything that's useful to users of Puppet in my view.
>
> Gareth
>
> On 19 January 2016 at 11:54, Thomas Bendler <[email protected]>
> wrote:
> >
> > Hello,
> >
> > I have a small problem with a Puppet module I've wrote. The module is:
> >
> > https://forge.puppetlabs.com/thbe/bacula
> >
> > When I check the module locally with:
> >
> > bundle exec rake validate && bundle exec rake lint && bundle exec rake
> spec
> > SPEC_OPTS='--format documentation'
> >
> > it says everything is fine. When I deploy the module on my test box, it
> work
> > fine. When I pass my commit to Travis CI, it fail:
> >
> > https://travis-ci.org/thbe/puppet-bacula/builds/103322979
> >
> > Any Ideas?
> >
> > Regards Thomas
> > --
> > Linux ... enjoy the ride!
> >
> > --
> > 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/CAELoU1OO_vbiJoG2gmEEbnjE23LnUvH7yYJZmk4t_W9NoK_rSg%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Gareth Rushgrove
> @garethr
>
> devopsweekly.com
> morethanseven.net
> garethrushgrove.com
>
> --
> 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/CAFi_6y%2Bgu9uEbG6eooEHTQsxaFu8N6dNme5Qm0QhFKhDAxu2CA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
performance, security, automation, SAP
cimt consulting ag, Burchardstrasse 17, 20095 Hamburg
fon: +49 (163) 6081 302, fax: +49 (40) 5 33 02-22, web: www.cimt.de
key: FED7C867 at pgp.mit.edu

Sitz der Gesellschaft: Hamburg, Amtsgericht Hamburg, HRB 74173
Vorstand: Christoph Friedlaender, Dr.-Ing. Thorsten Kuhlmann
Vorsitzender des Aufsichtsrats: Christian Gottsmann

-- 
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/CAELoU1Pyvfqh0peOUi8p2futBmiCex6QFRrgxzidYc4r8azA4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to