...
 
Commits (2)
This diff is collapsed.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
os = "bento/ubuntu-16.04"
net_ip = "192.168.50"
config.vm.network "forwarded_port", guest: 22, host: 2222
config.vm.define :spiroapi, primary: true do |master_config|
master_config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.cpus = 1
vb.name = "spiroapi"
end
master_config.vm.box = "#{os}"
master_config.vm.host_name = 'spiroapi.local'
master_config.vm.network "private_network", ip: "#{net_ip}.10"
master_config.vm.synced_folder "saltstack/salt/", "/srv/salt"
master_config.vm.synced_folder "saltstack/pillar/", "/srv/pillar"
master_config.vm.synced_folder "..", "/opt/spiroapi"
master_config.vm.provision :salt do |salt|
salt.master_config = "saltstack/etc/master"
salt.minion_config = "saltstack/etc/minion"
salt.master_key = "saltstack/keys/master_minion.pem"
salt.master_pub = "saltstack/keys/master_minion.pub"
salt.minion_key = "saltstack/keys/master_minion.pem"
salt.minion_pub = "saltstack/keys/master_minion.pub"
salt.seed_master = {
"minion" => "saltstack/keys/master_minion.pub",
}
salt.install_type = "stable"
salt.install_master = true
salt.verbose = true
salt.colorize = true
salt.bootstrap_options = "-P -c /tmp"
salt.run_highstate = true
end
end
end
This diff is collapsed.
master: localhost
id: minion
master_tries: -1
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEApvgmHbi1uoHZfioLbK1o43KM//hZgxZNnwwMOIJz3Pa0w3F4
FpCMbfCbDBgbOzWO2CUK3KbwMYAdP2WqKM1oiFLwFXB7n93fq0UZJzAkZm7FQ05A
gFhePYuel0IXbTmxWJGGh+g/7pEjtXdaI0D2T/o8L+t6d/ax5QHA7/Ee9V+4r4Lv
mHg/vEVl7UX9gGRfhdKNncRyRqkkloju6ndSz4/a/9L+lVJXuODuIcf4BlOl79Kc
akEJSlky5Y/Ix+vgzD+aV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6THtcSnARXYgdkIRK37tYCjJKratRyVwouIrhXcdW5H2OxdaNPe
ML3pAoGAe5KJFoauVZ1NfoofUogpllzcWZNtpLYBESZhFcm8B4kmTEKwecUySj0e
j23aJSUWEPuULgbSh8f2Ne7U18cZ1EVcvAA4wgvHH7UH3lkYBQBp2M7Kz7zCo8Pa
uBNuPJjHR+UIFJ+KJ4u5A5wMnJQOtaJkLK9i+HSz62CioYjspJ4=
-----END RSA PRIVATE KEY-----
\ No newline at end of file
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApvgmHbi1uoHZfioLbK1o
43KM//hZgxZNnwwMOIJz3Pa0w3F4FpCMbfCbDBgbOzWO2CUK3KbwMYAdP2WqKM1o
iFLwFXB7n93fq0UZJzAkZm7FQ05AgFhePYuel0IXbTmxWJGGh+g/7pEjtXdaI0D2
T/o8L+t6d/ax5QHA7/Ee9V+4r4LvmHg/vEVl7UX9gGRfhdKNncRyRqkkloju6ndS
z4/a/9L+lVJXuODuIcf4BlOl79KcakEJSlky5Y/Ix+vgzD+aVI7z4DMGDLQ8Q4ox
zNyHx4RLmFJ6CPO2YS7TVANTafd1plOemWUed7MZ9k2HYmW5bf6Reg/2vDNRheG2
/QIDAQAB
-----END PUBLIC KEY-----
\ No newline at end of file
python-pip: pkg.installed
python3-pip: pkg.installed
{% if grains['pythonversion'][0] == 2 %}
{% set pipbin = "/usr/bin/pip" %}
{% else %}
{% set pipbin = "/usr/bin/pip3" %}
{% endif %}
spiroapi:
pip.installed:
- bin_env: {{pipbin}}
- editable: /opt/spiroapi/server
sshd:
service.running
/etc/ssh/sshd_config:
file.append:
- text:
- Subsystem spiroapi /usr/bin/spiroapi-ssh-subsystem
- watch_in:
- service: sshd
base:
'minion':
- spiroapi