Dear Martin, It sure did. Thanks a lot =)
Hugs, Sandra =) On Thursday, 18 November 2021 at 12:59:19 UTC+1 Martin Alfke wrote: > Hi Sandra, > > Bolt has two options: tasks and plans. > Tasks consist of a Script (Shell, Powershell, Python, Ruby) and a .json > file. > Plans are written in Puppet DSL. > > Main difference: > Tasks run workflow actions like stop a service, do something and restart > the service. > Plans are used to control tasks over a number of nodes. > > In you case I would head to a task. > When using pdf, you can run pdf new task within a module. > > You can then use bolt to execute a task: > > bolt task run <task name> —nodes <comma separated node list> > > The task istself: > #modules/demo/tasks/test.sh > #!/bin/bash > touch <file> > sudo touch <file> > > Hth, > Martin > > On 17. Nov 2021, at 21:42, Sandra Schlichting <[email protected]> > wrote: > > > Dear all =) > > I would like to learn Bolt with Puppet DSL, so I was wondering if someone > could get me started with an example that: > > * logs into a Linux host > * touch new_file_as_user > * sudo > * touch file_as_root > > That would be very much appreciated =) > > Hugs, > Sandra =) > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/4b32d706-6be7-4adf-8703-e7f5174720a7n%40googlegroups.com > > <https://groups.google.com/d/msgid/puppet-users/4b32d706-6be7-4adf-8703-e7f5174720a7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ba8b7307-3d73-44d9-bd09-60c9b65c15f8n%40googlegroups.com.
