@StephenBrown2 wrote:
So I encountered some bad system disk issues after a couple hard reboots, and so decided to take the plunge into OpenSUSE land, and found that the system disk itself was the culprit (went read-only and had many parent transid / csum missing errors and such), so I figured I’d automate the post-install with an Ansible playbook, in case I needed to do it again.
TL;DR: Repo here: https://gitlab.com/StephenBrown2/rockstor-opensuse
I’m running Leap 15.2, so I haven’t tested on 15.1 or Tumbleweed (Avoided Tumbleweed because of Python3 issues which will get worked out later), but it should work well for Leap 15.1 systems as well.
Pro tip: During the user creation process, when you select “Skip User Creation” and set the root user password, you can load in an SSH key if you have another drive mounted with it, which makes running the playbook that much easier. I ended up logging in and
ssh-copy-id
ing myself, but a good note for the future.Detailed step by step instructions
- Follow the “Installer options” instructions here: Built on openSUSE dev notes and status
- Use at least a 20 GB system disk, this auto enables boot to snapshot functionality.
- Server (non transactional)
- Default partitioning
- Skip user creation (then only root password to enter and leaves all additional users as Rockstor managed)
- Optional, load ssh key from thumb drive for root user access via ansible
- Click “Software” heading, then uncheck “AppArmor”, then click Next or Apply (I forget which it is specifically)
- Disable Firewall
- Leave SSH service enabled
- Switch to NetworkManager
- After the install and initial reboot, make sure you can log in using the previously created SSH Key, or create one now and load it via
ssh-copy-id
- Create an inventory file for ansible, something like the following in
hosts.yml
:all: hosts: rockstor: ansible_ssh_host: 192.168.88.100 # Use your server's IP here ansible_user: root
- Run the ansible playbook:
ansible-playbook -i hosts.yml --private-key=~/.ssh/rockstor_ed25519.key main.yml
- Enjoy your OpenSUSE-based Rockstor!
It works well enough, but it’s all one file, so it could use some improvements in the organizational department I’m sure, but wanted to share it and see if others thought it useful as well.
Posts: 1
Participants: 1