Created
March 29, 2013 19:11
-
-
Save mrvisser/5272915 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
class service::rsyslog::base { | |
class { 'rsyslog': | |
server_host => $localconfig::rsyslog_host_internal, | |
server_logdir => $localconfig::rsyslog_server_logdir, | |
} | |
} | |
class service::rsyslog::server inherits service::rsyslog::base { | |
Class['rsyslog'] { clientOrServer => 'server' } | |
} | |
class service::rsyslog::client ($imfiles = false) inherits service::rsyslog::base { | |
Class['rsyslog'] { clientOrServer => 'client' } | |
} | |
class machine::base { | |
class { 'service::rsyslog::client': } | |
} | |
class machine ($type_code, $suffix) inherits machine::base { | |
class { 'service::munin::client': type_code => $type_code, suffix => $suffix } | |
} | |
node 'activity-cache-master' { | |
class { 'machine': type_code => 'activity-cache', suffix => '-master' } | |
} | |
Error: | |
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[Service::Rsyslog::Base] is already declared; cannot redeclare on node activity-cache-master | |
Warning: Not using cache on failed catalog | |
Error: Could not retrieve catalog; skipping run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment