Граф коммитов

380 Коммитов

Автор SHA1 Сообщение Дата
Luke Kanies a0fa09f6ee Revert "Fixed #1201 - all external node attributes are converted to strings."
This reverts commit ac7f59618a.

The reason for this revert is that the problem never really existed;
Ruby's true and false are always used unless you quote them.
2008-07-18 00:12:01 -05:00
Luke Kanies 8f8ce60819 Fixed #1431 - Provider confines must now specify similar tests in one call.
I.e., you can't do confine :operatingsystem => %w{a b} and then
confine :operatingsystem => %w{b c}; you'd need to do them in one command.
This now-obsolete behaviour does not seem to be used anywhere.
The fix for #1431 is actually just removing the tests that exposed
this change; the change happened when I refactored how confines work.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-17 12:30:33 -05:00
James Turnbull bdbd992a6f Updated /spec/unit/rails.rb test 2008-07-17 13:08:15 +10:00
James Turnbull de6aec6e37 Fix Ticket 1426 - services on redhat are restarted again
as far I see there have been a regression while refactoring the redhat service provider to user /sbin/service. This commit fixes this bug (1426) and service restarts are working again on redhat based systems.
There are no tests, as I couldn't figure out how that should be tested. It seems that some restart logic is already tested, however it looks like not every single kind of provider is covered by tests, nor I see at the moment how I could do that.
2008-07-17 11:13:01 +10:00
James Turnbull 0a0fcafa3e Fixed #1414 - Return code from waitpid now right shifted 8 bits 2008-07-17 11:05:01 +10:00
James Turnbull 61b9bcd26f Added Changelog entry for new auth_key type 2008-07-16 10:31:36 +10:00
James Turnbull 65b9869362 Further moves from the examples directory and ext directory 2008-07-15 17:15:05 +10:00
Andrew Shafer 4ce7159bab Fail instead of log when rescuing remote file connections
Issue 1397

one line fix, very simple
2008-07-14 19:54:52 -06:00
James Turnbull 605d760dd7 Moved debian to conf and updated examples directory 2008-07-10 19:52:26 +10:00
James Turnbull 9eb9affe11 Fixed #1368 - updated Red Hat init scripts 2008-07-09 09:29:51 +10:00
James Turnbull edf99c508d Added message referencing ReductveLabs build library 2008-07-08 23:42:47 +10:00
James Turnbull 6ff9246e44 Fixed #1396 - Added sha1 function from DavidS to core 2008-07-08 09:03:47 +10:00
James Turnbull 56525beb26 Merge branch 'tickets/0.24.x/1226' of git://github.com/lak/puppet into 0.24.x 2008-07-08 08:53:42 +10:00
James Turnbull 1fe0660f6b Merge branch 'tickets/0.24.x/1272' of git://github.com/lak/puppet into 0.24.x
Conflicts:

	CHANGELOG
	spec/unit/provider/user/ldap.rb
2008-07-08 08:43:54 +10:00
Luke Kanies 667fac18cc Fixed #1226 - Gems can now specify source repositories.
Added tests for the bit that's changed here (and caught
a couple of bugs in the original patch).

