Questions tagged [puppet-bolt]

(Puppet) Bolt is an open-source task runner, which can be used to orchestrate on-demand tasks

Bolt is an open-source orchestration tool that can be used to manage systems automatically.

Bolt is an open source orchestration tool that automates the manual work it takes to maintain your infrastructure. Use Bolt to automate tasks that you perform on an as-needed basis or as part of a greater orchestration workflow. For example, you can use Bolt to patch and update systems, troubleshoot servers, deploy applications, or stop and restart services. Bolt can be installed on your local workstation and connects directly to remote targets with SSH or WinRM, so you are not required to install any agent software.

https://puppet.com/docs/bolt/latest/bolt.html

15 questions
7
votes
1 answer

Does Puppet Bolt have the same feature set as Red Hat Ansible?

I was at a conference yesterday speaking with some folks about Puppet Lab's Bolt 1.0. I'm trying to figure out whether the tools is comparable to Ansible, but can take advantage of all the puppet modules that already exist or if it is different in…
Jeef
  • 26,861
  • 21
  • 78
  • 156
3
votes
1 answer

Check file existence on target machine using Bolt

Looking in the Bolt documentation, I didn't find how to check the existence of a file on the remote machine using Puppet plans. Using get_resources could be used but the problem is that it requires the Puppet agent to be installed on the remote…
Frédéric Praca
  • 1,620
  • 15
  • 29
1
vote
0 answers

Can you set parameter defaults via Hiera in YAML Bolt Plans?

When writing plans in the Puppet DSL I can use a Hiera lookup to assign a default value. plan namespace::myplan ( String[1] $user = lookup({'name' => 'namespace::user', 'default_value' => 'root'}), ) Is it possible to transfer this to YAML based…
Gibbs
  • 294
  • 1
  • 6
1
vote
2 answers

Bolt plan in puppet dsl

We have heavily invested in writing puppet modules. Now we have a requirement to use puppet in agent less mode in one of our environment for that we are planing using puppet bolt. My question is if we write puppet plan in puppet dsl. Can we target…
1
vote
1 answer

How to run a command or execute script in remote machine using puppet bolt?

I'm trying to execute a command in remote machine using puppet bolt but I'm getting below errors in powershell. bolt command run "Get-Process" --nodes winrm://localhost --no-ssl Error : Unknown argument '--nodes' bolt command run 'uname -a'…
S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22
0
votes
1 answer

Puppet Bolt multilevel inventory yamls

From the documentation of puppet bolt and their inventory.yaml, here, it seems you can define multiple levels of the yaml file by specifying another group in the definition of agroup. Thus creating a multilevel or nested inventory file. However I…
SK4ndal
  • 39
  • 6
0
votes
1 answer

How to generate a random number in puppet bolt

im trying to generate a random number in puppet bolt. I have tried this way: function sot::getrand( ) >> Numeric { $rannumber = rand(100) $rannumber } the reason why Im trying to generate a random number its because I wanted to use it in the…
0
votes
1 answer

Using current target inside apply block

I'd like to know if it possible to retrieve the current target inside an apply block in Bolt. For example, I'd like to bootstrap puppet on remote machine using the following plan: # @summary This plan installs Puppet and configure it to use…
Frédéric Praca
  • 1,620
  • 15
  • 29
0
votes
1 answer

How to execute bolt commands other than in powershell?

I know we can write bolt commands as below in powershell and save it as .ps1 bolt task run package action=install name=apache2 We can excute that powershell script to run bolt commands. But are there any other different methods to execute bolt…
S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22
0
votes
1 answer

How to install docker using puppet bolt task on windows machne

I want to install docker on windows machine using bolt task command. Is there any command similar to below for installing docker on windows machine. bolt task run package action=install name=docker Kindly suggest.
S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22
0
votes
2 answers

How to run puppet forge modules in linux ubuntu machine

I'm new to Puppet. I want to install any package or software on my new linux machine where Ubuntu installed. I have gone through puppet forge modules in their portal. There are plenty of modules available but I'm not getting how to run them. Looks…
0
votes
2 answers

Powershell Invoke() returning zero in C# for bolt command run

I'm able to run puppet bolt command in powershell. In powershell, I got output as below Started on winrm://remotemachine Finished on winrm://remotemachine STDOUT: RemoteMachineHostName Successful on 1 target Run on 1 tartget in 3.2 sec My C# is…
0
votes
1 answer

Puppet bolt plan in yaml format

I am trying to put a together Puppet bolt plan in YAML format. I got it working in .pp file and here is the plan plan profiles::chg123456( TargetSpec $nodes, ) { apply($nodes) { logrotate::rule {'proftpd': path =>…
Ask and Learn
  • 8,661
  • 8
  • 37
  • 43
-1
votes
2 answers

How to run puppet bolt command remotely on Azure Virtual Machine through powershell

I'm trying to run below puppet bolt command for remote Azure VM through powershell. bolt command run ipconfig --targets winrm://158.28.0.546 --no-ssl -user testuser123 -password test@84p getting below error for above command in powershell Failed…
S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22
-2
votes
1 answer

How to install Notepad++ using bolt task

To install apache2, we can use command similar to below bolt task run package action=install name=apache2 I want to install Notepad++ in windows machine using bolt task. Is there any Notepad++ package similar to below to install using bolt…
S.Chandra Sekhar
  • 453
  • 3
  • 11
  • 22