Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dans hack/garys update #2

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

glarizza
Copy link
Owner

Implement the following:

  • Support for installation via rubygem or apt/yum
  • Support for Passenger
  • Installation of Puppet agent, master, and the dashboard

Dan Bode and others added 30 commits July 28, 2011 21:57
Makes the package provider a config param.

If the provider is gem, start Puppet with an exec.
Otherwise, use the service script.
Fixed dependency to either be set on the master
starting exec or service.
Removed redundant variable namespace.

Since the class is already called storedconfigs
prefixig variables with this namespace is
unneccassry.

Made installation of mysql packages optional.

This will allow the module to be usable on systems
that already install mysql from another module.

Condensed data, database_user, and grants in the
single mysql::db define
Added reasonable defaults for puppet master params

Added a manifest, autosign, and certname param.

set reasonable defaults for certname, service, 
package and modulepath
To avoid duplicate configs when client and server
are installed together.
Add parameters for puppet.conf configuration and to allow for
the puppet master to be run with Passenger.
Remove the validation and _real variables for consistency.
Some classes used this method, and some did not.
Fix parameters that have their defaults set in init.pp and
remove the unneeded manifests parameter.
Add functionality to run puppet master with Passenger. If 
Passenger is to be used, ensure that that the puppet master cert
exists, declare the passenger class, declare an Apache virtual
host, modify puppet.conf, and ensure that the puppet master
config.ru file is present.
Implement the parameters used in the puppetlabs-dashboard class.
Declare the concat::setup class and ensure its order.
This commit fixes the certificate check by setting a path
and logging output on failure.
This commit declares two variables: $service_notify and 
$service_require and uses them to setup puppet.conf with concat.
The agent now checks to see if the puppet package has been
declared.  If it hasn't, it will do so.
Use the $puppet_agent_name variable for the puppet package.
If you install via rubygems, the puppet user and group
is not created. This declaration will do that for you and
allow you to pass a parameter for the UID and GID of the
puppet user/group.
This commit will pass both puppet_agent_name and
package_provider to the agent class.
This commit ensures that /etc/puppet is owned by the puppet
user and group with a recurselimit of 1.
This fact is unnecessary as we pass certname as a parameter.
This commit checks to see if /etc/puppet is being managed
elsewhere.  If not, it will declare it.  The agent and 
master class also append the require and notify parameters
to accomodate for its package and service declarations.
If the puppet master package is not declared, we will 
declare it in the master class.
This commit removes the service declaration for the master 
class.  We will use the exec to start/stop the service.
Rename the concat::fragment to puppet.conf-master and order
it based on if we're using Passenger or not.
Ensure the owner/group on the $vardir and notify the 
puppet service if it's changed.
Gary Larizza added 7 commits August 16, 2011 13:44
Default the dbadapter to mysql, and set the puppet_master_package
to be 'puppet' instead of 'puppet-server'
Activerecord is necessary for storeconfigs, and version 2.2.2
is compatible with ruby 1.8.5 and CentOS 5.
This will align our puppet.conf templates.
If you declare the master class but not the agent class,
the puppet.conf-common concat fragment was not being declared.
This commit checks to see if it's not defined - if it isn't, it
will declare it for you.
glarizza pushed a commit that referenced this pull request Oct 19, 2012
This pull requests contains a refactor of the puppetlabs module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant