Re: [Puppet Users] Bolt running local script

2020-08-07 Thread Alex Dreyer
You'll have to use the localhost target inside a loop in a plan for that. get_targets($targets).each |$t| { run_script('myscript', 'localhost', arguments => [ $t.host ]) } If you convert the script into a task you can use run_task_with to parallelize it but it's probably easier to just write a

Re: [Puppet Users] Re: puppet bolt templates ??

2020-02-11 Thread Alex Dreyer
On Tue, Feb 11, 2020 at 7:24 AM Shirish Shukla wrote: > What about if puppet agent not installed on target > Is there any way we can use epp file > There are a few options - You can target localhost for the apply to create the file locally and then use upload_file to copy it. - You can write a t

Re: [Puppet Users] Path to pkcs7-keys using Bolt, eyaml, hiera.yaml

2019-12-10 Thread Alex Dreyer
On Tue, Dec 10, 2019 at 3:57 AM Andreas Torbiörnsson < andreas.torbiorns...@gmail.com> wrote: > Hi group! > > Does anyone know if it is possible to use relative paths for the > encryption keys when using hiera/eyaml with Bolt. I can't find any info > about how Bolt/hiera treats relative paths when

Re: [Puppet Users] Can you run tasks from a manifest file?

2019-05-06 Thread Alex Dreyer
On Mon, May 6, 2019 at 8:11 AM Clarence H wrote: > Can you execute a task from a manifest file. > > I know you can execute > > puppet run task > > But I would like to run it from within my class like this... > > > > class foobar { > > file {/blah': >ensure => present > } > > run_task{

Re: [Puppet Users] Puppet-like logging for apply blocks in Bolt

2019-01-18 Thread Alex Dreyer
Thanks, I agree this output should be available when you're debugging apply statements in plans and I did a spike on implementing this type of logging a few months ago. After some testing it became apparent that this is too much output for the default log level. When running on many nodes it overwh

Re: [Puppet Users] Re: Bolt 1.8.0 now available

2019-01-07 Thread Alex Dreyer
On Sat, Jan 5, 2019 at 6:04 PM Russell Fulton wrote: > Hi > > I have not come across Bolt before and have been looking at the docs. It > certainly looks like something that I can use. I am assuming that one > installs Bolt on your puppet server? But it really isn’t clear from the > docs which

[Puppet Users] Puppet Bolt 0.8.0 released with sudo support

2017-11-17 Thread Alex Dreyer
Bolt 0.8.0 is released! This is a feature release of the open-source task runner, which includes: - Sudo support: Tasks run over ssh can now connect as one user and '--run_as' a different user via sudo. - Winrm transport bug fixes - Results when running tasks, commands, scripts and uploading file

[Puppet Users] Re: Code Manager queued environments

2016-11-29 Thread Alex Dreyer
On Tuesday, November 29, 2016 at 7:48:36 AM UTC-8, Jonathan Gazeley wrote: > > I'm dabbling with a new PE 2016.4 installation as I'm hoping to finally > migrate away from Puppet 3. > > We're using code manager rather than r10k to deploy environments from > git using a commit hook from GitLab.

[Puppet Users] Re: puppet enterprise code manager issue

2016-05-12 Thread Alex Dreyer
On Thursday, May 12, 2016 at 11:01:49 AM UTC-7, Robert Chen wrote: > > my environment needs http_proxy, https_proxy for modules. probably code > manager issue is an proxy issue > > > # puppet-code deploy lab -l debug --wait > > 2016-05-12 13:39:48.388674 DEBUG puppetlabs.puppet-code - Loaded gl

[Puppet Users] Re: [announce] puppetlabs-concat 2.0.x release deletion

2015-06-29 Thread Alex Dreyer
On Monday, June 29, 2015 at 12:55:44 AM UTC-7, Alex Harvey wrote: > > I'm not exactly sure what's going on here but Puppet Forge seems to be > still advertising the versions 2.0.0 and 2.0.1 > > From librarian-puppet install --verbose > ... > [Librarian] Resolving puppetlabs-concat (< 2.0.0) < >