rundeck / rundeck-cli

CLI tool for Rundeck
https://rundeck.github.io/rundeck-cli/
Apache License 2.0
132 stars 51 forks source link

rd acl extension not installed with .deb package #307

Closed christi3k closed 4 years ago

christi3k commented 4 years ago

We're working on upgrading our Rundeck instance, including the cli. According to the documentation, rd-acl is now an extension for the rd cli that should be bundled with it. However, when we install the rd cli on Ubuntu 18.04.04, rd acl commands are not available.

We install the .deb package from bintray repo:

root@rundeck-localdev2:~# cat /etc/apt/sources.list.d/dl_bintray_com_rundeck_rundeck_deb.list
deb https://dl.bintray.com/rundeck/rundeck-deb /
root@rundeck-localdev2:~# apt-get install rundeck-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rundeck-cli
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 0 B/4098 kB of archives.
After this operation, 4529 kB of additional disk space will be used.
Selecting previously unselected package rundeck-cli.
(Reading database ... 83325 files and directories currently installed.)
Preparing to unpack .../rundeck-cli_1.3.0-1_all.deb ...
Unpacking rundeck-cli (1.3.0-1) ...
Setting up rundeck-cli (1.3.0-1) ...

Confirm the rd cli is installed and working:

rundeck@rundeck-localdev2:~$ RD_DEBUG=1 rd --version
# Including extension: org.rundeck.client.tool.commands.repository.Plugins
1.3.0

But the acl extension is not installed:

rundeck@rundeck-localdev2:~$ RD_DEBUG=1 rd acl
# Including extension: org.rundeck.client.tool.commands.repository.Plugins
No such command: acl. Available commands: [adhoc, executions, jobs, keys, metrics, nodes, plugins, projects, retry, run, scheduler, system, tokens, users, version]

In case it's useful, here are the reported contents of the .deb package:

root@rundeck-localdev2:~# dpkg -c rundeck-cli_1.3.0-1_all.deb
drwxr-xr-x root/0            0 2020-06-02 23:30 ./var/
drwxr-xr-x root/0            0 2020-06-02 23:30 ./var/lib/
drwxr-xr-x root/0            0 2020-06-02 23:30 ./var/lib/rundeck-cli/
drwxr-xr-x root/0            0 2020-06-02 23:30 ./var/lib/rundeck-cli/rd-cli-tool-shadow-1.3.0/
drwxr-xr-x root/0            0 2020-06-02 23:30 ./var/lib/rundeck-cli/rd-cli-tool-shadow-1.3.0/bin/
-rwxr-xr-x root/0         5464 2020-06-02 23:30 ./var/lib/rundeck-cli/rd-cli-tool-shadow-1.3.0/bin/rd
drwxr-xr-x root/0            0 2020-06-02 23:30 ./var/lib/rundeck-cli/rd-cli-tool-shadow-1.3.0/lib/
-rw-rw-r-- root/0      4523818 2020-06-02 23:30 ./var/lib/rundeck-cli/rd-cli-tool-shadow-1.3.0/lib/rundeck-cli-1.3.0-all.jar

Incidentally, while troubleshooting this I noticed that apt-get reports an error upon removing the package:


Removing rundeck-cli (1.3.0-1) ...
/var/lib/dpkg/info/rundeck-cli.postrm: 4: [: remove: unexpected operator
gschueler commented 4 years ago

thanks for the report! will look into it

gschueler commented 4 years ago

@christi3k please try the 1.3.1 version

christi3k commented 4 years ago

@gschueler Looks good now. Thanks for quick response!

rundeck@rundeck-localdev2:~$ RD_DEBUG=1 rd --version
# Including extension: org.rundeck.client.tool.commands.repository.Plugins
# Including extension: org.rundeck.client.ext.acl.Acl
1.3.1

rundeck@rundeck-localdev2:~$ rd acl
A command was expected: rd acl [command]

acl: Generate, Test, and Validate ACLPolicy files

Available commands:

   create   - Create ACL Policies
   list     - List ACL Policies
   test     - Test ACL Policies
   validate - Validate ACL Policies

Use "rd acl [command] help" to get help on any command.