summaryrefslogtreecommitdiffstats
path: root/spec/unit/node.rb
Commit message (Collapse)AuthorAgeFilesLines
* Making sure the cert name is searched firstLuke Kanies2009-04-241-9/+12
| | | | | | | | | | | The cert name should be searched first in default circumstances, even if it disagrees with the hostname. Brice's change to the way catalogs are searched for didn't quite work when the hostname and certname didn't agree *and* the certname was fully qualified. Signed-off-by: Luke Kanies <luke@madstop.com>
* Partially fixing #1765 - node searching supports strict hostname checkingLuke Kanies2009-04-221-0/+9
| | | | | | | | With the new 'strict_hostname_checking' option enabled, the compiler will only search for the literal certificate name in its list of nodes. Signed-off-by: Luke Kanies <luke@madstop.com>
* Failure to find node facts is now a failure.Luke Kanies2009-02-141-0/+5
| | | | | | | | It was previously just a warning, but the node is essentially non-functional without the facts, so it makes more sense for it to be a warning. Signed-off-by: Luke Kanies <luke@madstop.com>
* Changing the Cacher.invalidate method to Cacher.expire.Luke Kanies2008-11-111-1/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch '0.24.x' Removed the 'after' blocks that call Type.clear,Luke Kanies2008-10-171-17/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | since that method is deprecated. Conflicts: CHANGELOG bin/puppetca lib/puppet/file_serving/fileset.rb lib/puppet/network/xmlrpc/client.rb lib/puppet/type/file/selcontext.rb spec/unit/file_serving/metadata.rb spec/unit/type/file.rb
| * Fixed additional environments testsJames Turnbull2008-10-051-2/+2
| |
| * Fixing the Node class to no longer validate environmentsLuke Kanies2008-10-031-15/+0
| | | | | | | | | | | | since #1614 removed that validation. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-06-151-64/+12
|\| | | | | | | | | | | | | | | Conflicts: CHANGELOG Finally adding release names to the changelog so we can keep the changes aligned in the right part of the log.
| * Converting the Node.node_names class method into an instance method.Luke Kanies2008-06-151-57/+12
| | | | | | | | | | | | | | | | This effectively removes the ability to search node termini for multiple names; only the parser will use these names. Temporarily retaining the 'find_by_any_name' method; it will be removed in a later commit.
| * Removing an obsolete, unimplemented testLuke Kanies2008-06-151-7/+0
| |
* | Merge branch '0.24.x'Luke Kanies2008-06-141-44/+68
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added the fixes to make the certhandler tests pass even when certs exist; I'll deal with the conflict later. Conflicts: CHANGELOG bin/puppetd lib/puppet/network/http/handler.rb lib/puppet/network/http/mongrel/rest.rb spec/integration/indirector/rest.rb spec/integration/network/server/mongrel.rb spec/integration/network/server/webrick.rb spec/unit/network/http/webrick.rb
| * Always using the cert name to store yaml files, which fixes #1178.Luke Kanies2008-05-261-44/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Using the new Cacher class for handling cached data.Luke Kanies2008-05-131-1/+1
| | | | | | | | | | This provides a single, global bit for determining whether a given piece of cached data is still valid.
* | Merge branch '0.24.x'Luke Kanies2008-04-111-2/+2
|\|
| * Intermediate commit.Luke Kanies2008-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a Request instance into the indirection, pushing it all the way to the terminus instances. It's a big commit because it requires modifying every terminus class. There are still some thorny design issues. In particular, who should be responsible for making the request object? I've tried having both the indirection class and the Indirector module creating it, and both have their issues. Also, the Catalog class previously allowed passing Node instances directly to the find method, which is now no longer possible because the Request class would treat the node as the instance being found. We need the request class to have two modes, one when it's passed an instance and one when it's passed a key.
* | Merge branch '0.24.x'Luke Kanies2008-03-251-2/+2
|\| | | | | | | | | | | | | | | Conflicts: install.rb lib/puppet/defaults.rb man/man8/puppet.8
| * Moved the configuration of the Node cache to the puppetmasterdLuke Kanies2008-03-241-2/+2
| | | | | | | | | | executable, since it otherwise causes caches to be used in all cases, which we don't want (e.g., bin/puppet was using them).
* | Merge branch '0.24.x'Luke Kanies2008-03-201-0/+4
|\|
| * Caching node information in yaml (I figured caching in memory willLuke Kanies2008-03-161-0/+4
| | | | | | | | | | | | | | | | | | | | 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)
* | Environments are now available as variables in manifests,Luke Kanies2008-01-201-0/+16
|/ | | | and specs can be directly executed again.
* Renaming the 'null' terminus type to 'plain', asLuke Kanies2007-12-111-2/+2
| | | | requested in #960.
* Fixing #951 -- external nodes work again, but you have toLuke Kanies2007-12-101-0/+66
| | | | set the 'node_terminus' setting to 'exec'.
* Using the Environment class to determine the default environment,Luke Kanies2007-11-201-0/+140
rather than plenty of different places having the logic of how to determine the default environment.