Puppet symbolic link exercise

Hello,

Exercise marked as failed with the following error:

Task Status - Failed
  • it seems like class ‘symlink’ is not defined properly in ‘news.pp’ on Jump Server

Following is my news.pp file which ran successfully. Hope someone will help me understand what’s wrong.

Thanks.

/etc/puppetlabs/code/environments/production/manifests
sh-4.2# vi news.pp
sh-4.2# cat news.pp
class symlink {
file { ‘/opt/devops’:
ensure => ‘link’,
target => ‘/var/www/html’,
}
file { ‘/opt/devops/story.txt’:
ensure => ‘present’,
}
}

Even I had a similar problem. The code executed fine without any issue and I am sure the class that I defined was correct. Can anyone please look into it, I can share the news.pp file if required.