Jira (BOLT-1158) Publish bash helper library

2019-05-29 Thread Cas Donoghue (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cas Donoghue commented on  BOLT-1158  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Publish bash helper library   
 

  
 
 
 
 

 
 A potential starting point has been included by Adrian Parreiras Horta in the package and service modules. https://github.com/puppetlabs/puppetlabs-service/pull/96/commits/1d06ba603d10afe7b344c01a14f6dc2efdc62a96  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.298394.1551810745000.26606.1559170440262%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


Jira (BOLT-1158) Publish bash helper library

2019-04-16 Thread Alex Dreyer (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alex Dreyer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1158  
 
 
  Publish bash helper library   
 

  
 
 
 
 

 
Change By: 
 Alex Dreyer  
 
 
Issue Type: 
 Bug New Feature  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (BOLT-1158) Publish bash helper library

2019-04-05 Thread Adrian Parreiras Horta (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Parreiras Horta commented on  BOLT-1158  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Publish bash helper library   
 

  
 
 
 
 

 
 Here's the `common.sh` I find myself using in tasks at the moment.  Attaching since Jira likes to ruin formatting. The `fail` function is a bit different from the one going into puppetlabs-service.  It makes $1 the key of the object, the idea being the step that failed can be identified.  Something like    
 
 
 
 
 fail "install_foo" "it no work" 1   
 
 
 
  Produces:      
 
 
 
 
 "install_foo": {  
 
 
   "status": "error",  
 
 
   "message": "it no work"  
 
 
 }  
 
 
 
  With an exit code of 1. I really like the indirection since you don't have to keep doing things like name=$PT_name, it just makes them available to you by sourcing the script. The trap and cleanup function would be nice, but I don't think it works as is.        
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  

Jira (BOLT-1158) Publish bash helper library

2019-04-05 Thread Adrian Parreiras Horta (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Parreiras Horta updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1158  
 
 
  Publish bash helper library   
 

  
 
 
 
 

 
Change By: 
 Adrian Parreiras Horta  
 
 
Attachment: 
 common.sh  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (BOLT-1158) Publish bash helper library

2019-04-05 Thread Adrian Parreiras Horta (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Parreiras Horta updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1158  
 
 
  Publish bash helper library   
 

  
 
 
 
 

 
Change By: 
 Adrian Parreiras Horta  
 
 
Attachment: 
 common.sh  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (BOLT-1158) Publish bash helper library

2019-04-05 Thread Adrian Parreiras Horta (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Adrian Parreiras Horta updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1158  
 
 
  Publish bash helper library   
 

  
 
 
 
 

 
Change By: 
 Adrian Parreiras Horta  
 
 
Attachment: 
 common.sh  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (BOLT-1158) Publish bash helper library

2019-03-05 Thread Cas Donoghue (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cas Donoghue created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1158  
 
 
  Publish bash helper library   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/03/05 10:32 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Cas Donoghue  
 

  
 
 
 
 

 
 Build up some bash helpers similar to the ruby,python_task_helper s. Given the limitations of bash the helpers will not be as fully featured. One idea that has come up is to build a solution for handling the `null` string value when the JSON representation of nil/null is coerced to a string in the process of "envifying" parameters.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)