err: Could not run Puppet configuration client: Could not find dependency
Class[Nginx::Install] for File[/opt/nginx/nginx.conf] at
/etc/puppet/modules/nginx/manifests/configure.pp:24
perhaps this is because this is coming not from a class but from a define...
# pwd /etc/puppet/modules/nginx/manifests
# cat init.pp
class nginx {
include nginx::install, nginx::service, nginx::prerequisites
}
# cat configure.pp
define nginx::configure(
$ip="*",
$port="80",
$ssl=false,
$ssl_certificate="cert.pem",
$ssl_certificate_key="cert.key",
$ssl_session_timeout="5m",
$ssl_protocols="SSLv2 SSLv3 TLSv1",
$ssl_ciphers="ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP",
$ssl_prefer_server_ciphers="on",
$template_conf=''nginx/nginx.conf.erb'')
{
case $operatingsystem {
centos, redhat: {
}
debian, ubuntu: {
file {"/opt/nginx/nginx.conf":
content => template($template_conf),
owner => root,
group => root,
mode => 644,
require => Class["nginx::install"],
notify => Class["nginx::service"],
}
}
}
}
and it errors on ''require'' and on ''notify''
Class...
do I have to somehow declare this to be a class in order to reference another
class?
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
Need help communicating between generations at work to achieve your desired
success? Let us help!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.