This is all a modification of Sam Quigley's work.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-07 17:11:59 -05:00
Luke Kanies c751e4eef5 Fixed #1272 - ldap group names will be converted to GIDs.
Note that this only looks up ldap groups, at this point; if you want to set an
ldap user's primary group to a local group, you have to specify the GID.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-07 14:58:28 -05:00
Luke Kanies 0922c3b021 Fixed #1399 - the ldap user provider knows it can manage passwords.
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-07 10:46:16 -05:00
James Turnbull 083f4ca786 Merge branch 'tickets/0.24.x/1231' of git://github.com/lak/puppet into 0.24.x 2008-07-05 10:20:54 +10:00
Luke Kanies 196494a63e Fixed #1231 - Exceptions during startup should now be clear.
This will often result in duplicate information, but at least
the information will now always be there.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-04 17:33:12 -05:00
James Turnbull f462617295 Merge branch 'tickets/0.24.x/1240' of git://github.com/lak/puppet into 0.24.x 2008-07-04 09:04:20 +10:00
Luke Kanies ba12d3000d Fixed #1232 - the rundir no longer specifies a user/group,
and there are now client- and server-specific yaml directories.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-03 17:27:11 -05:00
Luke Kanies bd3f8e37a2 Fixed 1240 - puppet will function more like puppetd if graphing
or reporting are enabled.
2008-07-03 12:09:38 -05:00
Luke Kanies d3a8125524 Fixed #1006 - puppetrun --class works again. I added the class
membership testing to the Ldap node terminus, and added tests,
2008-07-01 22:22:36 -05:00
Luke Kanies ee9d0025ee Fixed #1114 - Facts in plugin directories should now be autoloaded,
as long as you're using Facter 1.5.
2008-07-01 12:57:56 -05:00
James Turnbull 17afb8afa0 Fixes #1195 - Updated Gentoo init scripts 2008-06-17 22:10:09 +10:00
Luke Kanies 00182ff96f Fixed #707 - special '@reboot'-style cron jobs work again. 2008-06-17 19:40:39 +10:00
James Turnbull 463aab8d55 Merge branch 'tickets/0.24.x/1012' of git://github.com/lak/puppet into 0.24.x
Conflicts:

	CHANGELOG
2008-06-17 19:37:23 +10:00
James Turnbull 0f501e327d Merge branch 'tickets/0.24.x/1221' of git://github.com/lak/puppet into 0.24.x
Conflicts:

	CHANGELOG
2008-06-17 19:32:50 +10:00
James Turnbull c83b23d029 Updated CHANGELOG for two missed commits 2008-06-17 16:56:10 +10:00
Luke Kanies 2380fcd4d1 Fixed #1012 - templates in the templatedir are preferred to module templates. 2008-06-16 23:59:18 -05:00
Luke Kanies 4d9536418d Fixed #1221 - aliases to titles now work for resources. 2008-06-16 23:46:06 -05:00
Luke Kanies 24ca81fcdc Fixed #1360 -- allowdupe works with groups again.
I've added a couple of tests for this bit of the user
and group useradd/groupadd providers, but I haven't migrated
the rest of the tests.
2008-06-16 22:42:12 -05:00
Luke Kanies aedfa2bc06 Fixed #1369 - the init service provider now supports HP-UX.
I've only added an integration test for the provider,
since that's all I've changed; none of the service providers
have rspec tests yet.
2008-06-16 11:36:21 -05:00
James Turnbull 5273b22b4f Merge branch 'tickets/0.24.x/1168' of git://github.com/lak/puppet into 0.24.x
Conflicts:

	CHANGELOG
2008-06-16 12:54:58 +10:00
James Turnbull 6350aa4e81 Merge branch 'tickets/0.24.x/1201' of git://github.com/lak/puppet into 0.24.x
Conflicts:

	CHANGELOG
2008-06-16 09:55:03 +10:00
Luke Kanies 5f600ddc04 Fixing #1168 (for 0.24.x) -- automatically downcasing the fqdn.
Also requiring that passed in certnames be downcased; the setting
system isn't currently flexible enough to automatically downcase
it for the user.
2008-06-15 16:33:48 -05:00
Luke Kanies ac7f59618a Fixed #1201 - all external node attributes are converted to strings. 2008-06-15 14:39:45 -05:00
Luke Kanies 665846379e Updating the changelog for the changes to node lookups. 2008-06-15 14:02:52 -05:00
Luke Kanies 29c840ae8f Adding a class for using templates directly within resources
(i.e., client-side templates).  This would really only be used
for composite resources that pass the results of the template
on to generated resources.
2008-06-09 16:40:54 -05:00
Luke Kanies 65c1889f09 Fixing #1242 -- lack of storeconfigs only produces warning, not exception.
Exporting or collecting resources no longer raises an exception
when no storeconfigs is enabled, it just produces a warning.
2008-05-26 22:33:26 -05:00
Luke Kanies 02411f5d74 Always using the cert name to store yaml files, which fixes #1178.
The Master handler previously provided the support for the :node_name
setting, and that functionality has now been moved into the Node
class.  At the same time, the names to search through have been
changed somewhat:  Previously, the certificate name and the
hostname were both used for searching, but now, the cert name
is always searched first (unless node_name == facter), but only
the Facter hostname, domain, and fqdn are used otherwise.  We no
longer split the cert name, only the hostname/domain/fqdn.

