Trying to run salt-master
on Vagrant
running Ubuntu
,
no edits to /etc/salt/master
I get:
vagrant@markvagrant:/etc/salt$ sudo salt-master -l all
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Configuration file path: /etc/salt/master
[TRACE ] Trying pysss.getgrouplist for 'root'
[TRACE ] Trying generic group list for 'root'
[TRACE ] Group list for user 'root': []
[INFO ] Setting up the Salt Master
[WARNING ] Unable to bind socket, error: [Errno 98] Address already in use
The ports are not available to bind
My Vagrantfile:
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.2.2"
config.vm.network "public_network"
config.vm.hostname = "markvagrant"
config.vm.synced_folder "./data", "/vagrant_data"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
end
The error you got there:
is indicating that the salt-master daemon is already running. That's why when you're executing
sudo salt-master -l all
it's failing.If you want to run the salt-master in the foreground in your terminal like in your example, then stop the salt-master daemon first like this:
Then you can start it up like you wanted to: