Skip to content

Instantly share code, notes, and snippets.

@mrvisser
Created March 29, 2013 19:11
Show Gist options
  • Save mrvisser/5272915 to your computer and use it in GitHub Desktop.
Save mrvisser/5272915 to your computer and use it in GitHub Desktop.
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