Good day to all:
I'm trying to use the browser's dashboard to pass a parameter variable to a simple class.
class hello ( $file_name ) {
file {"/tmp/${file_name}":
owner => 'ubuntu',
group => 'ubuntu'
}
}
But when I run the agent update I keep getting
ubuntu@db:~$ sudo puppet agent --test
info: Retrieving plugin
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Must pass file_name to Class[Hello] at /etc/puppetlabs/puppet/modules/hello/manifests/init.pp:1 on node
db.company.com
Any ideas on what I'm doing wrong?
Thanks in advance.