diff options
author | Micah Anderson <micah@riseup.net> | 2015-05-08 12:43:55 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2015-05-08 12:43:55 -0400 |
commit | 514a6ce8fabe8702a5e50e103949d5aabd355ff0 (patch) | |
tree | 675e077858f582bc3a77921187955acb2071c567 /README | |
parent | ae149624f9bc551865b93b9b7155af2de8deeb71 (diff) | |
download | puppet-common-514a6ce8fabe8702a5e50e103949d5aabd355ff0.tar.gz puppet-common-514a6ce8fabe8702a5e50e103949d5aabd355ff0.tar.bz2 |
Fixes #1 - Update README to include information for upgrading to the new version
Diffstat (limited to 'README')
-rw-r--r-- | README | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -4,7 +4,20 @@ Common Module The common module installs various functions that are required by other modules. This module should be installed before any of the other module. -! Upgrade Notice ! +! Upgrade Notices ! + +The old way of using the common module required that you add 'import common' to +a modules.pp file that you included from site.pp. This is no longer the way to +do it, and will not work (the import keyword is deprecated and will be removed +in puppet 4), also you will get this error if you are doing this: + +Could not parse for environment production: No file(s) found for import of 'common' + +The module_{dir,file} have been moved to common::module_{dir,file} - you will +need to change all occurances in your manifests to match the new format + +The replace and delete_lines functions have been removed, you can use file_line +from stdlib instead. The 'append_if_no_such_line' define has been replaced with the 'line' define. If you are using 'append_if_no_such_line' anywhere in your manifests, you will need @@ -13,20 +26,6 @@ module. The 'line' define is a drop-in replacement and essentially equivalent, so the transition is quite easy, you should only simply need to change the name in your manifests. -To use this module, follow these directions: - -1. Your modules directory will need all the files included in this - repository placed under a directory called "common" - -2. Add the following line to manifests/site.pp: - - import "modules.pp" - -3. Add the following line to manifests/modules.pp: - - import "common" - - Original author: David Schmitt (mailto:david@dasz.at) Copyright:: Copyright (c) 2007-2009 dasz.at OG License:: 3-clause BSD |