Skip to content

Instantly share code, notes, and snippets.

@panterch
Created August 26, 2010 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panterch/551479 to your computer and use it in GitHub Desktop.
Save panterch/551479 to your computer and use it in GitHub Desktop.
node "works" {
include rails # where 'rails' can be an empty class...
file { "/etc/apache2/sites-available/railsapp":
ensure => present,
source => "puppet:///modules/rails/apache",
}
}
node "does_not_work" {
include rails
file { "/etc/apache2/sites-available/rails":
ensure => present,
source => "puppet:///modules/rails/apache",
}
}
the node does_not_work produces the following output:
debug: Using cached certificate for ca
debug: Using cached certificate for lxc2.panter.local
debug: Using cached certificate_revocation_list for ca
debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw yaml; using
pson
debug: importing '/etc/apache2/sites-available/rails' in environment production
err: Could not retrieve catalog from remote server: Could not intern from pson:
Syntax error at '<' at /etc/apache2/sites-available/rails:2
debug: Using cached catalog for lxc2.panter.local
notice: Using cached catalog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment