summaryrefslogtreecommitdiffstats
path: root/lib/puppet/server/fileserver.rb
Commit message (Collapse)AuthorAgeFilesLines
* Moving all of the client and server code into a single network/ directory. ↵luke2007-02-081-591/+0
| | | | | | In other words, more code structure cleanup. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2179 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving some of the stand-alone classes into the util/ subdirectory, to clean ↵luke2007-02-071-1/+1
| | | | | | up the top-level namespace a bit. This is a lot of file modifications, but most of them just change class names and file paths. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2178 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the state-rename branch. This includes the diff from version 2156 ↵luke2007-02-071-5/+5
| | | | | | to 2168. All states should now be properties, with backward compatibility for the types that restricted themselves to the methods. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2169 980ebf18-57e1-0310-9a29-db15c13687c0
* Simplifying the splitpath method a bit, altho it is still strangely slowluke2006-12-161-12/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1943 980ebf18-57e1-0310-9a29-db15c13687c0
* Another intermediate commit. Most of the graphing work itself is now done, ↵luke2006-12-091-8/+9
| | | | | | but I am in the middle of converting files to use the graphs and at the same time am writing some actually decent tests for the file recursion stuff. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1899 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bugfixing, including finding out that the tagmail report ↵luke2006-10-181-8/+9
| | | | | | was leaving zombie processes lying around git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1816 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #285, opened by ericb.luke2006-09-211-0/+2
| | | | | | | | | The problem here was that I was not escaping URIs throughout the chain, which I am now doing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1642 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the problem with fileserver expansions, and doing a bit of ↵luke2006-09-141-152/+139
| | | | | | refactoring to make things clearer git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1587 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing all of the changes I made towards refactoring in the last couple of ↵luke2006-09-051-1/+5
| | | | | | days. They have all been moved into the sync-retrieve-refactor branch. This branch will soon become 0.19.0, and will not include that refactoring. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1555 980ebf18-57e1-0310-9a29-db15c13687c0
* This is the initial commit of the changes to sync and retrieve. Theluke2006-09-031-5/+1
| | | | | | | | | | | | | structure itself is now in place, and a few of the types (the most complicated ones -- file, user, group, plus exec since it was my easy first test) have been converted. I'm now going to finish going through all of the types and finish chnaging them so that they don't produce any warnings. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1546 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming parsedfile to loadedfile, which makes much more sense and reduces ↵luke2006-09-031-1/+1
| | | | | | some naming conflicts git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1544 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing some changes to the %h expansion in fileserving. This change ↵luke2006-08-281-100/+107
| | | | | | makes the expansion entirely isolated in the Mount class, which makes it much easier to test. Also, switched the fileserver config to use ParsedFile, which makes it a bit easier to understand and handle reparsing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1493 980ebf18-57e1-0310-9a29-db15c13687c0
* Support for %h and %H replacement in the path of fileserver modules.lutter2006-08-261-5/+45
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1490 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #225. Normal file copying worked with spaces, but recursive file ↵luke2006-08-211-1/+1
| | | | | | copying did not. I modified one of the support methods so it works now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1478 980ebf18-57e1-0310-9a29-db15c13687c0
* Largely refactored how log destinations are handled, although it is not ↵luke2006-06-271-2/+1
| | | | | | exposed externally. Most of this work is related to handling a large number of small problems related to threading. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1315 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #178. I just added URI escaping and unescaping to file names.luke2006-06-201-1/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1307 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #128. md5lite was being used instead of full md5. At this point, ↵luke2006-04-281-5/+0
| | | | | | md5lite cannot be used for source copies. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1146 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing some more logging issuesluke2006-03-061-1/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@989 980ebf18-57e1-0310-9a29-db15c13687c0
* Making some logging changes, and fixing a small bug in group management on ↵luke2006-03-061-2/+1
| | | | | | missing files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@988 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing the last changes, for now, to handling links. You still cannot ↵luke2006-03-061-23/+65
| | | | | | copy remote links, but you can either ignore or follow them. I do not think we will be able to copy remote links until I have merged symlinks and files to be the same object type again. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@984 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching from using "evaluate" to using "retrieve" when getting checksum ↵luke2006-03-031-6/+13
| | | | | | values, since retrieval is sufficient, and evaluate keeps printing messages about changes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@981 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing logging in the fileserver so it is always obvious where the logs are ↵luke2006-03-031-35/+50
| | | | | | originating, and fixing a bit of debugging elsewhere. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@980 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the setdefaults input format somewhat. It is always a hash of some ↵luke2006-03-011-1/+1
| | | | | | kind now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@962 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing bug #72, where trailing slashes break file sourcingluke2006-02-241-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@944 980ebf18-57e1-0310-9a29-db15c13687c0
* There is now full support for configuration files, and the entire system has ↵luke2006-02-071-1/+1
| | | | | | been modified to expect their new behaviour. I have not yet run the test across all test hosts, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@873 980ebf18-57e1-0310-9a29-db15c13687c0
* Configuration parameters now require (and have) descriptions, and a set of ↵luke2006-02-071-1/+3
| | | | | | configuration parameters can be converted to a configuration file, a manifest, or a component. All I have to do now is integrate them into the executables. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@872 980ebf18-57e1-0310-9a29-db15c13687c0
* Made lots of small changes, mostly to help usability but also fixed a couple ↵luke2006-01-181-0/+12
| | | | | | of key bugs git-svn-id: https://reductivelabs.com/svn/puppet/trunk@841 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing problems where objects were passing @parameters[:param] objects, ↵luke2006-01-171-1/+1
| | | | | | instead of specifically retrieving the value git-svn-id: https://reductivelabs.com/svn/puppet/trunk@835 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a bit better logging and checking to file accessluke2006-01-141-11/+13
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@826 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging changes from the head of the rework1 branch, r 784luke2006-01-081-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@787 980ebf18-57e1-0310-9a29-db15c13687c0
* Undoing the merge that happened in 785luke2006-01-071-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@786 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging in refactoring from version 774 into version 784luke2006-01-071-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@785 980ebf18-57e1-0310-9a29-db15c13687c0
* Lots of refactoring, and added the capture_stderr methodluke2005-11-161-36/+57
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@742 980ebf18-57e1-0310-9a29-db15c13687c0
* Many, many changes toward a completely functional system. The only current ↵luke2005-09-231-25/+48
| | | | | | problems with my home config are that apache's stupid init script does not do status and that packages are not working as non-root users (which makes sense). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@703 980ebf18-57e1-0310-9a29-db15c13687c0
* Hoping this will get rid of the directory being printedshafer2005-09-231-10/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@702 980ebf18-57e1-0310-9a29-db15c13687c0
* making "Type.new" private, and switching to "Type.create", so that i can ↵luke2005-09-161-1/+1
| | | | | | merge new objects with existing objects and such; converted all files, and tested them git-svn-id: https://reductivelabs.com/svn/puppet/trunk@674 980ebf18-57e1-0310-9a29-db15c13687c0
* removed directory outputshafer2005-09-151-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@672 980ebf18-57e1-0310-9a29-db15c13687c0
* fixed problem using arraysshafer2005-09-151-2/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@670 980ebf18-57e1-0310-9a29-db15c13687c0
* debugged ignore in fileserver, added tests to ignore tc and fixed ↵shafer2005-09-151-4/+7
| | | | | | server.list in tc for filesources and fileserver git-svn-id: https://reductivelabs.com/svn/puppet/trunk@668 980ebf18-57e1-0310-9a29-db15c13687c0
* added ignore to fileserver and pfileshafer2005-09-141-6/+18
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@659 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixed small bug that caused the config files to be parsed on every connectionluke2005-08-301-2/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@615 980ebf18-57e1-0310-9a29-db15c13687c0
* adding file reread to master, although it is plenty hackishluke2005-08-301-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@611 980ebf18-57e1-0310-9a29-db15c13687c0
* fileserver config file now reloads when it is more than 60 seconds out of dateluke2005-08-301-0/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@610 980ebf18-57e1-0310-9a29-db15c13687c0
* catching a potential security problem -- requiring that "path" always be set ↵luke2005-08-291-0/+10
| | | | | | for a fileserver mount git-svn-id: https://reductivelabs.com/svn/puppet/trunk@608 980ebf18-57e1-0310-9a29-db15c13687c0
* This should be the commit that brings us to Beta 1. All tests pass, ↵Luke Kanies2005-08-281-23/+39
| | | | | | although I get some (gracefully handled) failures in tc_metrics.rb, and there is now a config file for the fileserver module, including authorization specification for it. I have also reworked error handling in the xmlrpc client and server so errors should propagate more correctly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@594 980ebf18-57e1-0310-9a29-db15c13687c0
* adding config file parsingLuke Kanies2005-08-271-21/+119
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@592 980ebf18-57e1-0310-9a29-db15c13687c0
* remote filecopying now worksLuke Kanies2005-08-231-40/+53
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@586 980ebf18-57e1-0310-9a29-db15c13687c0
* Created a Handler base class for all of the server handlers, which allows a ↵Luke Kanies2005-08-231-10/+6
| | | | | | lot of the manual work to now be automatic git-svn-id: https://reductivelabs.com/svn/puppet/trunk@582 980ebf18-57e1-0310-9a29-db15c13687c0
* moving all server handlers into a specific server subdirectoryLuke Kanies2005-08-231-0/+264
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@579 980ebf18-57e1-0310-9a29-db15c13687c0