Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

how to get a binary file read from master to agent on puppet enterprise

$
0
0
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 }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>