summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* This should have been in 0.16.1. Moving the "setclass" statements around so ↵luke2006-04-263-12/+17
| | | | | | that classes are set before a given class's code is evaluated, so it can be tested within the code, within node defs, components, or classes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1139 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding sum type to the retrieved sum if it is not already there. This ↵luke2006-04-261-1/+6
| | | | | | provides backwards compatibility for existing cache files. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1137 980ebf18-57e1-0310-9a29-db15c13687c0
* removing unnecessary debuggingluke2006-04-261-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1136 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "defined" functino to puppet, so you can now test whether a given ↵luke2006-04-261-0/+14
| | | | | | class or definition is defined. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1135 980ebf18-57e1-0310-9a29-db15c13687c0
* Creating a simplistic, generic function framework in the parser, so it is ↵luke2006-04-268-497/+640
| | | | | | now very easy to add new functions. There is a pretty crappy, hardwired distinction between functions that return values and those that do not, but I do not see a good way around it right now. Functions are also currently responsible for handling their own arity, although I have plans for fixing that. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1134 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying non-existent-package test to make sure syncing fails, and modified ↵luke2006-04-221-1/+6
| | | | | | ports package type to check the error output instead of the return code, because the portinstall command returns 0 even on failure. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1133 980ebf18-57e1-0310-9a29-db15c13687c0
* Final commit before 0.16.0luke2006-04-2111-33/+277
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1129 980ebf18-57e1-0310-9a29-db15c13687c0
* making corrections to pass tests on freebsdluke2006-04-214-23/+47
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1128 980ebf18-57e1-0310-9a29-db15c13687c0
* Go some work started on developing authorization, but I have made little ↵luke2006-04-213-18/+98
| | | | | | progress. I might wait on this for the next point release. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1127 980ebf18-57e1-0310-9a29-db15c13687c0
* pelement listing now worksluke2006-04-202-3/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1126 980ebf18-57e1-0310-9a29-db15c13687c0
* Added a list class method to just about all types, and it seems to actually ↵luke2006-04-2019-91/+297
| | | | | | work for everyone. Now just to add a list method to the pelement server. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1125 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "list" class method to most types, and using it in the tests for ↵luke2006-04-2012-25/+129
| | | | | | the pelement server to verify that objects can be copied using it. I expect that most package types other than apt/dpkg are not yet working with these tests. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1124 980ebf18-57e1-0310-9a29-db15c13687c0
* A simple first version of an object (called "pelement") server is now in ↵luke2006-04-208-93/+297
| | | | | | place. There is not yet a client, and the tests are pretty simple so far -- only files have been tested yet. I had to make a significant number of modifications to the file object in order to get this all to work, and one of the big changes I made is to the internals of the checksum state. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1123 980ebf18-57e1-0310-9a29-db15c13687c0
* Actually adding the ports file that provides freebsd port supportluke2006-04-201-0/+96
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1122 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding freebsd ports supportluke2006-04-203-6/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1121 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing service stopping; I had the %x{} command quotedluke2006-04-191-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1119 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixin #102. The syslog name is now either the name if the process (if that ↵luke2006-04-191-1/+3
| | | | | | name includes "puppet" in it) or "puppet-" and the name of the process. Also removing the "alert" test messages, since they result in a wall. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1118 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #118; the hash is now always 8 hex characters, 0-padded. Also ↵luke2006-04-192-2/+9
| | | | | | changed the CA cert name to the FQDN of the host serving the CA, rather than "CAcert". git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1117 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the log level of the "defaulting to base service type" messageluke2006-04-171-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1114 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a bunch of small bugs, mostly found by testing on solaris, and added ↵luke2006-04-179-49/+68
| | | | | | a check to the test system that points out memory growth git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1113 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing puppetca so it does not call chuser; instead, it is configured to ↵luke2006-04-122-16/+54
| | | | | | create all of the files with the correct permissions and ownership (using Config#write and Config#writesub). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1111 980ebf18-57e1-0310-9a29-db15c13687c0
* Oops, typo in client/master.rbluke2006-04-111-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1109 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding locking to the master client, so that only one copy of puppetd will ↵luke2006-04-111-19/+67
| | | | | | be running. This should make it safe to run puppetd manually while it is also running normally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1107 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing "set" to "tag"luke2006-04-115-12/+38
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1106 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the host name as a tag (stripped of the domain name)luke2006-04-111-0/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1105 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying "setclass" on scope to check the validity of class names, now that ↵luke2006-04-111-0/+4
| | | | | | "set" can be used to set them manually, and added a test for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1104 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the language side of #109. Added a "set" keyword.luke2006-04-115-399/+435
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1103 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a few informative facts on the server side: serverversion, ↵luke2006-04-112-3/+21
| | | | | | servername, serverip. And only printing the parse time in the interpreter if it is not a local connection. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1102 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the puppet client version to the fact list as "clientversion"luke2006-04-111-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1101 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the puppet client version to the fact list as "clientversion"luke2006-04-111-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1100 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "tag" metaparamluke2006-04-111-0/+23
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1099 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding simple benchmarking, and using it in a few of the more obvious ↵luke2006-04-108-57/+138
| | | | | | places. Also, fixed a bug in Scope#gennode. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1098 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #117. If only one value was provided, then it was not placed in an ↵luke2006-04-101-0/+2
| | | | | | array, yet AST::Selector expected an array. The grammar needs to have some abstraction added or something, because I seem to have encountered this bug for every ast type that supports arrays internally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1097 980ebf18-57e1-0310-9a29-db15c13687c0
* Revamp the yumrepo type to deal with repositories defined anywhere in yum'slutter2006-04-073-81/+333
| | | | | | | | config files. Adds a generic module Puppet::IniConfig for parsing ini-style files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1096 980ebf18-57e1-0310-9a29-db15c13687c0
* another small mount fix; this time, for stupid os xluke2006-04-061-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1095 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing an important fix to mounts; since i am sure no one has downloaded ↵luke2006-04-061-0/+9
| | | | | | 0.15.3, i am just going to rerelease 0.15.3 with this fix in it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1093 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding autoloading for types and service types, also.luke2006-04-062-0/+27
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1090 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, last one, hopefully. Modifying checks to support arrays.luke2006-04-051-22/+42
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1089 980ebf18-57e1-0310-9a29-db15c13687c0
* And, one more time. My test for the last bug did not actually retrieve, so ↵luke2006-04-051-3/+7
| | | | | | it did not enounter the problem, and i had also forgotten to add the "check" boolean to the checks. Hopefully this will be the end of exec bugs for the day. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1088 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing checks so that they can run even if the set cwd does not existluke2006-04-051-8/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1087 980ebf18-57e1-0310-9a29-db15c13687c0
* adding a bit of debuggingluke2006-04-051-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1086 980ebf18-57e1-0310-9a29-db15c13687c0
* moving cwd existence check into "sync" instead of "validate"luke2006-04-051-4/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1085 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a small bug in type.rb that ignored false values (instead of nil ↵luke2006-04-052-7/+30
| | | | | | values), another small bug in value setting that resulted in the file and line appearing twice in errors, and added validation to all of the checks in :exec (along with testing for all of it). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1084 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding darwinport type.luke2006-04-052-12/+99
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1080 980ebf18-57e1-0310-9a29-db15c13687c0
* differentiating openbsd from freebsd, adding freebsd, and autoloading ↵luke2006-04-053-57/+75
| | | | | | package types instead of manually loading them git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1079 980ebf18-57e1-0310-9a29-db15c13687c0
* adding deprecation noticeluke2006-04-051-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1076 980ebf18-57e1-0310-9a29-db15c13687c0
* adding some docsluke2006-04-051-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1075 980ebf18-57e1-0310-9a29-db15c13687c0
* renaming; i hate bsdluke2006-04-051-0/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1074 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #103. There are now no such things as node scopes; the entire tree ↵luke2006-04-053-955/+880
| | | | | | is evaluated on every node connection, and node facts are set at the top-level scope. This includes,um, the code; the last commit was accidentally just test changes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1073 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a couple of bugs in preparation for 0.15.2; mostly they were in the ↵luke2006-04-041-2/+2
| | | | | | testing system and resulted from changing :File to :Manifest in server/master git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1068 980ebf18-57e1-0310-9a29-db15c13687c0