Skip to content

FreeBSD 10.3 based Salt Development Environment in Vagrant

Notifications You must be signed in to change notification settings

abednarik/saltdev-freebsd10.3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Salt Development Environment in Vagrant

Personal Vagrantfile for SaltStack Development in FreeBSD 10

Instructions

  1. Run the following commands in a terminal. Git, VirtualBox and Vagrant must already be installed.

    git clone git@github.com:abednarik/saltdev-freebsd.git
    cd saltdev-freebsd
    
  2. Edit Vagrantfile to update your local salt repository path and launch ubuntu instance. Since Vagrant doesn't support synced_folder in FreeBSD make sure NFS Daemon is running.

    vagrant up
    
  3. Finally login as vagrant user and install salt using pip in editable module

    vagrant ssh
    sudo su -
    cd salt  
    pip install -e .
    
  4. For developing and debugging I use tmux to run salt-master and salt-minion in foreground in error mode [ I mostly add log.error when I want to debug something ]

    sudo salt-master -l error
    sudo salt-minion -l error
    
  5. Check if everything went fine

    salt '*' test.ping
    

There is a placeholder state in /srv/salt called default.sls. Just put the content you want to test and run

salt 'salt' state.apply default

This is heavily based on salt-vagrant-demo following official Salt Development Docs

Releases

No releases published

Packages

No packages published