Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I get puppet to load other policy files in the manifest directory?

It loads site.pp fine, but I would like to load a couple others I have in the directory and it is not loading them with a default install. I realize modules may be a better approach, and I may end up doing that, but for now I just want to logically separate the configuration into separate files. This information is difficult to find in the documentation.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you have your other files in the same directory, you can toss something like this into your site.pp:

import "someotherfile.pp"
import "classes/*"
import "definitions/*"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.