불필요 파일 삭제
This commit is contained in:
15
collection/sensu/sensu_go/vagrant/windows/Vagrantfile
vendored
Normal file
15
collection/sensu/sensu_go/vagrant/windows/Vagrantfile
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.define "backend" do |backend|
|
||||
backend.vm.box = "centos/8"
|
||||
backend.vm.network "private_network", ip: "192.168.50.91"
|
||||
backend.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "back.yaml"
|
||||
end
|
||||
end
|
||||
|
||||
config.vm.define "agent" do |agent|
|
||||
agent.vm.box = "gusztavvargadr/windows-10"
|
||||
agent.vm.hostname = "host-win"
|
||||
agent.vm.network "private_network", ip: "192.168.50.90"
|
||||
end
|
||||
end
|
||||
18
collection/sensu/sensu_go/vagrant/windows/back.yaml
Normal file
18
collection/sensu/sensu_go/vagrant/windows/back.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Install backend
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Install cli
|
||||
include_role:
|
||||
name: sensu.sensu_go.install
|
||||
vars:
|
||||
version: latest
|
||||
components: [ sensu-go-cli ]
|
||||
|
||||
- name: Install backend
|
||||
include_role:
|
||||
name: sensu.sensu_go.backend
|
||||
vars:
|
||||
version: latest
|
||||
10
collection/sensu/sensu_go/vagrant/windows/inventory.yaml
Normal file
10
collection/sensu/sensu_go/vagrant/windows/inventory.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
all:
|
||||
hosts:
|
||||
windows:
|
||||
ansible_host: 192.168.50.90
|
||||
ansible_port: 5985
|
||||
ansible_user: vagrant
|
||||
ansible_password: vagrant
|
||||
ansible_connection: winrm
|
||||
ansible_winrm_transport: basic
|
||||
14
collection/sensu/sensu_go/vagrant/windows/play.yaml
Normal file
14
collection/sensu/sensu_go/vagrant/windows/play.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Install windows agent
|
||||
hosts: windows
|
||||
|
||||
tasks:
|
||||
- name: Install agent
|
||||
include_role:
|
||||
name: sensu.sensu_go.agent
|
||||
vars:
|
||||
version: latest
|
||||
agent_config:
|
||||
name: win
|
||||
backend-url:
|
||||
- ws://192.168.50.91:8081
|
||||
Reference in New Issue
Block a user