rundeck-plugins / bolt-puppet-node-executor

Prototype Puppet Bolt node executor plugin
3 stars 4 forks source link

I have configured on Rundeck 3.3.0 or 3.3.5 - but cannt execute any command #2

Open picoroma opened 3 years ago

picoroma commented 3 years ago

The Only command that works fine is "--version" that reports the bolt version. Any other command i try to run give me the same error: Unknown argument '-n' Bolt version 2.33.2

If i run in "dry run" - for example the --help it return: [/usr/local/bin/bolt, command, run, --help --log-level any, -n, winrm://my-server-ip, -u, myuser, -p, mypswd]

And I do not understand the -u it put before the target server. I think it expected a --target . Don't you?

negast commented 1 year ago

I also get Unknown argument '-n' bolt version 3.27.2

I think COMMAND = ["/usr/local/bin/bolt", "command", "run", exec_command,"-n", host,"-u",args.username]

needs to be changed to use targets as you suggested COMMAND = ["/usr/local/bin/bolt", "command", "run", exec_command,"--targets", host,"-u",args.username]

I created a fork for this but when I run gradle build it fails. So I don't know how to build a new version.