plugin blocklist

42 views
Skip to first unread message

Jim Richard

unread,
Jul 23, 2024, 4:14:25 PMJul 23
to rundeck-discuss
referenced here:

but where are you supposed to place the file?

I need to prevent "updates" from touching the ansible plugin.

I've tried putting the file in /etc/rundeck, /var/lib/libext
neither seems to work
by "work" expecting that when I "dnf instal rundeck" it will not automatically drop in the latest ansible plugin version.

# cat /etc/rundeck/blocklist.yaml 

fileNameEntries:

  - ansible-plugin 

providerNameEntries:

  none:



Jim Richard

unread,
Jul 23, 2024, 4:15:52 PMJul 23
to rundeck-discuss
honestly what I really need to do is "lock" the ansible plugin at a certain version but I can't figure out how to accomplish this

Jim Richard

unread,
Jul 31, 2024, 9:45:16 AMJul 31
to rundeck-discuss
anyone have any ideas?

rac...@rundeck.com

unread,
Aug 5, 2024, 12:03:03 PMAug 5
to rundeck-discuss

Hi,

You must provide the block list parameter on the rundeck-config.properties file.

You can do it following this (considering Rundeck 5.4.0 with Ansible plugin v4.0.1):

1) Create a file called blocklist with the following yaml-format content:

fileNameEntries: - ansible-plugin-4.0.1 providerNameEntries: none:

2) Open your rundeck-config.properties file and add the following line:

rundeck.plugins.providerBlockListFile=/path/to/your/blocklist

You must provide the right path for the file created in the first step.

3) The save the rundeck-config.properties file.

4) Stop your Rundeck service.

5) Also, you can delete only the ansible plugin jar file (with the ansible cache stuff stored on the cache subdirectory).

6) Start the Rundeck instance. If you check the libext directory, the ansible plguin isn’t there. Stop the instance.

7) Copy an old/specific version of the Ansible plugin to the current libext directory (In my enviroment, I used the Ansible plugin 3.2.8 from Rundeck 4.17.6).

8) Start the Rundeck instance again. If you check the libext directory, your specific version is there. The default “latest” plugin can’t “regenerate” after some instance restart.

Of course, in case of some upgrade you need to add more specific entries in your fileNameEntries, so a good recommendation is to check the next plugin version and add it to the block list before the upgrade process.

Regards.

Reply all
Reply to author
Forward
0 new messages