Vagrant Version 1.2.7 (with vagrant-salt 0.4.0): booting up Precise-64: On Ubuntu Raring (13.04)-64

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

Vagrant Version 1.2.7 (with vagrant-salt 0.4.0): booting up Precise-64: On Ubuntu Raring (13.04)-64

monosij.forums

I am running Vagrant 1.2.7 with the Salt provisioner, vagrant-salt 0.4.0.

i am booting up a Precise-64 VM and I am running on Raring-64.

I have salt-master and salt-minion installed on this machine as well. Do I need both?

The command: 'vagrant up dbmsSQL' command runs fine and gives the following messages (no errors) but MySQL is not installed.

I am wondering if some of the errors below I am getting is based on new Version of Vagrant / Salt issues or my inexperience.

****************************************************
I get this message as the VM installs and boots up:

[dbmsSQL] Mounting shared folders...
[dbmsSQL] -- /srv
[dbmsSQL] -- /vagrant
[dbmsSQL] 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.
Bootstrapping Salt... (this may take a while)
Salt successfully configured and installed!
Calling state.highstate... (this may take a while)

****************************************************
My Vagrantfile goes as follows:

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise64.box"
  config.vm.synced_folder "srv/", "/srv/"
  config.vm.define :dbmsSQL do |dbmsSQL|
      dbmsSQL.vm.network :private_network, ip: "172.16.1.09"
      dbmsSQL.vm.hostname = "dbmsSQL"
      config.vm.provision :salt do |salt|
        salt.minion_config = "srv/minion"
        salt.run_highstate = true
      end
  end
****************************************************
My minion (stored in srv/) is: (based on a example I am following on YouTube from Raadad Elsleiman)

master: localhost
file_client: local
mysql.host: 'localhost'
mysql.port: 3306
mysql.user: 'root'
mysql.pass: ''
mysql.db: 'mysql'
mysql.unix_socket: '/var/run/mysqld/mysqld.sock'
****************************************************
File: top.sls:

base:
  '*':
    - base
    - mysql
****************************************************
File: base.sls:

{% for pkg in 'vim-nox', 'git', 'sysstat', 'screen' %}
{{ pkg }}:
  pkg.installed
{% endfor %}

****************************************************
File: mysql.sls:

mysql-server:
  pkg.installed

mysql:
  service.running:
    - name: mysql
    - require:
      - pkg: mysql-server

python-mysqldb:
  pkg.installed

coffeescript:
  pkg.installed

dbconfig:
  mysql_user.present:
    - name: vagruser
    - password: devman
    - require:
      - service: mysql
      - pkg: python-mysqldb

  mysql_database.present:
    - name: workoutbot
    - require:
      - mysql_user.present: dbconfig

  mysql_grants.present:
    - grant: all privileges
    - database: workoutbot.*
    - user: vagruser
    - require:
      - mysql_database.present : dbconfig

****************************************************

Thank you for your help in sorting this out.

Mono

--
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.