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

311 Коммитов

Автор SHA1 Сообщение Дата
Jesse Wolfe 7656ba73dd feature #2276 Single Executable: CommandLine can be instantiated
refactor CommandLine to be an object

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe 63e2e56d31 feature #2276 Single Executable: subcommand method
Extract the logic to determine the subcommand name into a method.

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe b6e2ce6a85 feature #2276 Single Executable: help info
Change the --help text to match the new single executable invocations

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe b0737228b8 feature #2276 Single Executable: help for apply
restore the help text for the apply command

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe 71033786bf feature #2276 Single Executable: legacy settings
Puppet's defaults change depending on which command invokes them.
This patch makes sure that we use the maintain the current behavior.
This is a temporary fix until I implement feature #2935.

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe 54c1cc5dc9 feature #2276 Single Executable: "puppet describe"
Add "puppet describe" as the new invocation of "pi"

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe 1d8bd0d930 Fix #3552 single executable should display usage
Added some tests to make the single executable command behavior
explicit.
Added logic to display the usage message if we're on a tty and no
arguments are passed.

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Jesse Wolfe 748aed9a4f Fix #3552 single executable should display usage
Added some tests to make the single executable command behavior
explicit.
Added logic to display the usage message if we're on a tty and no
arguments are passed.

Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
2010-02-17 06:50:53 -08:00
Luke Kanies edef6478e0 Fixing 'puppet' to directly run manifests
It was previously requiring that you specify an application
name, thus breaking the ability to easily run commands like:

    puppet ~/bin/test.pp

Or even having '#/usr/bin/env puppet --verbose' in the first
line of an executable script and having that work.

Signed-off-by: Luke Kanies <luke@puppetlabs.com>
2010-04-09 15:49:23 -07:00
Luke Kanies 7c253177fb Moving puppet back to bin
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
2010-04-09 14:59:09 -07:00
Rein Henrichs c014c297eb Renaming the old puppet executable 2010-02-17 06:50:53 -08:00
Rein Henrichs 3c8d0122c3 Fix application name in bin/ralsh 2010-02-17 06:50:53 -08:00
Luke Kanies 7a327775c1 Renaming applications, mostly removing 'puppet'
Signed-off-by: Luke Kanies <luke@madstop.com>
2010-02-17 06:50:53 -08:00
Eric Sorenson d40ef29119 Signed-off-by: Eric Sorenson <ahpook@gmail.com>
Apologies if this violates the no-trivial-patches rule. I am getting
used to git and this seemed like a harmless place to start.

