I need to copy files from puppet master to agent using tasks ,whenever I need to copy on random linux servers. Please help me on this.
How to copy files from master to agent nodes using tasks
273 Views Asked by Siva Perumal At
1
There are 1 best solutions below
Related Questions in PUPPET
- Group nodes in hiera by hiera-defined fact
- Puppet: Pass variables from Puppet agent to master?
- Unable to install RabbitMQ using puppet due to curl error
- php5enmod mcrypt with Puppet
- Am I using puppet contain correctly?
- Install apache module with puppet on Debian 7
- How to make Puppet track TCP ports to avoid conflicts?
- Puppet inline template with puppet:// in URL
- Getting Error 400 on SERVER: Could not find terminus puppetdb for indirection facts
- How to create hierarchy in puppet
- Using puppet to create a lvm with dynamic size
- Does Puppet Dashboard work in Ruby Passenger 5?
- how to add template file in rspec-puppet
- RabbitMQ localhost strange character text
- Vagrant enters aborted state during apt-get update
Related Questions in PUPPET-ENTERPRISE
- How to create hierarchy in puppet
- Duplicate class error on Puppet Enterprise Hiera config
- Puppet is pointing to the older version ruby installed
- Could not autoload puppet/type/dism Error on running puppet script
- Puppet executes classes in the wrong order
- Puppet enterprise error while running "puppet agent -t" commnad, unable to get User/Group data from hieara
- Unable to connect to Enterprise Puppet server using Windows agent
- Managing multiple projects having multiple environments using Puppet
- Disable IPv6 on Windows Server 2008 R2 using Puppet
- puppet and puppetmaster won't start
- Triggering dependent resources in a interation loop
- Deprecation of modulepath in Puppets implicit environments?
- puppet-agent install not available from repo's on Debian Bullseye
- Puppet copy file if not empty
- Failed to launch the browser process! Ubuntu
Related Questions in PUPPETLABS-APACHE
- Install apache module with puppet on Debian 7
- Does Puppet Dashboard work in Ruby Passenger 5?
- Vagrant/Puppet Connection Timeout (Obvious Fixes Attempted, Working Previously)
- Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"
- how to upgrade puppet module in target-dir
- How to copy files from master to agent nodes using tasks
- Puppet tomcat install doesn't run chained instance resource
- Copy log file from Agent to Master Puppet
- Platform Independent Manifest to install and run apache2 or httpd
- puppet service wont start
- Maintain sub-folder and files permission as in source: puppet
- Install Apache from Puppetlabs on Vagrant
- Error about deprecated Puppet MySQL keeps showing up
- Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv3
- Concatenating variable and regexp expression in Puppet
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A little light on detail, so I have to make some assumptions. You state you use a task, but you mention you want to get rid of corrective changes, which indicates a normal Puppet run, not a task.
My first assumption then is that you are using Puppet code, not executing a task via Bolt or the GUI. Using the file resource, you can state the endpoint for the file in the resource itself: doco
Alternatively, you can use an exec resource with a 'creates' tag to ensure it only pulls it once.
The easiest might be to just use the file resource and place the file in the module.
But, without more info, it will be hard to help properly.