Jira (PUP-1547) PR (2311) Undefined method `groups' for nil:NilClass

2014-05-02 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez commented on an issue


















  Re: PR (2311) Undefined method `groups' for nil:NilClass 










yes, mocking some methods, https://github.com/maestrodev/maestro-puppet-example/blob/master/spec/spec_helper.rb#L19












   

 Add Comment

























 Puppet /  PUP-1547



  PR (2311) Undefined method `groups' for nil:NilClass 







 Lost quite some time in a rspec-puppet issue due to this error  Ultimately it was due to being on os x and setting {{operatingsystem}} fact to centos, making puppet unable to find providers for the user type.   {code}  NoMethodError:  undefined method `groups' for nil:NilClass  # /Users/csanchez/.rvm/gems/ruby-1.9.3-p484/gems/puppet-3.4















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1547) PR (2311) Undefined method `groups' for nil:NilClass

2014-03-26 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez commented on an issue


















  Re: PR (2311) Undefined method `groups' for nil:NilClass 










updated the PR commit msg and added a spec












   

 Add Comment

























 Puppet /  PUP-1547



  PR (2311) Undefined method `groups' for nil:NilClass 







 Lost quite some time in a rspec-puppet issue due to this error  Ultimately it was due to being on os x and setting {{operatingsystem}} fact to centos, making puppet unable to find providers for the user type.   {code}  NoMethodError:  undefined method `groups' for nil:NilClass  # /Users/csanchez/.rvm/gems/ruby-1.9.3-p484/gems/puppet-3.4















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2040) Allow excluding content from Puppet module tool built packages

2014-03-26 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-2040



  Allow excluding content from Puppet module tool built packages 










Change By:

 Carlos Sanchez









 Puppetmoduletoolonlyexcludessomefilesfrombuilttarball ( {{ .*,~*,pkg,... ) }} Theresultisthatmoduletarballscouldhavespecfiles,fixtures,andanytemporaryfilescreatedduringbuildItshouldallowexcludingcontentwith{{puppetmodulebuild--excludePATTERN1,PATTERN2,...}}












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2040) Allow excluding content from Puppet module tool built packages

2014-03-26 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-2040



  Allow excluding content from Puppet module tool built packages 










Change By:

 Carlos Sanchez









 Puppetmoduletoolonlyexcludessomefilesfrombuilttarball(.*,~*,pkg,...)Theresultisthatmoduletarballscouldhavespecfiles,fixtures,andanytemporaryfilescreatedduringbuildItshouldallowexcludingcontentwith{ { puppetmodulebuild--excludePATTERN1,PATTERN2,...} }












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2040) Allow excluding content from Puppet module tool built packages

2014-03-26 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-2040



  Allow excluding content from Puppet module tool built packages 










Change By:

 Carlos Sanchez









 Puppetmoduletoolonlyexcludessomefilesfrombuilttarball{{. \ *,~ \ *,pkg,...}}Theresultisthatmoduletarballscouldhavespecfiles,fixtures,andanytemporaryfilescreatedduringbuildItshouldallowexcludingcontentwith{{puppetmodulebuild--excludePATTERN1,PATTERN2,...}}












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2040) Allow excluding content from Puppet module tool built packages

2014-03-26 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez created an issue


















 Puppet /  PUP-2040



  Allow excluding content from Puppet module tool built packages 










Issue Type:

  Improvement




Assignee:


 Unassigned




Created:


 26/Mar/14 3:41 AM




Labels:


 module




Priority:

  Normal




Reporter:

 Carlos Sanchez










Puppet module tool only excludes some files from built tarball (., ~, pkg, ...)
The result is that module tarballs could have spec files, fixtures, and any temporary files created during build
It should allow excluding content with  {puppet module build --exclude PATTERN1,PATTERN2,...}












   

 Add Comment

















 

Jira (PUP-2040) Allow excluding content from Puppet module tool built packages

