0

I would like to use fabric to deploy a bunch of libraries on to a box that it being automatically provisioned with salt-stack. Currently the function is run as

fab deploy_libs:args,kwards -Hlocalhost

How can I run this command without requiring a password, which obviously won't be a thing I can do as it's automated?

Disclaimer: There may be a significantly better way of doing this and I'm not precious about it.

David Boshton
  • 2,555
  • 5
  • 30
  • 51

1 Answers1

1

To run a command on the local machine from inside fabfile.py, you can use fabric.operations.local.

Since you're using salt, you might also consider doing the extra work to use the cmd.run state, which, once you've set up the correct dependencies, lets you take advantage of salt's dependency graph and run some operations in parallel.

David Eyk
  • 12,171
  • 11
  • 63
  • 103