Hope you people are doing good.
I have a manifest file :
lass profile {
# setup profile parms. We dont handle non Ubuntu OS yet
if ("$operatingsystem" == "Ubuntu") {
file {
"/etc/profile.d":
ensure => directory,
purge => true,
force => true,
recurse => true,
owner => root,
group => root,
mode => 644;
}
}
}
class profile::ulimit inherits profile {
if ("$operatingsystem" == "Ubuntu") {
define set_ulimit($limit="null") {
file {
"/etc/profile.d/ulimit.sh":
ensure => file,
mode => 644,
owner => root,
group => root,
content => template('profile/ulimit.sh.erb');
}
}
set_ulimit { "ulimit.sh": limit => "$((2 * 1073741824))"; }
}
}
class profile::ulimit::full inherits profile::ulimit {
if ("$operatingsystem" == "Ubuntu") {
if defined(Set_ulimit["ulimit.sh"]) {
Set_ulimit["ulimit.sh"] {
limit => "unlimited" #unlimited
}
}
}
}
when i run puppet parser validate it gives me error :
err: Could not parse for environment production: Classes, definitions,
and nodes may only appear at toplevel or inside other classes;
expected '%s' at
/home/vgsuresh/svn/operations/puppet/modules/profile/manifests/init.pp:19
err: Try 'puppet help parser validate' for usage
--
Best Regards,
Suresh Kumar Prajapati
Operations Engineer | Inmobi India
E-mail: er.suresh...@gmail.com
Mob No: +91-9611708308
----------------------------------------------------------------------------------------
Theory is when you know all and nothing works. Practice is when all
works and nobody knows why. In this case we have put together theory
and practice: nothing works... and nobody knows why!
Hi John,
thanx for looking into it.
Problem resolved.
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.