I am trying to get the binary file on the agent from the master first then execute it : code below:
I have a binary file called install.sh on the master under /data/binary
on the agent when I run : puppet agent -t
I get the following errro:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not get metadata for puppet:///binaries/install.sh
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
1 class profile: epo {
2
3 file { '/tmp/install.sh':
4 ensure => 'file',
5 source => 'puppet:///binaries/install.sh',
6 notify => Exec['somthing'],
7 }
8 exec { 'something':
9 command => '/tmp/install.sh',
10 refreshonly => true,
11 }
12
13 class { 'epo':
14 class_enabled => true,
15 agent_install_type => 'script',
16 agent_install_options => '-i',
17 agent_service_name => 'cma',
18 agent_service_ensure => 'running',
19 agent_service_enable => true,
20 agent_service_provider => 'init',
21 agent_service_script => '/etc/init.d/cma',
22 }
23 }
↧