Output of vm.channel.sudo("")

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Output of vm.channel.sudo("")

Kamesh Sampath
Hi,
I kind of working on installing certain packages on to the vm using the following snippet,

 puts "Installing chef server"
  env = Vagrant::Environment.new
  raise "Must run `vagrant up`" if !env.primary_vm.created?
  raise "Must be running!" if env.primary_vm.state != :running
  env.primary_vm.channel.sudo("dpkg -i /vagrant/chef-server_11.0.6-1.ubuntu.12.04_amd64.deb")
  env.primary_vm.channel.sudo("chef-server-ctl reconfigure")

Just wanted to know if we can grab the out of the commands on to the STDOUT ?

Thank you.

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.