Documentation fix for help text, configuration reference URL is 404 now.
Updated to equivalent page on wiki, fixes #2466
Signed-off-by: Eric Sorenson <ahpook@gmail.com>
2009-08-01 11:10:55 +10:00
James Turnbull 44f127f738 Added Markdown mode to puppetdoc to output Markdown.
Requires the pandoc binary to function (http://johnmacfarlane.net/pandoc/).
2009-07-10 14:55:41 +10:00
David Lutterkort c45ebfad1b Fixed pi binary so --meta option works and updated documentation
Signed-off-by: James Turnbull <james@lovedthanlost.net>
2009-06-13 11:16:06 +10:00
James Turnbull 1c4ef61a13 Fixed #2052 - Added -e option to puppet --help output 2009-06-12 23:33:21 +10:00
James Turnbull a94d2de421 Fixed pi tests 2009-06-12 12:21:16 +10:00
James Turnbull 5f7455ea2f Fixed #2222 - Cleanup pi binary options and --help output 2009-06-12 10:36:13 +10:00
Ian Taylor 4f2c066a97 Removed extra whitespace from end of lines 2009-06-06 09:12:00 +10:00
James Turnbull 929130bafc Moved puppetqd binary 2009-04-28 22:40:17 +10:00
Luke Kanies 8a67a5c4e0 Adding daemonization to puppetqd
This will need to be modified on the merge into 0.25,
because the daemon module becomes a class, but that should
be easy enough.

Signed-off-by: Luke Kanies <luke@madstop.com>
2009-04-22 14:39:39 +10:00
Luke Kanies 444ae9f834 Adding puppetqd executable.
This uses the backported Application class, with a couple
of backported monkey-patches so the class works as expected
but in 0.24.

Signed-off-by: Luke Kanies <luke@madstop.com>
2009-04-22 14:39:38 +10:00
James Turnbull 3e0a9cda8c Moved of puppetd, puppetca, puppetmasterd, puppetrun binary from bin to sbin 2009-03-21 02:27:00 +11:00
Brice Figureau 156fb81ca9 Move puppetd to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:11 +01:00
Brice Figureau 0c71c5cde2 Move puppetdoc to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:11 +01:00
Brice Figureau e317fa9717 Move ralsh to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:11 +01:00
Brice Figureau 81f5438f66 Move puppetrun to Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:11 +01:00
Brice Figureau 3390d8db8b Move pi to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:10 +01:00
Brice Figureau 8265d6eaf7 Move puppetmasterd to Puppet::Application
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:10 +01:00
Brice Figureau af219bf45f Move puppet to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:10 +01:00
Brice Figureau d51398c3eb Move filebucket to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:10 +01:00
Brice Figureau 9b9e5e895b Move puppetca to the Application Controller paradigm
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2009-02-16 20:12:10 +01:00
Luke Kanies 5335788411 Fixing tests broken during the #1405 fix.
Most of these were small changes, like moved methods.

Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06 18:08:44 -06:00
Luke Kanies c0fcb2137e Creating and using a new Puppet::Daemon class
This replaces the short-lived EventManager class, all of
the service- and timer-related code in puppet.rb, and moves
code from agent.rb, server.rb, and other places into one
class responsible for starting, stopping, pids, and more.

The Daemon module is no longer in existence, so it's been
removed from the classes that were using it.

Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06 18:08:43 -06:00
Luke Kanies fc14b81f99 Splitting the Agent class into Agent and Configurer
Once I went to add runinterval support to the Agent class,
I realized it's really two classes:  One that handles starting,
stopping, running, et al (still called Agent), and one that
handles downloading the catalog, running it, etc. (now
called Configurer).

This commit includes some additional code, but 95% of it is just moving code around.

Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06 18:08:42 -06:00
Luke Kanies 502e062c27 Removing an erroneous configuration call in puppetmasterd
Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06 18:08:42 -06:00
Luke Kanies 63fb514061 Revert "This is work that I've decided not to keep"
This reverts commit f57a5e88229578747dde2c90af3a696ad0172e72.
2009-02-06 18:08:39 -06:00
Luke Kanies 8f5cbc349d This is work that I've decided not to keep
so I'm just applying it here so it continues to show
up in the history in case I ever want to look at it again.

Signed-off-by: Luke Kanies <luke@madstop.com>
2009-02-06 18:08:39 -06:00
James Turnbull 1407865701 Revert "Fixed #1916 - Added environment option to puppetd"
This reverts commit 8d0086b3cb.
2009-02-01 11:05:48 +11:00
James Turnbull 8d0086b3cb Fixed #1916 - Added environment option to puppetd 2009-01-31 12:33:57 +11:00
Luke Kanies 566bf7820e Fixing #1729 - puppetmasterd can now read certs at startup
The main aspect of this solution is to create a site-wide
Puppet::SSL::Host instance to cache ssl key and certificate,
so that by the time we've switched UIDs, we've got the key and
cert in memory.  Then webrick just uses that, rather than creating
a new Host instance.

Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-18 18:06:45 -06:00
Luke Kanies d48fff6658 Renaming Puppet::Node::Catalog to Puppet::Resource::Catalog
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-12-18 11:10:21 -06:00
Luke Kanies 71b8befa42 Merge branch '0.24.x'
Conflicts:

	CHANGELOG
	lib/puppet/type/tidy.rb
	spec/unit/type/file/ensure.rb
	spec/unit/type/tidy.rb
2008-12-09 15:10:09 -06:00
Brice Figureau 435f1e9b52 Fix #1483 - use REST to transmit reports over the wire
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2008-12-06 16:53:03 +01:00
Nigel Kersten edef064ee2 Make ralsh behave more sanely for non-existent objects and property values 2008-12-06 12:00:00 +11:00
Luke Kanies 99a9b5a045 Merge branch '0.24.x'
Conflicts:

	bin/puppetca
	lib/puppet/type/group.rb
	lib/puppet/type/tidy.rb
	lib/puppet/util/settings.rb

Also edited the following files so tests will pass:

       lib/puppet/type/component.rb
       spec/unit/ssl/certificate_request.rb
       spec/unit/type/computer.rb
       spec/unit/type/mcx.rb
       spec/unit/type/resources.rb
       spec/unit/util/settings.rb
       spec/unit/util/storage.rb
       test/ral/type/zone.rb
2008-12-02 16:26:54 -06:00
James Turnbull c65f2b5083 Fixed #1668 - puppetca can't clean unsigned certs 2008-11-20 13:41:40 +11:00
Brice Figureau dc192b00dc Manifest documentation generation
There is currently two type of documentation generation
for manifests (module or modulepath):

 * RDoc HTML generation for modules and global manifests
 * console output for sole manifest

Both version handles classes, defines, nodes, global
variable assignements, and resources when --all is used.

The usage is the following:

For the rdoc variant:
$ puppetdoc --mode rdoc --outputdir doc
It uses the puppet.conf configuration file to get the modulepath
and manifestdir settings. Those are overridable on the
command line with --modulepath and --manifestdir.

For the console output version:
$ puppetdoc /path/to/manifests

Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
2008-11-17 21:06:00 +11:00
Luke Kanies 255c9fbcc0 Setting puppetmasterd up to serve all indirected classes.
Signed-off-by: Luke Kanies <luke@madstop.com>
2008-11-03 22:15:09 -06:00