In the general case, this provides no behaviour change, because
people's hostname is the same as their certname.  This only
results in a change in behaviour if you specify a certificate
name that is a normal node name, and you want to look that node
up by something other than the full name in the certificate.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-05-26 17:41:38 -05:00
Luke Kanies bd51a53b08 Fixing transaction support for prefetching generated resources.
Previously, we prefetched then generated, which caused generated
resources that needed prefetching not to work.  This just reorders
the calls, so generated resources now get prefetched.
2008-05-21 00:46:25 -05:00
Luke Kanies 65c61b99ff Merge branch 'ldap_fixes' into 0.24.x
Conflicts:

	CHANGELOG
2008-05-21 00:33:42 -05:00
Luke Kanies 419f2443c4 Adding support for settings within the existing Facter provider confines.
This renames the 'facter' confine to 'variable', and it prefers
settings to facts.  There shouldn't really be any overlap, so
it shouldn't be a problem.
2008-05-20 23:59:04 -05:00
James Turnbull 84a787a2a7 Merge branch '0.24.x' of git://github.com/lak/puppet into 0.24.x
Conflicts:

	CHANGELOG
2008-05-20 19:06:45 +10:00
Luke Kanies 8008bbc447 Modified the 'factpath' setting to automatically configure
Facter to load facts there if a new enough version of
Facter is used.
2008-05-16 15:42:20 -05:00
James Turnbull 38545d9a81 Crontab provider: fix a parse error when a line begins with a space character
Tests for Bug #1216

Updated CHANGELOG
2008-05-16 16:50:29 +10:00
James Turnbull 83ef1b0cda Fix for #1219
Instead of deleting the init scripts (with --del) we should simply disable
it with chkconfig service off, and respectfully do the same for enable
=> true;

Updated CHANGELOG

Fix for #1219.  Instead of deleting the init scripts (with --del) we should simply disable it with chkconfig service off, and respectfully do the same for enable
=> true;
2008-05-15 17:14:22 +10:00
Luke Kanies 5e2a4b593f updating the changelog for the ldap providers 2008-05-12 17:01:27 -05:00
James Turnbull eac14f6878 Fixed #1189 and added support for --all to puppetca --clean 2008-04-15 20:01:20 +10:00
Luke Kanies b49fd49562 Resources now return the 'should' value for properties from
the [] accessor method (they previously threw an exception when
this method was used with properties).  This shouldn't have any
affect functionally; it just makes the method equivalent to 'should'
for properties, but it works for all attribute types now.
2008-04-11 13:01:17 -05:00
Luke Kanies 4aaad26509 Modified the 'master' handler to use the Catalog class to
compile node configurations, rather than using the Configuration
handler, which was never used directly.  I removed the Configuration
handler as a result.