2014-03-26 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez commented on an issue


















  Re: Allow excluding content from Puppet module tool built packages 










PR at https://github.com/puppetlabs/puppet/pull/2472












   

 Add Comment

























 Puppet /  PUP-2040



  Allow excluding content from Puppet module tool built packages 







 Puppet module tool only excludes some files from built tarball {{.\*, ~\*, pkg, ...}}   The result is that module tarballs could have spec files, fixtures, and any temporary files created during build   It should allow excluding content with {{puppet module build --exclude PATTERN1,PATTERN2,...}}















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1547) Undefined method `groups' for nil:NilClass

2014-01-30 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez commented on an issue


















  Re: Undefined method `groups' for nil:NilClass 










PR at https://github.com/puppetlabs/puppet/pull/2311












   

 Add Comment

























 Puppet /  PUP-1547



  Undefined method `groups' for nil:NilClass 







 Lost quite some time in a rspec-puppet issue due to this error  Ultimately it was due to being on os x and setting {{operatingsystem}} fact to centos, making puppet unable to find providers for the user type.   {code}  NoMethodError:  undefined method `groups' for nil:NilClass  # /Users/csanchez/.rvm/gems/ruby-1.9.3-p484/gems/puppet-3.4















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1547) Undefined method `groups' for nil:NilClass

2014-01-30 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez created an issue


















 Puppet /  PUP-1547



  Undefined method `groups' for nil:NilClass 










Issue Type:

  Bug




Affects Versions:


 3.4.2




Assignee:

 Carlos Sanchez




Created:


 30/Jan/14 8:03 AM




Priority:

  Normal




Reporter:

 Carlos Sanchez










Lost quite some time in a rspec-puppet issue due to this error Ultimately it was due to being on os x and setting operatingsystem fact to centos, making puppet unable to find providers for the user type.



 NoMethodError:
   undefined method `groups' for nil:NilClass
 # /Users/csanchez/.rvm/gems/ruby-1.9.3-p484/gems/puppet-3.4.2/lib/puppet/property/list.rb:57:in `retrieve'
 # /Users/csanchez/.rvm/gems/ruby-1.9.3-p484/gems/puppet-3.4.2/lib/puppet/property/list.rb:46:in `should'
 # /Users/csanchez/.rvm/gems/ruby-1.9.3-p484/gems/puppet-3.4.2/lib/puppet/type/user.rb:359:in `block (2 levels) in module:Puppet'















   

 Add Comment


Jira (PUP-1522) Hash in class parameter breaks doc generation

2014-01-27 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-1522



  Hash in class parameter breaks doc generation 










Change By:

 Carlos Sanchez









 HavingahashinaclassparametermakestheClassdocumentationtobediscardedwhenrunningpuppetdocRunning`puppetdoc--moderdoc--manifestdirtest/manifests/test.pp--modulepath./` ` {{ test/manifests/test.pp ` }}  pre {code} #Class:test##testclass.Thiscommentisignoredbypuppetdocclasstest($p={}){}#Class:test2##test2class.ThiscommentisNOTignoredbypuppetdocclasstest2(){} /pre {code} Itriedtonarrowitdownandseemsanissueatmanifestparsetime,asthe ` {{ klass.doc ` }} variableisalreadyin ` {{ puppet/util/rdoc/parser.rb ` }} 












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Jira (PUP-1164) Order matters with tagged function

2014-01-23 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-1164



  Order matters with tagged function 










