If you were able to complete all the steps and still have some time left, here are a couple of things you can do to get more familiar with CloudForms.
The user interface we used so far is often referenced as the “Operations UI” or the “Classic UI”. A new, more modern, Self Service User Interface is also available and receives improvements with every release.
The Self Service user Interface can be accessed by appending the string “self_service” to the Appliance URL.
You can login with the same credentials as before.
You have learned how to create a Service Dialog, Ansible Playbook Service Catalog Item and how to use them from a Button to extend the out of the box features provided by CloudForms. We can use this knowledge to implement a button to allow users to execute remote commands on a Virtual Machine.
This is a very popular use case because it provides a number of advantages:
Since this is an advanced lab, there are no detailed step by step instructions. Instead here are couple of pointers to get you on track:
We want end users to able to run certain remote commands by themselves. First we try this with a text box where users can enter their command - but as an additional improvement you should try to replace the text box with a drop down list, where users can only select from a list of pre approved commands.
The GitLab repository used in this lab also provides a Playbook which you can use. It’s called operatorcommand.yaml and requires the parameter “command”. This parameter is used to specify the command which will be executed on the Virtual Machine.
Based on your work with “Install Package” Service Dialog, you should know what is needed to create a new Service Dialog for this use case.
:warning: WARNING Make sure the text box name is called “param_command” - because “command” is the name of the extra variable in the Ansible Playbook. If you chose a different name, the Playbook will use the default command, which is “echo hello world”.
To be able to call an Ansible Playbook from a button, you need to create a Service Catalog Item first. This should be very easy for you, since you’ve done this before in this lab. Just make sure you run the correct playbook and use the Service Dialog you created in the previous step.
The name of the Ansible Playbook is “operatorcommand.yaml”
Create a new Button and add it to the existing Button Group “Tools” - or create a new one. Use the Service Catalog Item created in the previous step when you define the button.
The advanced settings of a Button allow you to use Role Based Access Control. Check the “Role Access” option at the bottom of the settings page.
Don’t hesitate to ask any of the lab organizers for help, if you’re stuck!
If you’re already done and still have some time left, here are some ideas for advanced labs: