Jira (BOLT-1430) Standardize working directory for local transport

2019-08-20 Thread Cas Donoghue (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cas Donoghue commented on  BOLT-1430  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Standardize working directory for local transport   
 

  
 
 
 
 

 
 moved to github issue https://github.com/puppetlabs/bolt/issues/1163  
 

  
 
 
 
 

 
 
 

 
 
 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.314226.1561573503000.62635.1566311460072%40Atlassian.JIRA.


Jira (BOLT-1430) Standardize working directory for local transport

2019-08-19 Thread Yasmin Rajabi (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yasmin Rajabi updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1430  
 
 
  Standardize working directory for local transport   
 

  
 
 
 
 

 
Change By: 
 Yasmin Rajabi  
 
 
Labels: 
 debugging docs ghm  
 

  
 
 
 
 

 
 
 

 
 
 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.314226.1561573503000.61846.1566253980161%40Atlassian.JIRA.


Jira (BOLT-1430) Standardize working directory for local transport

2019-06-26 Thread Cas Donoghue (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cas Donoghue commented on  BOLT-1430  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Standardize working directory for local transport   
 

  
 
 
 
 

 
 Conversation from slack: Are people running commands over the local transport? What directory do you expect commands to be run from? Currently when running commands over winrm/ssh `run command` executes from the users home directory. For the local transport on non-windows the command executes from whatever directory bolt was invoked from. For windows local transport the command is executed from a randomized temporary directory. What would make the most sense to standardize on? nmaludy [10:11 AM] on local i expect it to be run from wherever bolt was run from would be nice in both cases if you could specify `cwd` for the command/script/etc iristyle [10:17 AM] On Windows, I would expect initial working directory to be users home directory When you start an interactive PowerShell session, that’s where you start (unless you’ve elevated, in which case you start in `c:\windows\system32`. When you connect over winrm, you end up in the users documents folder (at least on my machine) - let me see if there are any docs around that ```C:\Windows\system32> whoami desktop-phtd0h8\iristyle C:\Windows\system32> Enter-PSSession localhost [localhost]: PS C:\Users\Iristyle\Documents>```  
 

  
 
 
 
 

 
 
 

 
 
 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.

Jira (BOLT-1430) Standardize working directory for local transport

2019-06-26 Thread Cas Donoghue (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cas Donoghue created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet Task Runner /  BOLT-1430  
 
 
  Standardize working directory for local transport   
 

  
 
 
 
 

 
Issue Type: 
  New Feature  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/06/26 11:25 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Cas Donoghue  
 

  
 
 
 
 

 
 Currently the directory from which commands are executed are different depending on the combination of transport and bolt host.  For the local transport on windows bolt controller: https://github.com/puppetlabs/bolt/blob/614025c960ec13af79ca13f213521c7ad53d2b96/lib/bolt/transport/local_windows.rb#L89-L99 The command is executed from a temp directory  
 
 
 
 
 PS C:\Users\Administrator> bolt command run "powershell.exe -noprofile -command pwd" -t localhost  
 
 
 Started on localhost...  
 
 
 Finished on localhost:  
 
 
   STDOUT:  
 
 
    
 
 
 Path