Change By:

 Carlos Sanchez









 Itshouldbenotedinthedocumentationofthelimitswhenusingthe'tagged'functionorderingofclassesvia'include'matters.Iethiscode.code: pre {code} classa{notify{classa:}iftagged(b){notify{foundclassb:}}}classb{notify{classb:}}classtest{notify{classtest:}includeaincludeb} /pre {code} testoutput: pre {code} [root@bast~]#puppet-eincludetesttest.pp--verbose--logdest=console--debugdebug:importing'/home/larry/test.pp'info:Autoloadedmoduletestdebug:Creatingdefaultschedulesdebug://test/a/Notify[classa]:Changingmessagedebug://test/a/Notify[classa]:1change(s)notice:classanotice://test/a/Notify[classa]/message:defined'message'as'classa'debug://test/Notify[classtest]:Changingmessagedebug://test/Notify[classtest]:1change(s)notice:classtestnotice://test/Notify[classtest]/message:defined'message'as'classtest'debug://test/b/Notify[classb]:Changingmessagedebug://test/b/Notify[classb]:1change(s)notice:classbnotice://test/b/Notify[classb]/message:defined'message'as'classb'debug:Finishingtransaction70131190151540with3changes /pre {code} willonlyoutputfoundclassbwhentheorderofincludesisreversed.












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit 

Jira (PUP-1080) Variable interpolation in class parameters seems random

2014-01-11 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-1080



  Variable interpolation in class parameters seems random 










Change By:

 Carlos Sanchez









 Inclassparameters,thingslike {code} x=x,y=y${x} {code} don'talwaysevaluateright ( {code} y=yx ), {code} seemsrandom.I'musing2.7.1 pre {code} classtest1($servicex=sonar,$logfoldera=${homex}/logs,$logfoldere=${homey}/logs,$logfolderh=${homez}/logs,$logfolder=${homex}/logs,$homex=/var/${servicex},$homey=/var/${servicex},$homez=/var/${servicex}){notice($homex)notice($homey)notice($homez)notice(-)notice($logfoldera)notice($logfoldere)notice($logfolderh)} /pre {code} output: pre {code} notice:Scope(Class[Test1]):/var/sonarnotice:Scope(Class[Test1]):/var/sonarnotice:Scope(Class[Test1]):/var/sonarnotice:Scope(Class[Test1]):-notice:Scope(Class[Test1]):/var/sonar/logsnotice:Scope(Class[Test1]):/logsnotice:Scope(Class[Test1]):/logs /pre {code}   Notethelasttwomessagesshouldprint/var/sonar/logsOrderingtheparamentersintheordertheyareneededgetsthesameresult.Justbychangingthenameoftheparametersfromclasstest1totest2Igetdifferentevaluationsofthevariables,oneisrightandtwoarewrong,youcanseethatin[thisgist](https://gist.github.com/1250837)Commentedon[theuserlist](https://groups.google.com/d/topic/puppet-users/x_BCxE6SQcM/discussion)












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at 

Jira (PUP-1162) puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass

2013-12-30 Thread Carlos Sanchez (JIRA)
Title: Message Title










 

 Carlos Sanchez updated an issue


















 Puppet /  PUP-1162



  puppet resource error with no suitable provider: Could not run: undefined method `exists?' for nil:NilClass 










Change By:

 Carlos Sanchez









 Following[theresourcesdocumentation](http://docs.puppetlabs.com/learning/ral.html)Iexecutethefollowingcommandasnormaluserandget: pre {code} igalic@tynix~%puppetresourceuserrootError:Couldnotrun:undefinedmethod`exists?'fornil:NilClass1igalic@tynix~%puppetresourceuserigalicError:Couldnotrun:undefinedmethod`exists?'fornil:NilClass1igalic@tynix~% /pre {code} Whenexecutingthesamecommandsasroot,Igettheexpectedresults: pre {code} tynix~#puppetresourceuserrootuser{'root':ensure='present',comment='root',gid='0',groups=['root','bin','daemon','sys','adm','disk','wheel'],home='/root',shell='/bin/bash',uid='0',}tynix~#puppetresourceuserigalicuser{'igalic':ensure='present',comment='IgorGalić',gid='501',groups=['wheel','jupiter','rvm'],home='/home/igalic',shell='/bin/zsh',uid='500',}tynix~# /pre {code} Environment:@ruby1.9.3p327(2012-11-10revision37606)[x86_64-linux]@












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.