I have been trying to configure sensuctl in chef using
bash ‘config sensuctl’ do
sensuctl configure -n --username ‘sensuadmin’ --password ‘password’ --namespace default --url ‘http://127.0.0.1:9090’
sensuctl config view
This script is running successfully, but when I login into the instance and trying to view the config it is showing
Error: No API URL is defined. You can configure an API URL by running “sensuctl configure”
Can someone help me with this.