- Syllabus: <https://github.com/HoGentTIN/elnx-syllabus (klik door op Releases)>
- Software:
- VirtualBox
- Vagrant
- Teksteditor
- (Ansible)
- Hoofdopdracht:
- SME:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name: WindowsBootstrap.ps1 | |
# Description: Boxstarter bootstrap script for basic Windows Server configuration | |
# Author: Bert Van Vreckem <[email protected]> | |
# | |
# See also: | |
# - https://blog.jessfraz.com/post/windows-for-linux-nerds/ | |
#--- Remote management --- | |
# Enable Ansible Remoting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ConfigureWindowsServer.ps1 -- Basic configuration Windows Server 2012R2 | |
# Enable Ansible Remoting | |
$scriptPath = ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1')) | |
Invoke-Command -ScriptBlock ([scriptblock]::Create($scriptPath)) -ArgumentList "-Verbose -SkipNetworkProfileCheck -CertValidityDays 2492" | |
# Allow Ping | |
Get-NetFirewallRule -DisplayName "*Echo Request*" | Set-NetFirewallRule -enabled true | |
# Enable Remote Desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default behaviour | |
* text=auto | |
# Shell scripts should have Unix endings | |
*.sh text eol=lf | |
*.bats text eol=lf | |
*.py text eol=lf | |
# Windows Batch or PowerShell scripts should have CRLF endings | |
*.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
username='Johnny User' | |
email='[email protected]' | |
# Set user's name and email | |
git config --global user.name ${username} | |
git config --global user.email ${email} | |
# Set default push behaviour (Git will issue a warning on each push when not set) |
Test for new implementation of validation error output in:
- https://github.com/bertvv/ansible/tree/wip/validation-output
- https://github.com/bertvv/ansible-modules-core/tree/wip/validation-output
Run with
ansible-playbook -i inventory test.yml --skip-tags=fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestLocalHost { | |
public static void main(String[] args) throws Exception { | |
System.out.println(java.net.InetAddress.getLocalHost()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...] | |
"AWT-EventQueue-0" #20 prio=6 os_prio=0 tid=0x00007f3728102800 nid=0x19f3 waiting for monitor entry [0x00007f377fbf9000] | |
java.lang.Thread.State: BLOCKED (on object monitor) | |
at java.net.InetAddress.getLocalHost(InetAddress.java:1465) | |
- waiting to lock <0x00000000c080a788> (a java.lang.Object) | |
at sun.font.FcFontConfiguration.getFcInfoFile(FcFontConfiguration.java:352) | |
at sun.font.FcFontConfiguration.readFcInfo(FcFontConfiguration.java:425) | |
at sun.font.FcFontConfiguration.init(FcFontConfiguration.java:94) | |
[...] | |
"main" #15 prio=5 os_prio=0 tid=0x00007f37a4612000 nid=0x19ee waiting for monitor entry [0x00007f3784dce000] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate PDFs from the Markdown source files | |
# | |
# In order to use this makefile, you need some tools: | |
# - GNU make | |
# - Pandoc | |
# - LuaLaTeX | |
# - DejaVu Sans fonts | |
# Directory containing source (Markdown) files | |
source := src |
NewerOlder