Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.8.12
-
Component/s: None
-
Labels:None
-
Environment:
Windows 7, Windows Server 2003, Windows Server 2008
Description
Make chef-client run on Windows with recipes achieve the following operations:
1. create file, delete file
2. create directory, delete directory, recursively or not.
3. Copy remote directory
4. Copy remote file
5. Render template
Permissions, Groups, Owners, etc on files and directories are not in the scope of this ticket.
The following things need to be fixed:
1. Dir[pattern] returns blank array if "\" is in the pattern on Windows
Solution:
Monkey patch Dir.glob so if the platform is Windows (mswin or mingw32), do a
gsub!(/\\/, "/")
on the pattern for Dir.glob(pattern, flag=0)
2. Reading file from a path specified in a Chef::Config entry needs to gsub all '\' to '/'.
3. Stop trapping HUP signal if it's on Windows.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Nuo Yan [ nuo ] |
| Description | Monkey patch Dir.glob so if the platform is Windows (mswin or mingw32), do a gsub!(/\\/, "/") on the pattern for Dir.glob(pattern, flag=0) |
Monkey patch Dir.glob so if the platform is Windows (mswin or mingw32), do a {code} gsub!(/\\/, "/") {code} on the pattern for Dir.glob(pattern, flag=0) |
| Summary | Dir[pattern] returns blank array if "\" is in the pattern on Windows | Make Chef-Client run on Windows with simple file, directory, remote file, remote directory, and template recipes |
| Environment | Windows 7, Windows Server 2003, Windows Server 2008 | |
| Description |
Monkey patch Dir.glob so if the platform is Windows (mswin or mingw32), do a {code} gsub!(/\\/, "/") {code} on the pattern for Dir.glob(pattern, flag=0) |
Make chef-client run on Windows with recipes achieve the following operations: 1. create file, delete file 2. create directory, delete directory, recursively or not. 3. Copy remote directory 4. Copy remote file 5. Render template Permissions, Groups, Owners, etc on files and directories are not in the scope of this ticket. The following things need to be fixed: 1. Dir[pattern] returns blank array if "\" is in the pattern on Windows Solution: Monkey patch Dir.glob so if the platform is Windows (mswin or mingw32), do a {code} gsub!(/\\/, "/") {code} on the pattern for Dir.glob(pattern, flag=0) 2. Reading file from a path specified in a Chef::Config entry needs to gsub all '\' to '/'. 3. Stop trapping HUP signal if it's on Windows. |
| Summary | Make Chef-Client run on Windows with simple file, directory, remote file, remote directory, and template recipes | Make Chef-Client run on Windows with cookbooks using file, directory, remote file, remote directory, and template providers |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Nuo Yan [ nuo ] | Adam Jacob [ adam ] |
| Resolution | Fixed [ 1 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Triage Status | [Triaged] | |
| Assignee | Adam Jacob [ adam ] | Daniel DeLeo [ dan@kallistec.com ] |
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Fix Version/s | 0.8.12 [ 10060 ] | |
| Resolution | Fixed [ 1 ] |
| Workflow | jira [ 11675 ] | New OSS [ 19228 ] |
| Workflow | New OSS [ 19228 ] | OSS: Product Management [ 27137 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
5d 5h 28m | 1 | Nuo Yan | 03/May/10 4:58 AM | |||||
|
1d 16h 17m | 1 | Daniel DeLeo | 04/May/10 9:16 PM | |||||
|
1d 2h 26m | 1 | Daniel DeLeo | 05/May/10 11:42 PM | |||||
|
13s | 1 | Daniel DeLeo | 05/May/10 11:43 PM |
added wiki formatting to make the backslashes show up right