Hi Dylan -

I was not trying to do a bootstrap salt but trying to set up DB, web
servers in vagrant using Salt.

My problems got fixed after I moved to Ubuntu 14.04. Somehow 13.10 never
worked.

You can take a look at my repo if you like:
https://github.com/mduttaroy-devops/Vagrant.Salt.VM

I also found an example that is there as well that is similar to what you
are trying to do:
https://github.com/mduttaroy-devops/salt-sandbox


But specifically take a look at this example by Oz Akan:

http://humankeyboard.com/saltstack/2014/saltstack-virtualbox-vagrant.html

I think that is closest to what you are trying to do.

Mono





On Wed, May 14, 2014 at 8:43 PM, Dylan Wilson <[email protected]>wrote:

> Were you ever able to resolve this?  I am getting the exact same thing:
>
> The following SSH command responded with a non-zero exit status.
> Vagrant assumes that this means the command failed!
>
> salt-call saltutil.sync_all
>
> Stdout from the command:
>
>
>
> Stderr from the command:
>
> stdin: is not a tty
> bash: line 2: salt-call: command not found
>
> My Vagrantfile:
>
> Vagrant.configure("2") do |config|
>   config.vm.define "web" do |web|
>     ## Choose your base box
>     web.vm.box = "precise32"
>     web.vm.hostname = "web"
>     web.vm.network :private_network, ip: "10.10.10.2"
>     web.vm.provision :salt do |web|
>       web.minion_key = "salt-preseed/web.pem"
>       web.minion_pub = "salt-preseed/web.pub"
>       web.minion_config = "salt-etc/minion"
>       web.run_highstate = true
>     end
>   end
>   config.vm.define "app" do |app|
>     ## Choose your base box
>     app.vm.box = "precise32"
>     app.vm.network :private_network, ip: "10.10.10.3"
>     app.vm.hostname = "app"
>
>     app.vm.provision :salt do |app|
>       app.minion_key = "salt-preseed/app.pem"
>       app.minion_pub = "salt-preseed/app.pub"
>       app.minion_config = "salt-etc/minion"
>       app.run_highstate = true
>     end
>   end
>   config.vm.define "master" do |master|
>     ## Choose your base box
>     master.vm.box = "precise32"
>     master.vm.network :private_network, ip: "10.10.10.4"
>     master.vm.hostname = "master"
>
>
>     ## For masterless, mount your salt file root
>     master.vm.synced_folder "salt-srv", "/srv/salt/"
>     master.vm.synced_folder "salt-etc", "/etc/salt/"
>
>     ## Use all the defaults:
>     master.vm.provision :salt do |master|
>       master.install_master = true
>       master.no_minion = true
>       master.master_config = "salt-etc/master"
>       master.#salt.minion_key = "salt-etc/minion.pem"
>       master.#salt.minion_pub = "salt-etc/minion.pub"
>       master.master_key = "salt-etc/master.pem"
>       master.master_pub = "salt-etc/master.pub"
>       master.seed_master =
> {web:"salt-preseed/web.pub",app:"salt-preseed/app.pub"}
>       master.run_highstate = true
>       master.colorize = true
>       master.verbose = true
>       master.bootstrap_script = "bootstrap-salt.sh"
>       master.temp_config_dir = "/tmp"
>       master.bootstrap_options = "-D -N"
>     end
>   end
> end
>
> I am using the latest dev branch of the bootstrap-salt.sh script.
>
> On Saturday, November 30, 2013 3:18:17 PM UTC-8, [email protected]:
>>
>>
>> I am running a Vagrant file with Salt configuration and I am errored out
>> when trying to run salt provisioner. I have not made any changes to my
>> config, its a simple config anyway, but I have have made a clean upgrade to
>> 13.10.
>>
>> I am using *Vagrant 1.3.5. Running on Ubuntu 13.10 / 64* and the errors
>> happen regardless of Ubuntu VM images 12.10, 13.04 or 13.10.
>>
>> These used to run before and the only thing that is changed is *I moved
>> to Ubuntu 13.10 with a clean install* and upgraded *Oracle VirtualBox to
>> 4.2.20*.
>>
>> i had briefly installed Oracle VirtualBox 4.3 and Vagrant complained on
>> incompatibility on compatibility to 4.2.18, instead of 4.3. So I moved to
>> 4.2, but keep getting the errors.
>>
>> Of course I purged 4.3 and I *purge* the  *vagrant.d* and *.vagrant* 
>> directory
>> as well in between changing Ubuntu boxes.
>>
>> Thank you for your help.
>>
>> ...
>> My minion is simply: *file_client: local*
>>
>> ...
>> This is the SLS file it complains on, in fact on any SLS file:
>> {% if grains['os'] == 'Ubuntu' %}
>>     {% for pkg in 'default-jdk', 'python3', 'julia' %}
>>     {{ pkg }}:
>>         pkg.installed
>>     {% endfor %}
>> {% endif %}
>>
>> ...
>> The error happens when it tries to run the Salt provisioner and states at
>> end: *bash: line 2: salt-call: command not found*
>>
>> [devLANG] Configuring and enabling network interfaces...
>> [devLANG] Mounting shared folders...
>> [devLANG] -- /srv
>> [devLANG] -- /space
>> [devLANG] -- /vagrant
>> [devLANG] Running provisioner: salt...
>> Copying salt minion config to vm.
>> Checking if salt-minion is installed
>> salt-minion was not found.
>> Checking if salt-call is installed
>> salt-call was not found.
>> Using Bootstrap Options:  -c /tmp
>> Bootstrapping Salt... (this may take a while)
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>>   File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
>>
>> return opener.open(url)
>>   File "/usr/lib/python2.7/urllib.py", line 208, in open
>>
>> return getattr(self, name)(url)
>>   File "/usr/lib/python2.7/urllib.py", line 345, in open_http
>>
>> h.endheaders(data)
>>   File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
>>
>> self._send_output(message_body)
>>   File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
>>
>> self.send(msg)
>>   File "/usr/lib/python2.7/httplib.py", line 791, in send
>>
>> self.connect()
>>   File "/usr/lib/python2.7/httplib.py", line 772, in connect
>>
>> self.timeout, self.source_address)
>>   File "/usr/lib/python2.7/socket.py", line 553, in create_connection
>>
>> for res in getaddrinfo(host, port, 0, SOCK_STREAM):
>> IOError
>> :
>> [Errno socket error] [Errno 111] Connection refused
>>
>> Salt successfully configured and installed!
>> run_overstate set to false. Not running state.overstate.
>> Calling state.highstate... (this may take a while)
>> The following SSH command responded with a non-zero exit status.
>> Vagrant assumes that this means the command failed!
>>
>> salt-call saltutil.sync_all
>>
>> Stdout from the command:
>>
>>
>>
>> Stderr from the command:
>>
>> bash: line 2: salt-call: command not found
>>
>>
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Vagrant" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/vagrant-up/T4x4JqOeymc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to