Skip to content

linux-ha-japan/osc2022fall-demo

Repository files navigation

OSC2022 Online/Fall Seminar demo

Seminar

Install demo environment

Host requirements

  • Hardware
    • Memory: 16GB or more
  • Software
    • Windows 11 24H2
    • VirtualBox-7.1.12-169651-Win.exe
    • vagrant_2.4.7_windows_amd64.msi
    • WSL2:
      • Ubuntu-24.04 LTS
        • ansible-core 2.18.8
      • AlmaLinux-9
        • ansible-core 2.14.18
    • Vagrant Box: rockylinux/9 v6.0.0

Host installation

> wsl --install -d Ubuntu
  • For Symantec Endpoint Protection(SEP) users
    • see Appendix.

Configurations for WSL2

  • /etc/wsl.conf
[automount]
options = "metadata"

Proxy configuration (if necessary)

  • /etc/environment
http_proxy=http://PROXY:8080/
https_proxy=http://PROXY:8080/
  • $HOME/.bashrc
export http_proxy=http://PROXY:8080/
export https_proxy=http://PROXY:8080/
#export VAGRANT_CWD=/mnt/c/Users/<playbook_dir>/vagrant
export WSLENV=VAGRANT_CWD/p:http_proxy:https_proxy
  • /etc/apt/apt.conf.d/99proxy (Ubuntu only)
Acquire::http::proxy "http://PROXY:8080/";
Acquire::https::proxy "http://PROXY:8080/";
Acquire::http::Timeout "300";

restart WSL2 to take effects

$ exit
> wsl --shutdown
> wsl
$

Install ansible in WSL2 (Ubuntu)

$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible

Install ansible in WSL2 (AlmaLinux)

$ sudo dnf install git
$ sudo dnf install ansible-core

Quick Start

  • checkout demo repo.
$ git clone --recursive https://github.com/kskmori/osc2022fall-demo
$ cd osc2022fall-demo
$ cp ansible.cfg.sample ansible.cfg
  • Build demo environment
$ ansible-playbook 10-vagrant.yml
$ ansible-playbook 20-virtualbmc.yml -K
$ ansible-playbook 30-postgresql-shared.yml
$ ansible-playbook 40-pacemaker.yml

misc. tasks

  • restart the demo environment after the host was rebooted
$ ansible-playbook 80-demo-restart.yml -K
  • stop the demo environment
$ ansible-playbook 89-demo-stop.yml -K

Related Repositories

Appendix

Update history

  • 2022/11/03
    • Initial release for OSC2022 Online/Fall Seminor
  • 2025/09/04
    • Move all repositories to the Linux-HA Japan project
    • Update to Windows 11 / Rocky Linux 9.6

About

OSC2022 Online/Fall demo environment playbooks

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages