Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: rke2 cis profile fix documentation #269

Open
contributorr opened this issue Oct 25, 2024 · 2 comments
Open

bug: rke2 cis profile fix documentation #269

contributorr opened this issue Oct 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@contributorr
Copy link

contributorr commented Oct 25, 2024

Summary

Hello,

when using rke2 v1.30.5+rke2r1 and rke2_cis_profile: "cis-1.23", systemd rke2-server.service cannot start because of invalid profile. The issue started with rke2 1.30+ rancher/rke2#5781

https://github.com/lablabs/ansible-role-rke2/blob/main/README.md?plain=1#L254

Issue Type

Bug Report

Ansible Version

ansible [core 2.17.5]
  config file = /Users/user/.ansible.cfg
  configured module search path = ['/Users/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Cellar/ansible/10.5.0/libexec/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.12.7 (main, Oct  1 2024, 02:05:46) [Clang 16.0.0 (clang-1600.0.26.3)] (/opt/homebrew/Cellar/ansible/10.5.0/libexec/bin/python)
  jinja version = 3.1.4
  libyaml = True

Steps to Reproduce

- name: Deploy RKE2
  hosts: all
  become: yes
  vars:
    rke2_cis_profile: "cis-1.23"
...

Expected Results

Expected playbook to finish properly.

Actual Results

ANSIBLE
fatal: [hostname]: FAILED! => {"changed": false, "msg": "Unable to restart service rke2-server.service: Job for rke2-server.service failed because the control process exited with error code.\nSee \"systemctl status rke2-server.service\" and \"journalctl -xeu rke2-server.service\" for details.\n"}

SYSTEM LOG
Oct 25 22:43:02 hostname rke2[8451]: time="2024-10-25T22:43:02+02:00" level=fatal msg="cis-1.23 profile is deprecated. Please use 'cis' instead."
Oct 25 22:43:02 hostname systemd[1]: rke2-server.service: Main process exited, code=exited, status=1/FAILURE
@contributorr contributorr added the bug Something isn't working label Oct 25, 2024
@simonfelding
Copy link

set the rke2_cis_profile: "cis" variable to "cis" like it says in the error.

@contributorr
Copy link
Author

set the rke2_cis_profile: "cis" variable to "cis" like it says in the error.

I know what to do. I’ve created this issue so documentation for this project can be fixed - https://github.com/lablabs/ansible-role-rke2/blob/main/README.md?plain=1#L254

@contributorr contributorr changed the title bug: rke2 cis profile update README.MD bug: rke2 cis profile fix documentation Nov 26, 2024
@maxisam maxisam mentioned this issue Dec 13, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants