Charles Johnson <gm.johns...@gmail.com> writes:

> I have verified that if I add this to site.pp

[...]

> The file is indeed created as requested.
>
> The imports, however, do not seem to be effective:
>
> import "modules"
> import "templates"
> import "nodes"

Er, did you include the class that manages the MOTD file anywhere?
Your debug output says no, because nothing mentions motd at all...

The way to use modules is, roughly:

manifests/nodes.pp:
node "example.com" { include motd }

modules/motd/manifests/init.pp:
class motd {
    file { "/etc/motd": content => "You ran my example?" }
}

The 'include' part is the key; modules don't just do things without being
asked.

> I have changed *nothing* except the server moving from 0.24.8 to 0.25.4. Do
> I have to delete all the puppet directories on all the clients? (Ugh!)

No.  This just works(tm), aside from the need to change the file paths to
reflect the new "files in modules" path vs the old "files in modules" path.

        Daniel

At least, not on my 50-odd nodes it didn't.
-- 
✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to