mirror of
https://github.com/krislamo/pup-tests
synced 2025-09-07 15:29:29 +00:00
Added a basic Amanda configuration
Created a new backup virtual machine server called "backups" with a simple configuration using the Getting Started with Amanda tutorial. README also updated to reflect new workflow.
This commit is contained in:
24
Vagrantfile
vendored
24
Vagrantfile
vendored
@@ -24,16 +24,22 @@ Vagrant.configure("2") do |config|
|
||||
|
||||
end
|
||||
|
||||
# Puppet Agent
|
||||
config.vm.define "webserv" do |webserv|
|
||||
webserv.vm.box = "debian/stretch64"
|
||||
webserv.vm.hostname = "webserver"
|
||||
webserv.vm.network 'private_network', ip: '192.168.121.101'
|
||||
# Clients / Agents
|
||||
servers = ["webserver", "backups"]
|
||||
ip = 101
|
||||
|
||||
servers.each do |server|
|
||||
config.vm.define "#{server}" do |node|
|
||||
node.vm.box = "debian/stretch64"
|
||||
node.vm.hostname = "#{server}"
|
||||
node.vm.network 'private_network', ip: '192.168.121.' + ip.to_s
|
||||
ip = ip + 1
|
||||
|
||||
node.vm.provision "ansible" do |ansible|
|
||||
ansible.compatibility_mode = "2.0"
|
||||
ansible.playbook = "setup/client.yml"
|
||||
end
|
||||
|
||||
# Setup Puppet Agent via Ansible
|
||||
webserv.vm.provision "ansible" do |ansible|
|
||||
ansible.compatibility_mode = "2.0"
|
||||
ansible.playbook = "setup/client.yml"
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user