Modified the 'master' handler (responsible for sending configurations
to clients) to always return Time.now as its compile date, so
configurations will always get recompiled.
2008-04-11 11:34:51 -05:00
Luke Kanies 2925ad1cb9 Fixed #1184 -- definitions now autoload correctly all of the time. 2008-04-10 23:18:20 -05:00
Luke Kanies 376628d117 Removed the code from the client that tries to avoid recompiling
the catalog. The client will now always recompile, assuming it
can reach the server.  It will still use the cached config if
there's a failure.
2008-04-10 23:17:36 -05:00
Luke Kanies 3718b6410b Fixing #1173 -- classes and definitions can now have the same
name as a directory with no failures.
2008-04-10 15:49:12 -05:00
Luke Kanies bd858dff51 Changing the default environment to production. 2008-04-08 11:22:03 -05:00
Luke Kanies aa830b9b34 Adding 0.24.4 header to the changelog 2008-03-30 12:38:24 -05:00
Ryan McBride 55a9009cbf Pass source to pkg_add via the PKG_PATH environment variable if 2008-03-25 00:51:21 -05:00
Luke Kanies 6a535195a9 Fixing #571 -- provider suitability is now checked at resource
evaluation time, rather than resource instantiation time.  This
means that you don't catch your "errors" as early, but it also
means you should be able to realistically configure a whole host
in one run.
2008-03-24 17:10:00 -05:00
Luke Kanies 528bbf1cae Fixing a couple of tests. 2008-03-24 16:37:56 -05:00
James Turnbull bd3f6ec87c Disabled man page creation by default and updated CHANGELOG 2008-03-25 08:03:11 +11:00
Luke Kanies d93e1b4696 Fixing #1138 -- the yamldir is automatically created by the
server now that it's in the :puppetmasterd section rather than
a separate :yaml section.
2008-03-24 12:02:17 -05:00
Luke Kanies 273c7ec525 Disabling http keep-alive as a means of preventing #1010.
There is now a constant in Puppet::Network::HttpPool that will
disable or enable this feature, but note that we determined
that it can cause corruption, especially in file serving (but
it's client-side corruption).
2008-03-24 09:56:39 -05:00
Luke Kanies 6aa6fdb119 Applying patch by Ryan McBride to fix OpenBSD package
matching.  The actual problem was caused by the fix to #1001.
2008-03-23 13:39:28 -05:00
Luke Kanies 18320b8e32 Found all instances of methods where split() is used without
any local variables and added a local variable -- see
http://snurl.com/21zf8.  My own testing showed that this
caused memory growth to level off at a reasonable level.
Note that the link above says the problem is only with class
methods, but my own testing showed that it's any method that
meets these criteria.  This is not a functional change, but
should hopefully be the last nail in the coffin of #1131.
2008-03-21 00:39:26 -05:00
Luke Kanies f6325dceb3 Found an array that leaked pretty quickly between reparsing
files, thanks to work by Adam Jacob and Arjuna Christenson
(the finding, not the leak).  I'm going to act like this
fixes #1131, at least for now, but I doubt it does,
since that shows general memory growth over time, whereas
the leak here should go away as soon as files are reparsed
(because the parser is holding the reference to the leaking
array).
2008-03-21 00:26:08 -05:00
Luke Kanies 4f400d4d4d Fixed #1147: Cached nodes are correctly considered out of
date if the node facts have been updated (thus causing
node facts to again be available in manifests, for those
cases where they were not).
2008-03-20 23:27:18 -05:00
Luke Kanies 0c45a5a873 Adding another commit for #1136 -- Consolidated
the setting of the loglevel and destination to just
one call, rather than the multiple calls that remained.
2008-03-20 11:40:25 -05:00
Luke Kanies d0554db239 Hopefully *finally* fixed the "already being managed" problem
(#1036).  The problem only cropped up if there was a failure
when trying to manage the system -- this would cause the
setting-based resources not to get cleaned up.
2008-03-18 13:55:48 -05:00
Luke Kanies 18ed28bb1b Updating changelog for 0.24.3 2008-03-17 06:26:58 +01:00
Luke Kanies 1dc0e24a4f Modified the ldap node terminus to also use the facts version
as the version for a node, which should similarly encourage the
use of the yaml cache.  (Related to #1130)
2008-03-16 17:58:16 -05:00
Luke Kanies 4a45a1da06 Caching node information in yaml (I figured caching in memory will
cause ever-larger memory growth), and changing the external node
terminus to use the version of the facts as their version.  This
will usually result in the cached node information being used,
instead of always hitting the external node app during file
serving. Note that if the facts aren't changed by the client,
then this will result in the cached node being used, but at this
point, the client always updates its facts.  (#1130)
2008-03-16 17:52:46 -05:00
Luke Kanies 495632345d Fixing #1132 -- host names can now have dashes anywhere.
(Patch by freiheit.)
2008-03-13 13:55:08 -05:00
Luke Kanies ecb873d3a6 Fixing #1118 -- downloading plugins and facts now ignores noop.
Note that this changes the behaviour a bit -- the resource's
noop setting always beats the global setting (previously,
whichever was true would win).
2008-03-13 12:36:21 -05:00
Luke Kanies c955f6130d updating changelog for already-closed tickets 2008-03-06 16:33:28 -06:00
Luke Kanies 35214eb7e2 Fixing the rest of #1113: External node commands can specify
an environment and Puppet will now use it.
2008-03-06 14:47:14 -06:00
Luke Kanies 2261032801 Partially fixing #1113: LDAP nodes now support environments,
and the schema has been updated accordingly.
2008-03-06 14:43:41 -06:00
Luke Kanies 647f5b458e Always duplicating resource defaults in the parser, so that
stacked metaparameter values do not result in all resources
that receive a given default also getting those stacked
values.
2008-03-06 13:07:11 -06:00
Luke Kanies 6faed129bb updating changelog for 0.24.2 2008-03-03 17:32:26 +01:00
Luke Kanies 879ee22ee3 Fixing #1062 by moving the yamldir setting to its own yaml
section.  This should keep the yamldir from being created
on clients.
2008-02-28 17:40:01 -06:00
Luke Kanies fd1573fdb6 Fixed #1047 -- Puppet's parser no longer changes the order
in which statements are evaluated, which means that case
statements can now set variables that are used by other
variables.
2008-02-28 17:21:35 -06:00
Luke Kanies 9d6e926d81 Fixed #1063 -- the master correctly logs syntax errors when
reparsing during a single run.
2008-02-28 16:12:48 -06:00
Luke Kanies c0b5352851 testing automatic commit emails 2008-02-28 14:07:01 -06:00
Luke Kanies bb8051bc40 Removed the loglevels from the valid values for 'logoutput'
in the Exec resource type -- the log levels are specified
using the 'loglevel' parameter, not 'logoutput'.  This never
worked, or at least hasn't for ages, and now the docs are
just correct.
2008-02-27 15:43:09 -05:00
Luke Kanies ff97059145 Somewhat refactored fileserving so that it no longer caches
any objects, nor does it use Puppet's RAL resources.  In the
process, I fixed #894 (you can now copy links) and refactored
other classes as necessary.  Mostly it was fixing tests.

This is a squashed commit of a temporary branch, fwiw,
and it also includes any fixes to the tests that were
necessary to get all tests passing again.
2008-02-23 19:06:29 -05:00
Luke Kanies 098a69c0e7 updating checksum for #1010 fix 2008-02-21 23:19:27 -05:00
Luke Kanies e830f286ee Fixed #1018 -- resources now have their namevars added as
aliases in the resource catalog, just like they were added
in the resource classes.
2008-02-18 17:36:30 -06:00
Luke Kanies 60dd569271 Fixed #1037 -- remote unreadable files no longer have the
permission denied exceptions caught, thus forbidding them
from being replaced with 'nil'.
2008-02-18 17:13:10 -06:00
Luke Kanies f8afe13169 Fixed #1043 -- autoloading now searches the plugins directory
in each module, in addition to the lib directory.  The 'lib'
directory is also deprecated, but supported for now to give
people a chance to convert.
2008-02-13 16:52:26 -06:00
Luke Kanies fe02591eaa Fixed #1003 -- Applying DavidS's patch to fix searching for
tags in sql.
2008-02-13 16:36:19 -06:00
Luke Kanies 9b1bfc1e2e Fixed #992 -- Puppet is now compatible with gems 1.0.1. 2008-02-13 16:30:49 -06:00
Luke Kanies 0cfa1d2b7a Fixed #968 again, this time with tests -- parseonly works,
including not compiling the configurations, and also storeconfigs
is no longer required during parse-testing.
2008-02-13 16:27:35 -06:00
Luke Kanies a42c3ae7eb Fixed #1021 -- the problem was that my method of determining
the in-degree sometimes resulted in a lower number than the
number of in-edges.
2008-02-13 14:55:14 -06:00
Luke Kanies 7e45553448 Fixed #997 -- virtual defined types are no longer evaluated.
NOTE: This introduces a behaviour change, in that you previously
could realize a resource within a virtual defined resource, and now
you must realize the entire defined resource, rather than just
the contained resource.
2008-02-12 14:57:24 -06:00
Luke Kanies 6a4cf6c978 Fixed #1030 - class and definition evaluation has been significantly
refactored, fixing this problem and making the whole interplay
between the classes, definitions, and nodes, and the Compile class much
cleaner.
2008-02-11 17:24:02 -06:00
Luke Kanies 3b740ff7a6 Converting the Compile class to use a Node::Catalog instance
as its resource container, instead of having its own behaviour
around resource uniqueness.
2008-02-11 13:59:25 -08:00
Luke Kanies b293763f9e Applying patch by Jay to fix #989 -- missing crl files are
correctly ignored, and you now use 'false' instead of 'none'
to explicitly ignore them.
2008-02-07 15:34:30 -06:00
Luke Kanies ed0c745c0f Fixing #1017 -- environment-specific modulepath is no
longer ignored.  (Cherry-picked from master.)
2008-02-04 19:32:36 -06:00
Luke Kanies 52eba77e15 Fixing #794 -- consolidating the gentoo configuration files. 2008-01-19 13:57:08 -08:00
Luke Kanies f98be4a719 Fixing #976 -- both the full name of qualified classes and
the class parts are now added as tags.  I've also
created a Tagging module that we should push throughout
the rest of the system that uses tags.
2008-01-19 13:40:40 -08:00
Luke Kanies f5674cd527 Fixing #995 -- puppetd no longer dies at startup if the
server is not running.
2008-01-19 14:20:48 -06:00
Luke Kanies 046a3269db Fixing #977 -- rundir is again set to 1777. 2008-01-19 11:42:47 -08:00
Luke Kanies 927dff41df Fixing #971 -- classes can once again be included multiple
times.
2008-01-07 12:19:21 -06:00
Luke Kanies 33e319a8be Added builtin support for all Nagios resource types.
I use Naginator to parse and generate the files, with
ParsedFile to handle record management and the like.

Note that each resource type itself is just a call to
a Factory method, since everything is just based on Naginator.
Given that, all of the tests are in a single unit/ral/types/nagios.rb
file, since I used a factory to generate them, too.  This is probably
either unnecessary or insufficient, but it's as far as I'm
willing to go in testing them, and it did actually catch a few
bugs.
2007-12-31 14:37:03 -06:00
Luke Kanies 20d430dfe1 Adding 0.24.1 tag to the changelog. 2007-12-21 18:48:56 -06:00
Luke Kanies bc0616ee7d Updating filetype detection for vim, and changing
the filestructure for vim files. (#900 and #963)
2007-12-19 14:08:41 -06:00
Luke Kanies 927cb24c0a Fixing #967 -- default resources no longer conflict with
managed resources.
2007-12-19 13:43:22 -06:00
Luke Kanies 9c32c9c518 Removing the ability to disable http-keep alive,
since it didn't work and is now unnecessary.
2007-12-19 11:44:52 -06:00
Luke Kanies 553b2ad8ad Entirely refactoring http keep-alive. There's now
a central module responsible for managing the http pool
(Puppet::Network::HttpPool), and it also handles
setting certificate information.  This gets rid of
what were otherwise long chains of method calls,
and it makes the code paths much clearer.
2007-12-19 11:42:22 -06:00
Luke Kanies 92b0ebc7b7 Fixing #967 -- relationships now work when running 0.23.x clients
against 0.24.0 servers.
2007-12-18 16:47:36 -06:00
Luke Kanies 933b1df6d8 Fixing #961 -- closing existing, open connections when
a new connection is requested, and closing all connections
at the end of each run.
2007-12-17 17:13:25 -06:00
Luke Kanies e0dab9a488 Updating changelog to reflect the fact that we no
longer warn about explicit plugin mounts.
2007-12-17 15:55:02 -06:00
Luke Kanies 22daebebc8 Adding changelog update for misspiggy/0.24.0 2007-12-13 17:41:35 +01:00
Luke Kanies d9200a0200 Adding what is hopefully the last commit for #896. Here's the
changelog:

    Modifying the behaviour of the certdnsnames setting.  It now defaults
    to an empty string, and will only be used if it is set to something
    else.  If it is set, then the host's FQDN will also be added as
    an alias.  The default behaviour is now to add 'puppet' and
    'puppet.$domain' as DNS aliases when the name for the cert being
    signed is equal to the signing machine's name, which will only
    be the case for CA servers.  This should result in servers always
    having the alias set up and no one else, but you can still override
    the aliases if you want.
2007-12-11 11:51:54 -06:00
Luke Kanies da77e4af9a Updating the changelog with external node info. 2007-12-10 21:15:15 -06:00
Jeffrey J McCune f94d6d3394 As per lutter; augmented fix for #896 to be configurable and defaulting to validate the server certificate, honoring CVE-2007-5162. 2007-11-29 09:29:08 -05:00
Luke Kanies 811fefa569 Fixing #892 -- filesystem mounts are no longer remounted. 2007-11-28 18:44:55 -06:00
Luke Kanies dedc56a6ae Fixing #527 (rewrote service tests), #766 (services only restart when they
are running), and #918 (service tests fail when hddtemp is not installed).

Mostly, I just rewrote the service tests, but I cleaned up the cruft from the
Service class, too.
2007-11-28 18:38:48 -06:00
Luke Kanies 4e9c39e6a7 Merge branch 'plugins_mount', fixing #891.
Conflicts:

	CHANGELOG
2007-11-24 23:17:57 -06:00
Luke Kanies b575d15853 Integrating Matt Palmer's patch to provide a 'plugins'
mount, fixing #891.  The patch was ported to the current
code by David Schmitt, I applied the rest of Matt's
patches, and I then fixed all of the code so that the
tests passed.

The primary change I had to make to the patch was reenabling
host expansion in paths -- his patch had disabled it.
2007-11-24 23:16:47 -06:00
Luke Kanies 1486d3969c Applying patch 20070913004017-6856b-cdbbba99de0b33b64874205a27833b5114fcc6b9.patch by womble -- Allow empty config settings 2007-11-23 19:33:35 -06:00
Luke Kanies dbe70a10dd Added calls to endgrent/endpwent in util/posix.rb to
fix #791.
2007-11-23 16:03:56 -06:00
Luke Kanies 1cb40eca62 Obviating targets in interfaces; they now just generate a warning. 2007-11-23 15:39:34 -06:00
Luke Kanies 3d31dc8e2a Fixing #762. The main problem was that I accepted the patch
in #744 which broke the templates.
In the process, I also added test code for the redhat interface
provider and rewrote how parsing worked to make it more testable.
2007-11-20 13:59:28 -06:00
Luke Kanies 9e5fc76eb7 Fixing #911 and #912 -- there's a default environment (development)
and you have to specify the valid environments for your site.
2007-11-19 18:27:38 -06:00
Luke Kanies 4bd7b6f69e Fixing #896 by applying DerekW's patches, with slight
modifications to fit coding style.
2007-11-19 15:47:56 -06:00
Luke Kanies 8ad2732885 Fixing #446. I ended up largely not using porridge's patch,
but only because the code (and my coding style, to some extent)
has changed so much in the last few months.
Also, added specs.
2007-11-19 15:36:42 -06:00
Luke Kanies 9cf477b6cc Applying fix by Jeff McCune from #905 2007-11-18 23:36:22 -06:00
Luke Kanies 72510bfaa6 Fixing #800 by refactoring how configurations are retrieved
from the server.  The real problem was getting all of the validation
done before any caching, which required a good bit more refactoring
than I expected.

In actuality, this commit is relatively small even though it covers
many files; most of the changes just make the code clearer or shorter.
2007-11-12 22:08:44 -06:00
Luke Kanies dd7caa76e1 Moving some compile tests to the spec/ directory, and
switching the node scope to no longer be lazy evaluation,
just like I switched 'main'.  When I made all of these
classes and nodes lazy evaluated, I should have decoupled
my real goal (using resources to evaluate them) from the idea
of lazy-evaluating them, and this basically does that.

I also changed the scope heirarchy slightly so that scopes will
tend to be below the node scope, altho this was already generally
the case.
2007-11-12 11:00:54 -06:00
Luke Kanies 065a1d0281 Switching the graph base class from GRATR::Digraph
to Puppet::SimpleGraph, which should dramatically enhance
performance.  It should be largely functionally equivalent,
with the only difference being that edges are no longer deduplicated.
2007-11-07 17:48:50 -06:00
Luke Kanies 0e336bf62b This commit is focused on getting the 'puppet' executable
to work.  As a result, it involves a lot of integration-level
testing, and a lot of small design changes to make the code
actually work.

In particular, indirections can now have default termini,
so that configurations and facts default to their code terminus

Also, I've removed the ability to manually control whether
ast nodes are used.  I might need to add it back in later,
but if so it will be in the form of a global setting,
rather than the previous system of passing it through 10 different
classes.  Instead, the parser detects whether there are AST nodes
defined and requires them if so or ignores them if not.

About 75 tests are still failing in the main set of tests,
but it's going to be a long slog to get them working --
there are significant design issues around them, as most of
the failures are a result of tests trying to emulate both the
client and server sides of a connection, which normally would
have different fact termini but in this case must have the same
terminus just because they're in the same process and are global.

The next step, then, is to figure that process out, thus finding a way
to make this all work.
2007-10-05 00:07:38 -05:00
Michael V. O'Brien 1be1db91c2 Updated CHANGELOG. 2007-10-03 17:23:59 -05:00
Michael V. O'Brien efcd1e88f7 Fixed CA race condition (#693) 2007-08-22 11:31:25 -05:00
Michael V. O'Brien 2ff15c015b Added shortname support to config.rb and refactored addargs 2007-08-14 18:35:32 -05:00
Luke Kanies 24e7b4d034 Revert "Updating more milestone names"
This reverts commit 61a747fc2d.
2007-08-13 13:02:35 -05:00
Luke Kanies 61a747fc2d Updating more milestone names 2007-08-13 12:58:24 -05:00
luke b5aefd4faa Adding milestone names to changelog
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2770 980ebf18-57e1-0310-9a29-db15c13687c0
2007-08-13 17:00:14 +00:00
luke 5e419cf750 Fixing #749 -- environment settings no longer accumulate. Significantly adding to the cron tests at the same time, such that hopefully we will no longer have these recurring bugs. I now do every combinatorial of multi-line cron jobs, including doing them all in one file. There are, unfortunately, still edge cases, but maybe we will have some peace in cron space for a while, anyway.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2750 980ebf18-57e1-0310-9a29-db15c13687c0
2007-08-06 17:59:37 +00:00
luke 7bda32e9fb Fixing #731 - we are now correctly only collecting exported resources
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2746 980ebf18-57e1-0310-9a29-db15c13687c0
2007-08-05 17:57:31 +00:00
luke 40e4d6fa02 Fixing #735 -- gen_config now uses a single heading, matching the name of the process
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2743 980ebf18-57e1-0310-9a29-db15c13687c0
2007-08-04 00:36:47 +00:00
luke 97cd057177 Fixing #314 and #729; here's the changelog:
Refactored how the parser and interpreter relate,
    so parsing is now effectively an atomic process (thus
    fixing #314 and #729).  This makes the interpreter less
    prone to error and less prone to show the error to the
    clients.  Note that this means that if a configuration
    fails to parse, then the previous, parseable configuration
    will be used instead, so the client will not know that
    the configuration failed to parse.



git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2742 980ebf18-57e1-0310-9a29-db15c13687c0
2007-08-03 23:49:53 +00:00
luke 52e9fa0e73 Adding interface implementations, as written by Paul Rose
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2732 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-31 16:35:24 +00:00
luke 4b25750475 Applying patch my emerose to fix #652.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2729 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-30 22:05:44 +00:00
luke 530d29031d Applying a modification of the patch from Marcin Owsiany, allowing Mongrel to be a CA
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2727 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-30 16:12:53 +00:00
luke 501e8c8586 Adding the ability to specify relationships to classes, using Class[name] resource references.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2715 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-19 19:23:56 +00:00
luke 53a469c000 Fixing #703, mostly. You still cannot do multi-condition queries, but you can at least query against any parameter, and matching any value is sufficient for a match, so the tags work fine.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2705 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-18 17:32:46 +00:00
luke e61806566f Applying a slightly modified patch by Dean Wilson -- puppetca now exits with a non-zero code when it cannot find certs to clean.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2702 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-17 14:00:29 +00:00
luke 54a5f77ed7 Fixing #589
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2691 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-13 21:48:58 +00:00
luke 2c13d53664 Fixing #468 -- fully qualified resources can now be specified as dependencies
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2690 980ebf18-57e1-0310-9a29-db15c13687c0
2007-07-13 21:46:43 +00:00