Skip to content

Commit

Permalink
Merge pull request #2 from mycloudrevolution/add_download
Browse files Browse the repository at this point in the history
Add download
  • Loading branch information
vMarkusK authored Oct 24, 2019
2 parents 2200ec2 + 679bfa3 commit 69fce68
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 6 deletions.
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

An Ansible Role to install and update [Veeam](https://www.veeam.com) components (Veeam Backup & Replication / Veeam ONE) on Windows.

## Release Notes

### Version 0.1

- one_setup - Version 0.1

- one_update - Version 0.1

- vbr_setup - Version 0.1

- vbr_update - Version 0.1

### Version 0.2
- one_setup - Version 0.2
- Strict Windows Firewall configuration (instead of disabling)

### Version 0.3
- vbr_download - Version 0.1
- Add new Role Task to Download and Mount VBR ISO File

## Requirements

none
Expand All @@ -15,6 +35,7 @@ Available variables are listed below, along with default values (see `defaults/m
# defaults file for veeam_setup

## Choose Setup
vbr_download: false
vbr_setup: false
vbr_update: false
one_setup: false
Expand All @@ -23,8 +44,12 @@ one_setup: false
one_source: "E:\\"
one_username: "svc_one"
one_userpassword: "ChangeM3!"
one_update_file: "VeeamONE_9.5.4.4587_Update#4a.exe" # Fix Name
one_update_file: "VeeamONE_9.5.4.4587_Update#4a.exe"
one_update_id: "Veeam ONE Update 4a"
vbr_url: "https://download2.veeam.com/VeeamBackup&Replication_9.5.4.2615.Update4.iso"
vbr_checksum: "8a594cec74059f9929ea765ac5e70a49da6fc93803b567cbb9d74fbb1a49a6cc"
vbr_destination: "C:\\install\\"
vbr_destination_file: "vbr.iso"
vbr_source: "D:\\"
vbr_update_file: "veeam_backup_9.5.4.2866.update4b_setup.exe"
vbr_update_id: "Veeam VBR Update 4b"
Expand All @@ -39,13 +64,30 @@ none
## Example Playbook
### Veeam Backup & Replication Setup
### Veeam Backup & Replication Setup with local Download
```yaml
- name: Veeam Backup & Replication Community Edition Setup
hosts: veeam
gather_facts: no
vars:
vbr_download: true
vbr_setup: true
vbr_update: true
one_setup: false
one_update: false
roles:
- veeam_setup
```
### Veeam Backup & Replication Setup without local Download
```yaml
- name: Veeam Backup & Replication Community Edition Setup
hosts: veeam
gather_facts: no
vars:
vbr_download: false
vbr_setup: true
vbr_update: true
one_setup: false
Expand Down
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# defaults file for veeam_setup

## Choose Setup
vbr_download: false
vbr_setup: false
vbr_update: false
one_setup: false
Expand All @@ -12,6 +13,10 @@ one_username: "svc_one"
one_userpassword: "ChangeM3!"
one_update_file: "VeeamONE_9.5.4.4587_Update#4a.exe"
one_update_id: "Veeam ONE Update 4a"
vbr_url: "https://download2.veeam.com/VeeamBackup&Replication_9.5.4.2615.Update4.iso"
vbr_checksum: "8a594cec74059f9929ea765ac5e70a49da6fc93803b567cbb9d74fbb1a49a6cc"
vbr_destination: "C:\\install\\"
vbr_destination_file: "vbr.iso"
vbr_source: "D:\\"
vbr_update_file: "veeam_backup_9.5.4.2866.update4b_setup.exe"
vbr_update_id: "Veeam VBR Update 4b"
Expand Down
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
# tasks file for veeam_setup
- include_tasks: vbr_download.yml
when: vbr_download | bool

- include_tasks: vbr_setup.yml
when: vbr_setup| bool

Expand Down
43 changes: 39 additions & 4 deletions tasks/one_setup.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,48 @@
---
# one_setup tasks file for veeam_setup
- name: Pre - Disable firewall for Domain, Public and Private profiles
- name: Pre - Enable firewall
win_firewall:
state: disabled
state: enabled
profiles:
- Domain
- Private
- Public
- name: Pre - Configure firewall rule "Reporter Console"
win_firewall_rule:
name: VeeamONE_ReporterConsole
localport: 1239
action: allow
direction: in
protocol: tcp
state: present
enabled: yes
- name: Pre - Configure firewall rule "Business View"
win_firewall_rule:
name: VeeamONE_BusinessView
localport: 1340
action: allow
direction: in
protocol: tcp
state: present
enabled: yes
- name: Pre - Configure firewall rule "Agent"
win_firewall_rule:
name: VeeamONE_Agent
localport: 2805
action: allow
direction: in
protocol: tcp
state: present
enabled: yes
- name: Pre - Configure firewall rule "Server SMB"
win_firewall_rule:
name: VeeamONE_ServerSMB
localport: 445
action: allow
direction: in
protocol: tcp
state: present
enabled: yes
- name: Pre - Create Local Veeam ONE Service User
win_user:
name: "{{ one_username }}"
Expand Down Expand Up @@ -50,7 +86,7 @@
state: present
include_sub_features: yes
include_management_tools: yes
- name: SQL - Install SQL 2016 Express
- name: Pre - Install SQL 2016 Express
win_package:
path: "{{ one_source }}Redistr\\x64\\SqlExpress\\2016SP1\\SQLEXPR_x64_ENU.exe"
product_id: SQL 2016 Express
Expand Down Expand Up @@ -78,7 +114,6 @@
win_package:
path: "{{ one_source }}Reporter\\VeeamONE.Reporter.Server.x64.msi"
state: present
# Veean Documentation wrong, VM_VC_SELECTED_TYPE=2 is not default!
arguments: "ACCEPT_THIRDPARTY_LICENSES=1 ACCEPTEULA=1 VM_RP_SERVICEACCOUNT={{ one_username }} VM_RP_SERVICEPASSWORD={{ one_userpassword }} VM_RP_SQL_SERVER=localhost\\VEEAMSQL2016 VM_RP_SQL_AUTHENTICATION=1 VM_RP_SQL_USER=sa VM_RP_SQL_PASSWORD={{ sql_sapassword }} VM_BACKUP_ADD_LATER=1 VM_VC_SELECTED_TYPE=2"
- name: Install ONE Reporter Web UI
win_package:
Expand Down
21 changes: 21 additions & 0 deletions tasks/vbr_download.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# vbr_download tasks file for veeam_setup
- name: Create download directory
win_file:
path: "{{ vbr_destination }}"
state: directory
- name: Download VBR ISO
win_get_url:
url: "{{ vbr_url }}"
dest: "{{ vbr_destination }}{{ vbr_destination_file }}"
checksum: "{{ vbr_checksum }}"
checksum_algorithm: sha256
force: false
- name: Mount VBR ISO
win_disk_image:
image_path: "{{ vbr_destination }}{{ vbr_destination_file }}"
state: present
register: disk_image_out
- name: Set VBR Soure Fact
set_fact:
vbr_source: "{{ disk_image_out.mount_paths[0] }}"

0 comments on commit 69fce68

Please sign in to comment.