From 89bae1aa6ad2fb1ae9322edf30cf96583fa09113 Mon Sep 17 00:00:00 2001 From: Petr Ruzicka Date: Sat, 26 Mar 2022 21:15:47 +0100 Subject: [PATCH] Add RDP section to documentation --- .ansible-lint | 7 +++++++ .github/workflows/ansible-lint.yml | 6 ++---- .github/workflows/linter.yml | 1 + README.md | 6 +++--- templates/windows-10-enterprise-eval.md | 14 ++++++++++++++ templates/windows-server-2012-eval.md | 14 ++++++++++++++ templates/windows-server-2016-eval.md | 14 ++++++++++++++ templates/windows-server-2019-eval.md | 14 ++++++++++++++ templates/windows-server-2022-eval.md | 14 ++++++++++++++ 9 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 000000000..529d2e021 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,7 @@ +skip_list: + # Role name virtio-win does not match ``^[a-z][a-z0-9_]+$`` pattern + - 'role-name' + # Lines should be no longer than 160 chars + - 'yaml' + +verbosity: 1 diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 7c2b41aa2..d03e469d9 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -15,9 +15,7 @@ jobs: - uses: actions/checkout@v3 - name: Lint Ansible Playbook - uses: ansible/ansible-lint-action@master + uses: ansible/ansible-lint-action@v6.0.2 with: targets: ansible/*.yml - args: -x 204,403 - override-deps: | - ansible-lint==5.3.2 + args: -x role-name diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6ab99f958..7ab2c3211 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -47,5 +47,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ERROR_ON_MISSING_EXEC_BIT: true + VALIDATE_ANSIBLE: false VALIDATE_JSCPD: false FILTER_REGEX_INCLUDE: .*(\.sh|\.json|\.github|http|tools|docs).* diff --git a/README.md b/README.md index 597eb93b4..3e32a63ba 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ with Packer. ```bash sudo apt update - sudo apt install -y ansible curl git jq libc6-dev libvirt-daemon-system libvirt-dev python3-winrm qemu-kvm sshpass xorriso unzip virtualbox + sudo apt install -y ansible curl dnsmasq freerdp2-x11 git jq libc6-dev libvirt-daemon-system libvirt-dev python3-winrm qemu-kvm qemu-utils sshpass xorriso unzip virtualbox PACKER_LATEST_VERSION="$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')" curl "https://releases.hashicorp.com/packer/${PACKER_LATEST_VERSION}/packer_${PACKER_LATEST_VERSION}_linux_amd64.zip" --output /tmp/packer_linux_amd64.zip @@ -167,7 +167,7 @@ with Packer. Pin-Priority: 50 EOF sudo apt update - sudo apt install -y ansible curl git jq libc6-dev libvirt-daemon-system libvirt-dev python3-winrm qemu-kvm sshpass xorriso unzip packer/bullseye vagrant vagrant-libvirt + sudo apt install -y ansible curl dnsmasq freerdp2-x11 git jq libc6-dev libvirt-daemon-system libvirt-dev python3-winrm qemu-kvm qemu-utils sshpass xorriso unzip packer/bullseye vagrant vagrant-libvirt sudo gpasswd -a ${USER} kvm ; sudo gpasswd -a ${USER} libvirt sudo gpasswd -a ${USER} vboxusers ## If you have VirtualBox installed. @@ -177,7 +177,7 @@ with Packer. ```bash sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm - sudo dnf install -y ansible curl git jq libvirt libvirt-devel qemu-kvm ruby-devel xorriso unzip VirtualBox + sudo dnf install -y ansible curl freerdp git jq libvirt libvirt-devel qemu-kvm ruby-devel xorriso unzip VirtualBox PACKER_LATEST_VERSION="$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')" curl "https://releases.hashicorp.com/packer/${PACKER_LATEST_VERSION}/packer_${PACKER_LATEST_VERSION}_linux_amd64.zip" --output /tmp/packer_linux_amd64.zip diff --git a/templates/windows-10-enterprise-eval.md b/templates/windows-10-enterprise-eval.md index 0c5e11d4c..1def3286e 100644 --- a/templates/windows-10-enterprise-eval.md +++ b/templates/windows-10-enterprise-eval.md @@ -64,6 +64,20 @@ VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up * Username: Administrator, vagrant * Password: vagrant +## RDP access + +Install [freerdp](https://www.freerdp.com/) to connect to Windows using [RDP](https://en.wikipedia.org/wiki/Remote_Desktop_Protocol) +protocol: + +```bash +# Fedora +dnf install freerdp +# Ubuntu +apt-get install freerdp2-x11 + +vagrant rdp -- /cert-ignore +``` + ## VM Specifications Drivers / Devices added for the VMs for specific providers. diff --git a/templates/windows-server-2012-eval.md b/templates/windows-server-2012-eval.md index b5be91cc8..f7af5ea59 100644 --- a/templates/windows-server-2012-eval.md +++ b/templates/windows-server-2012-eval.md @@ -65,6 +65,20 @@ VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up * Username: Administrator, vagrant * Password: vagrant +## RDP access + +Install [freerdp](https://www.freerdp.com/) to connect to Windows using [RDP](https://en.wikipedia.org/wiki/Remote_Desktop_Protocol) +protocol: + +```bash +# Fedora +dnf install freerdp +# Ubuntu +apt-get install freerdp2-x11 + +vagrant rdp -- /cert-ignore +``` + ## VM Specifications Drivers / Devices added for the VMs for specific providers. diff --git a/templates/windows-server-2016-eval.md b/templates/windows-server-2016-eval.md index 0f05226a6..0b111340d 100644 --- a/templates/windows-server-2016-eval.md +++ b/templates/windows-server-2016-eval.md @@ -64,6 +64,20 @@ VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up * Username: Administrator, vagrant * Password: vagrant +## RDP access + +Install [freerdp](https://www.freerdp.com/) to connect to Windows using [RDP](https://en.wikipedia.org/wiki/Remote_Desktop_Protocol) +protocol: + +```bash +# Fedora +dnf install freerdp +# Ubuntu +apt-get install freerdp2-x11 + +vagrant rdp -- /cert-ignore +``` + ## VM Specifications Drivers / Devices added for the VMs for specific providers. diff --git a/templates/windows-server-2019-eval.md b/templates/windows-server-2019-eval.md index 0f05226a6..0b111340d 100644 --- a/templates/windows-server-2019-eval.md +++ b/templates/windows-server-2019-eval.md @@ -64,6 +64,20 @@ VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up * Username: Administrator, vagrant * Password: vagrant +## RDP access + +Install [freerdp](https://www.freerdp.com/) to connect to Windows using [RDP](https://en.wikipedia.org/wiki/Remote_Desktop_Protocol) +protocol: + +```bash +# Fedora +dnf install freerdp +# Ubuntu +apt-get install freerdp2-x11 + +vagrant rdp -- /cert-ignore +``` + ## VM Specifications Drivers / Devices added for the VMs for specific providers. diff --git a/templates/windows-server-2022-eval.md b/templates/windows-server-2022-eval.md index 0f05226a6..903566f56 100644 --- a/templates/windows-server-2022-eval.md +++ b/templates/windows-server-2022-eval.md @@ -59,6 +59,20 @@ VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up ``` +## RDP access + +Install [freerdp](https://www.freerdp.com/) to connect to Windows using [RDP](https://en.wikipedia.org/wiki/Remote_Desktop_Protocol) +protocol: + +```bash +# Fedora +dnf install freerdp +# Ubuntu +apt-get install freerdp2-x11 + +vagrant rdp -- /cert-ignore +``` + ## Login Credentials * Username: Administrator, vagrant