Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

ragleap-ansible

Ansible roles that prepare a fresh Ubuntu 22.04 server for the RagLeap Helm charts. Version 0.1.0 covers the server base only. It does not install k3s, Helm or the charts yet.

What works today

Part Status
ragleap_base: packages, deploy user with key-only login, passwordless sudo, unattended-upgrades Tested in a throwaway Ubuntu 22.04 container, run twice, second run changes nothing
sshd hardening (opt-in ragleap_base_harden_ssh) Effective settings checked with sshd -T, idempotent, bad config rolled back, all in a container. A real key login against a running sshd was not tested
firewall (opt-in ragleap_base_enable_firewall) Rules and defaults checked in a container, idempotent, sshd port always opened. ufw enable and real enforcement were not tested
Helm, k3s, installing the charts Not implemented yet

Usage

cp inventory.example.ini inventory.ini   # then list your server under [ragleap_servers]
echo 'ragleap_base_deploy_ssh_public_key: "ssh-ed25519 AAAA... you@host"' > vars.yml
ansible-playbook -i inventory.ini playbooks/bootstrap.yml -e @vars.yml

Pass the key through a vars file or JSON. A plain -e name=value splits at spaces and would cut the key short, which the role now rejects.

The playbook targets only the group ragleap_servers, never localhost by default.

Hardening SSH (opt-in)

ragleap_base_harden_ssh: true turns off password logins and, by default, root logins without a key. It is off by default because a mistake can lock you out of the server.

  • It needs ragleap_base_deploy_ssh_public_key. The role refuses to run without one.
  • Keep one session open while you run it, and log in as the deploy user from a second terminal before closing the first.
  • ragleap_base_ssh_permit_root_login defaults to prohibit-password. Set it to no only after switching ansible_user to the deploy user, or the next run cannot connect.
  • The change is a drop-in file, /etc/ssh/sshd_config.d/10-ragleap.conf. The whole configuration is checked with sshd -t before sshd is reloaded, and if the check fails the file is removed again.

Firewall (opt-in)

ragleap_base_enable_firewall: true installs ufw, denies incoming traffic by default, allows outgoing traffic, and opens the ports in ragleap_base_firewall_allow_tcp (for example [80, 443]).

  • The ports sshd really listens on are always opened first, read from sshd -T, so the firewall cannot block your own login. Without sshd the role opens 22.
  • Keep one session open while you run it, and test a new login before closing the first.
  • k3s needs extra rules for its pod and service networks, which this version does not add.
  • The role only adds rules. It never removes one, so a port opened earlier (for example an old ssh port) stays open until you remove it with ufw.

Tests

bash tests/container_test.sh   # needs Docker; changes nothing on the host

Known limitations

  • Only Ubuntu 22.04 on x86_64 has been considered.
  • A container cannot run systemd, sshd or a firewall, so those parts cannot be proven that way.

Metadata

Release files for ragleap-ansible 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for ragleap-ansible 0.1.1
File Size Uploaded Provenance Actions
ragleap_ansible-0.1.1.tar.gz 8.0 kB With provenance Details for ragleap_ansible-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ragleap-ansible 0.1.1
File Interpreter ABI Platform Actions
ragleap_ansible-0.1.1-py3-none-any.whl Python 3 none any Details for ragleap_ansible-0.1.1-py3-none-any.whl

Total release size: 15.7 kB

Release files / ragleap_ansible-0.1.1.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL ragleap_ansible-0.1.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9621073bb6dc8df8fa6e6526943608f72306c01a4c3c59fcf97a879095123ec6
BLAKE2b-256 checksum
How to use checksums
6c0e86edf36a620193e9b29070ee346d5420a88a60e3bc4b5e71e405ec11013e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / ragleap_ansible-0.1.1-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL ragleap_ansible-0.1.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88d82ca9b96ccedf06fcacde3410e003c24da3fccc94b9fdf3ab617118505c1a
BLAKE2b-256 checksum
How to use checksums
5da463fb7fb78e631d08c397d0ddbabe4c30387afb4753077fc16451d3ed6c00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for ragleap-ansible 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for ragleap_ansible-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page