Permalink
Browse files

First commit.

  • Loading branch information...
1 parent fae1581 commit 34b30c97b1f7ff034afd6a0d0002db7ece270565 @grahamgilbert committed Feb 12, 2013
Showing 445 changed files with 21,838 additions and 0 deletions.
@@ -0,0 +1,103 @@
+#Quick Manifest to stand up a demo Puppet Master
+#include apt
+
+##we'll need php and the current version of the php file as well.
+##Need to install puppet dashboard and configure it
+node default{
+
+
+
+
+ #package { 'puppetdb-terminus':
+ # ensure => latest,
+ #}
+
+ package {'libapache2-mod-php5':
+ ensure => latest,
+ }
+
+ host { 'puppet.pebbleit.dev':
+ ensure => 'present',
+ host_aliases => ['puppet'],
+ ip => '192.168.33.10',
+ target => '/etc/hosts',
+ }
+
+
+ package {'puppetmaster':
+ ensure => latest,
+ require => Host['puppet.pebbleit.dev'],
+ }
+
+ # Configure puppetdb and its underlying database
+ class { 'puppetdb':
+ listen_address => '0.0.0.0',
+ require => Package['puppetmaster'],
+ puppetdb_version => latest,
+ }
+ # Configure the puppet master to use puppetdb
+ class { 'puppetdb::master::config': }
+
+ class {'dashboard':
+ # dashboard_ensure => 'present',
+ # dashboard_user => 'puppet-dbuser',
+ # dashboard_group => 'puppet-dbgroup',
+ # dashboard_password => 'changeme',
+ # dashboard_db => 'dashboard_prod',
+ # dashboard_charset => 'utf8',
+ dashboard_site => $fqdn,
+ dashboard_port => '3000',
+ # mysql_root_pw => 'changemetoo',
+ #passenger => true,
+ require => Package["puppetmaster"],
+ }
+
+ #service{'puppetmaster':
+ # ensure => running,
+ # require => Package['puppetmaster'],
+ # }
+
+
+ ##we copy rather than symlinking as puppet will manage this
+ file {'/etc/puppet/puppet.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ source => "/vagrant/puppet/puppet.conf",
+ notify => [Service['puppetmaster'],Service['puppet-dashboard'],Service['puppet-dashboard-workers']],
+ require => Package['puppetmaster'],
+ }
+
+ file {'/etc/puppet/autosign.conf':
+ ensure => link,
+ owner => root,
+ group => root,
+ source => "/vagrant/puppet/autosign.conf",
+ notify => [Service['puppetmaster'],Service['puppet-dashboard'],Service['puppet-dashboard-workers']],
+ require => Package['puppetmaster'],
+ }
+
+ file {'/etc/puppet/auth.conf':
+ ensure => link,
+ owner => root,
+ group => root,
+ source => "/vagrant/puppet/auth.conf",
+ notify => [Service['puppetmaster'],Service['puppet-dashboard'],Service['puppet-dashboard-workers']],
+ require => Package['puppetmaster'],
+ }
+
+ file {'/etc/puppet/fileserver.conf':
+ ensure => link,
+ owner => root,
+ group => root,
+ source => "/vagrant/puppet/fileserver.conf",
+ notify => [Service['puppetmaster'],Service['puppet-dashboard'],Service['puppet-dashboard-workers']],
+ require => Package['puppetmaster'],
+ }
+
+ file {'/etc/puppet/modules':
+ mode => '0644',
+ recurse => true,
+ }
+
+}
@@ -0,0 +1,42 @@
+2012-08-24 Release 0.4.0
+Changes:
+- `include apache` is now required when using apache::mod::*
+
+Bugfixes:
+- Fix syntax for validate_re
+- Fix formatting in vhost template
+- Fix spec tests such that they pass
+
+2012-05-08 Puppet Labs <info@puppetlabs.com> - 0.0.4
+e62e362 Fix broken tests for ssl, vhost, vhost::*
+42c6363 Changes to match style guide and pass puppet-lint without error
+42bc8ba changed name => path for file resources in order to name namevar by it's name
+72e13de One end too much
+0739641 style guide fixes: 'true' <> true, $operatingsystem needs to be $::operatingsystem, etc.
+273f94d fix tests
+a35ede5 (#13860) Make a2enmod/a2dismo commands optional
+98d774e (#13860) Autorequire Package['httpd']
+05fcec5 (#13073) Add missing puppet spec tests
+541afda (#6899) Remove virtual a2mod definition
+976cb69 (#13072) Move mod python and wsgi package names to params
+323915a (#13060) Add .gitignore to repo
+fdf40af (#13060) Remove pkg directory from source tree
+fd90015 Add LICENSE file and update the ModuleFile
+d3d0d23 Re-enable local php class
+d7516c7 Make management of firewalls configurable for vhosts
+60f83ba Explicitly lookup scope of apache_name in templates.
+f4d287f (#12581) Add explicit ordering for vdir directory
+88a2ac6 (#11706) puppetlabs-apache depends on puppetlabs-firewall
+a776a8b (#11071) Fix to work with latest firewall module
+2b79e8b (#11070) Add support for Scientific Linux
+405b3e9 Fix for a2mod
+57b9048 Commit apache::vhost::redirect Manifest
+8862d01 Commit apache::vhost::proxy Manifest
+d5c1fd0 Commit apache::mod::wsgi Manifest
+a825ac7 Commit apache::mod::python Manifest
+b77062f Commit Templates
+9a51b4a Vhost File Declarations
+6cf7312 Defaults for Parameters
+6a5b11a Ensure installed
+f672e46 a2mod fix
+8a56ee9 add pthon support to apache
@@ -0,0 +1,15 @@
+Copyright (C) 2012 Puppet Labs Inc
+
+Puppet Labs can be contacted at: info@puppetlabs.com
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
@@ -0,0 +1,12 @@
+name 'puppetlabs-apache'
+version '0.4.0'
+source 'git://github.com/puppetlabs/puppetlabs-apache.git'
+author 'puppetlabs'
+license 'Apache 2.0'
+summary 'Puppet module for Apache'
+description 'Module for Apache configuration'
+project_page 'https://github.com/puppetlabs/puppetlabs-apache'
+
+## Add dependencies, if any:
+dependency 'puppetlabs/firewall', '>= 0.0.4'
+dependency 'puppetlabs/stdlib', '>= 2.2.1'
@@ -0,0 +1,72 @@
+Puppetlabs module for Apache
+============================
+
+Apache is widely-used web server and this module will allow to configure
+various modules and setup virtual hosts with minimal effort.
+
+Basic usage
+-----------
+
+To install Apache
+
+ class {'apache': }
+
+To install the Apache PHP module
+
+ class {'apache::mod::php': }
+
+Configure a virtual host
+------------------------
+
+You can easily configure many parameters of a virtual host. A minimal
+example is:
+
+ apache::vhost { 'www.example.com':
+ priority => '10',
+ vhost_name => '192.0.2.1',
+ port => '80',
+ }
+
+A slightly more complicated example, which moves the docroot and
+logfile to an alternate location, might be:
+
+ apache::vhost { 'www.example.com':
+ priority => '10',
+ vhost_name => '192.0.2.1',
+ port => '80',
+ docroot => '/home/www.example.com/docroot/',
+ logroot => '/srv/www.example.com/logroot/',
+ serveradmin => 'webmaster@example.com',
+ serveraliases => ['example.com',],
+ }
+
+Notes
+-----
+
+Since Puppet cannot ensure that all parent directories exist you need to
+manage these yourself. In the more advanced example above, you need to ensure
+that `/home/www.example.com` and `/srv/www.example.com` directories exist.
+
+Contributors
+------------
+
+ * A cast of hundreds, hopefully you too soon
+
+Copyright and License
+---------------------
+
+Copyright (C) 2012 [Puppet Labs](https://www.puppetlabs.com/) Inc
+
+Puppet Labs can be contacted at: info@puppetlabs.com
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
@@ -0,0 +1 @@
+require 'puppetlabs_spec_helper/rake_tasks'
@@ -0,0 +1,24 @@
+# Configuration file for the httpd service.
+
+#
+# The default processing model (MPM) is the process-based
+# 'prefork' model. A thread-based model, 'worker', is also
+# available, but does not work with some modules (such as PHP).
+# The service must be stopped before changing this variable.
+#
+#HTTPD=/usr/sbin/httpd.worker
+
+#
+# To pass additional options (for instance, -D definitions) to the
+# httpd binary at startup, set OPTIONS here.
+#
+#OPTIONS=
+#OPTIONS=-DDOWN
+
+#
+# By default, the httpd process is started in the C locale; to
+# change the locale in which the server runs, the HTTPD_LANG
+# variable can be set.
+#
+#HTTPD_LANG=C
+export SHORTHOST=`hostname -s`
@@ -0,0 +1,22 @@
+Puppet::Type.type(:a2mod).provide(:a2mod) do
+ desc "Manage Apache 2 modules on Debian and Ubuntu"
+
+ optional_commands :encmd => "a2enmod"
+ optional_commands :discmd => "a2dismod"
+
+ confine :osfamily => :debian
+ defaultfor :operatingsystem => [:debian, :ubuntu]
+
+ def create
+ encmd resource[:name]
+ end
+
+ def destroy
+ discmd resource[:name]
+ end
+
+ def exists?
+ mod= "/etc/apache2/mods-enabled/" + resource[:name] + ".load"
+ File.exists?(mod)
+ end
+end
Oops, something went wrong.

0 comments on commit 34b30c9

Please sign in to comment.