Permalink
Browse files

Provision Vagrant box with salt

  • Loading branch information...
athos-ribeiro committed May 23, 2018
1 parent 3eede2d commit 6248b856d83186ae8fb5261458b83c2674219278
Showing with 16 additions and 3 deletions.
  1. +14 −0 Vagrantfile
  2. +1 −0 minion
  3. +1 −1 salt/obs.sls
  4. +0 −2 salt/top.sls
View
@@ -67,4 +67,18 @@ Vagrant.configure("2") do |config|
# apt-get update
# apt-get install -y apache2
# SHELL
#
#
#
config.vm.synced_folder "salt/", "/srv/salt/", type: 'rsync'
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.provision :salt do |salt|
salt.masterless = true
salt.minion_config = "minion"
salt.run_highstate = true
salt.colorize = true
salt.verbose = true
salt.log_level = 'info'
end
end
View
1 minion
@@ -0,0 +1 @@
file_client: local
View
@@ -56,7 +56,7 @@ setup_database:
- name: "RAILS_ENV=production bundle exec rake db:setup"
- cwd: /usr/share/obs/api
setup_database:
compile_assets:
cmd.run:
- name: "RAILS_ENV=production bundle exec rake assets:precompile"
- cwd: /usr/share/obs/api
View
@@ -1,6 +1,4 @@
base:
'*':
- common
'obs-server':
- obs

0 comments on commit 6248b85

Please sign in to comment.