Created
March 23, 2010 20:33
-
-
Save jfryman/341620 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/puppet/manifests/modules.pp | |
import "sudo" | |
import "syslog-ng" | |
# /etc/puppet/manifests/site.pp | |
import "modules" | |
import "nodes" | |
import "templates" | |
# The filebucket option allows for file backups to the server | |
filebucket { main: server => 'xenon.frymanet.com' } | |
# Set global defaults - including backing up all files to the main filebucket an | |
d adds a global path | |
File { backup => main } | |
Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } | |
Package { | |
provider => $operatingsystem ? { | |
debian => aptitude, | |
redhat => up2date | |
} | |
} | |
# /etc/puppet/manifests/nodes.pp | |
node basenode { | |
include sudo | |
inlcude syslog-ng | |
} | |
# /etc/puppet/modules/syslog-ng/manifests/init.pp | |
class syslog-ng { | |
package { syslog-ng: ensure => latest } | |
service { | |
syslog-ng: | |
ensure => true, | |
enable => true, | |
} | |
} | |
error: | |
Mar 23 16:47:31 ubuntu puppetmasterd[32166]: Could not parse for environment development: Unknown function inlcude at /etc/puppet/manifests/nodes.pp:6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment