summaryrefslogtreecommitdiff
path: root/examples/code
AgeCommit message (Collapse)AuthorFilesLines
2008-07-10Moved debian to conf and updated examples directoryJames Turnbull28-589/+0
2007-08-14Added optional per-module lib directory.Jeffrey J McCune5-0/+80
Puppet now looks for a lib directory inside each module bundle, and adds the directory to the list searched by Puppet::Util::Autoload. The intent is to facilitate more sophisticated virtual types and flexibility within modules.
2007-08-03DirectoryService provider for users and groups. Alternative to netinfo, as ↵mccune4-0/+66
apple has indicated NetInfo may go away at some point in the future. It might happen in October. FIXME: implement groups and groups= instances methods for Puppet::Type::User::ProviderDirectoryservice git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2739 980ebf18-57e1-0310-9a29-db15c13687c0
2007-04-03Fix for #565: Final merge of changes from source:branches/execute-refactor ↵mccune1-0/+16
into source:trunk Generated with svn merge -r 2378:HEAD https://reductivelabs.com/svn/puppet/branches/execute-refactor trunk CHANGES: - Puppet::Util#execute now takes hash key/value pairs as arguments after the command array. - Processes executed from the base service provider are now silenced. That is, their standard input, output, and error pipes are all directed to /dev/null. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2385 980ebf18-57e1-0310-9a29-db15c13687c0
2006-10-04Merging the changes from the override-refactor branch. This is a ↵luke33-507/+0
significant rewrite of the parser, but it has little affect on the rest of the code tree. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1726 980ebf18-57e1-0310-9a29-db15c13687c0
2006-09-15Removing a test in the parser that is no longer necessary because of how ↵luke1-2/+2
imports work now, and fixing a snippet not to interfere with a local fact git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1606 980ebf18-57e1-0310-9a29-db15c13687c0
2006-08-28Tracking down some weird bugs that managed to creep into the parser. I ↵luke1-1/+1
expect that the main ones were a result of the If support. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1494 980ebf18-57e1-0310-9a29-db15c13687c0
2006-08-17Finishing changes to support titles instead of two types of names. This is ↵luke4-4/+4
basically a bug-fix commit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1472 980ebf18-57e1-0310-9a29-db15c13687c0
2006-08-07removing classing example, since it involves parameterized classesluke1-35/+0
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1450 980ebf18-57e1-0310-9a29-db15c13687c0
2006-07-22Another batch of bug fixes, this time focused on OS X patches. Looks like I ↵luke1-1/+2
did not test on os x last time. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1422 980ebf18-57e1-0310-9a29-db15c13687c0
2006-07-21Apparently objects were legal rvalues, which does not make any sense. Fixed ↵luke1-0/+1
this, and added a test verify. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1418 980ebf18-57e1-0310-9a29-db15c13687c0
2006-06-15Adding test and fix for empty execs being ignoredluke1-0/+2
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1288 980ebf18-57e1-0310-9a29-db15c13687c0
2006-06-09Found a bug where single-value selectors can fail on a second compile. ↵luke1-1/+6
Fixed it, and am now compiling all snippets twice. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1250 980ebf18-57e1-0310-9a29-db15c13687c0
2006-05-12Fixing #141. It was a problem related to the recent parser changes I made.luke1-0/+23
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1185 980ebf18-57e1-0310-9a29-db15c13687c0
2006-05-09It is just a snippet test, and thus a functional test but not a coverage ↵luke1-0/+17
test, but definition overrides officially work. This was important because it enables definitions to be collectable, which was not possible without the mechanism that enables this. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1181 980ebf18-57e1-0310-9a29-db15c13687c0
2006-04-26This should have been in 0.16.1. Moving the "setclass" statements around so ↵luke1-0/+10
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
2006-04-26Creating a simplistic, generic function framework in the parser, so it is ↵luke1-0/+25
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
2006-04-17Fixing a bunch of small bugs, mostly found by testing on solaris, and added ↵luke1-0/+0
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
2006-04-13changing set to tag in the testsluke1-2/+2
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1112 980ebf18-57e1-0310-9a29-db15c13687c0
2006-04-11Fixing the language side of #109. Added a "set" keyword.luke1-0/+9
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1103 980ebf18-57e1-0310-9a29-db15c13687c0
2006-04-10Fixing #117. If only one value was provided, then it was not placed in an ↵luke1-0/+22
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
2006-03-03Supporting variables as the test value in both case statements and selectors.luke2-0/+26
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@976 980ebf18-57e1-0310-9a29-db15c13687c0
2006-03-03renamingluke1-0/+0
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@975 980ebf18-57e1-0310-9a29-db15c13687c0
2006-02-16Adding single-quote syntactical elementluke1-0/+11
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@923 980ebf18-57e1-0310-9a29-db15c13687c0
2006-02-10Making the language name a real alias. Now all objects in Puppet support ↵luke1-0/+16
specifying both the name and the namevar, or just a name and having the namevar set. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@896 980ebf18-57e1-0310-9a29-db15c13687c0
2006-02-07committing test code for bug lutter foundluke1-0/+11
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@867 980ebf18-57e1-0310-9a29-db15c13687c0
2006-01-18Made lots of small changes, mostly to help usability but also fixed a couple ↵luke2-0/+28
of key bugs git-svn-id: https://reductivelabs.com/svn/puppet/trunk@841 980ebf18-57e1-0310-9a29-db15c13687c0
2006-01-17Adding an "ensure" state where appropriate, and significantly reworking the ↵luke23-58/+58
builtin docs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@832 980ebf18-57e1-0310-9a29-db15c13687c0
2006-01-12Fixed a couple of warnings, fixed a critical bug having to do with case ↵luke1-0/+8
statements (where there is only one listed option), and did a couple of other cleanups. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@814 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-28adding a test for includesluke1-0/+17
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@708 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-22The new "include" syntax works now.luke3-6/+3
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@700 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-21Okay, significant change -- classes no longer accept arguments (which makes ↵luke1-11/+0
things simpler but encourages the user of global variables, which is bad), and classes are finally singletons, meaning they will only ever be evaluated for each node a single time. I still need to make nodes work correctly, but that is going to involve modifying the parsing system and a bit more git-svn-id: https://reductivelabs.com/svn/puppet/trunk@694 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-19adding some new language testsluke2-1/+17
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@692 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-17Successfully parsed my entire converted cfengine configuration; these are ↵luke1-0/+11
all fixes for bugs i found as a result. I have not tried to execute the configuration yet. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@687 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-15adding extra checks to make sure networking is secure, and refactoring a ↵luke1-0/+0
heckuva lot of test git-svn-id: https://reductivelabs.com/svn/puppet/trunk@671 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-13tracked down some sticky bugs related to having false values and empty ↵luke2-0/+25
strings; all fixed now, and all tests pass again, including the new tests that cover the bugs i found git-svn-id: https://reductivelabs.com/svn/puppet/trunk@652 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-13adding snippet test to verify correct behaviour with missing exec path; ↵luke1-0/+13
also, adding "creates" parameter to exec git-svn-id: https://reductivelabs.com/svn/puppet/trunk@649 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-07adding scopetestluke1-0/+13
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@631 980ebf18-57e1-0310-9a29-db15c13687c0
2005-09-02defining $name in each component scope, and adding test caseluke1-0/+9
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@620 980ebf18-57e1-0310-9a29-db15c13687c0
2005-08-29As Christian requested, I am no longer downcasing facts I receive from ↵Luke Kanies3-48/+5
Facter. Also, removing some outdated files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@599 980ebf18-57e1-0310-9a29-db15c13687c0
2005-08-25making array-as-name work in the language, and adding some more test snippetsLuke Kanies2-0/+22
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@589 980ebf18-57e1-0310-9a29-db15c13687c0
2005-08-24replacing if statements with case statement, and adding defaults for both ↵Luke Kanies4-11/+50
selectors and case statements git-svn-id: https://reductivelabs.com/svn/puppet/trunk@587 980ebf18-57e1-0310-9a29-db15c13687c0
2005-08-23Moving all files into a consolidated trunk. All tests pass except the ↵Luke Kanies32-0/+646
known-failing certificate test, but there appear to be some errors that are incorrectly not resulting in failurs. I will track those down ASAP. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@576 980ebf18-57e1-0310-9a29-db15c13687c0
2005-04-22moving to the language treeLuke Kanies1-7/+0
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@212 980ebf18-57e1-0310-9a29-db15c13687c0
2005-04-13reorganizingLuke Kanies1-0/+7
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@95 980ebf18-57e1-0310-9a29-db15c13687c0