Skip to content

Commit

Permalink
Improved documentation of the base puppet script.
Browse files Browse the repository at this point in the history
  • Loading branch information
manarth committed May 18, 2012
1 parent 47aaa41 commit 38e2033
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
20 changes: 15 additions & 5 deletions puppet/manifests/base.pp
@@ -1,40 +1,50 @@
# -*- mode: puppet -*-
# vi: set ft=puppet :


group { "puppet":
ensure => present,
}

# Add a stage which precedes the main installation routine.
stage {"pre": before => Stage["main"]}
# Ensure apt updates before running the main installation routine.
class {'apt': stage => 'pre'}

# Seriously, no-one gets by without vim and the like these days.
package { 'vim': }
package { 'vim-puppet': }
package { 'curl': }

# Global.
# TODO: Get a bunch of vim syntax files here, like nginx, vcl, etc.
# Oh, and rewrite the filetype settings.
# Seriously, .module IS NOT a Pascal file.


# Services used to run Drupal.
package { 'apache2': }
package { 'mysql-server': }
package { 'memcached': }
package { 'varnish': }

# PHP and a bunch of PHP extensions.
package { 'php5': }
package { 'php5-cli': }
package { 'php5-dev': }
package { 'php-apc': }

package { 'php5-curl': }
package { 'php5-gd': }
package { 'php5-memcache': }
package { 'php5-memcached': }
package { 'php5-mysql': }
package { 'php5-xdebug': }
package { 'php5-xsl': }


# Dev-only.
# These packages would normally only be used in Dev.
class {'avahi': }

package { 'gcc': }
package { 'make': }
package { 'git-core': }
package { 'subversion': }
package { 'php5-dev': }
package { 'php5-xdebug': }
@@ -0,0 +1,4 @@
# The following command is used to list all the named virtual hosts declared in
# Apache, which end with the suffix '.local'.
# These are typically announced via Avahi.
apache2ctl -S 2>/dev/null | grep 'namevhost' |sed "s:.*namevhost \([^ ]*\) .*$:\1:" | grep -e '\.local$'

0 comments on commit 38e2033

Please sign in to comment.