Simple bash script to call foreman api to retrieve some information
Clone git repository
git clone https://github.com/ptavares/foreman_utils
Create a folder in your home:
mkdir ~/.foreman
Create two files like below:
cat ~/.foreman/config
url=https://foreman.ippon-hosting.net
cat ~/.foreman/credentials
user=<user_name>
password=<password>
User must be authorized to connect to foreman API.
Run foreman.sh script to print usage
./foreman.sh