Browse Source

Can provision from the online Rudefox Debian repo

master
B.J. Dweck 1 year ago
parent
commit
a8b1029ad2
2 changed files with 9 additions and 7 deletions
  1. +9
    -7
      example/Vagrantfile
  2. BIN
      example/torch-agent_0.0.4-1_all.deb

+ 9
- 7
example/Vagrantfile View File

@ -64,17 +64,19 @@ Vagrant.configure("2") do |config|
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
# documentation for more information about their specific syntax and use.
config.vm.provision "file", source: "torch-agent_0.0.4-1_all.deb", destination: "~/"
config.vm.provision "file", source: "agent-config", destination: "~/torch-conf"
config.vm.provision "shell", inline: <<-SHELL
sudo -- sh -c "echo '10.0.2.2 mqtt.example.com' >> /etc/hosts"
sudo -- sh -c "echo '10.0.2.2 mqtt.example.com' >> /etc/hosts"
sudo apt update
sudo apt install -y ./torch-agent_0.0.4-1_all.deb
sudo cp -f torch-conf/* /etc/torch/
wget -qO - https://rudefox.io/repo/gpg | sudo apt-key add
sudo add-apt-repository "deb https://repo.rudefox.io/repository/apt-release focal main"
sudo apt update
sudo apt install -y torch-agent
sudo cp -f torch-conf/* /etc/torch/
sudo chown -R torch /etc/torch
sudo systemctl enable torch-agent

BIN
example/torch-agent_0.0.4-1_all.deb View File


Loading…
Cancel
Save