Below you will find pages that utilize the taxonomy term “Development”
Posts
Men and Mice API Client Gem for Ruby
Part of what I am doing these days is integrating Red Hat CloudForms / ManageIQ with the Men and Mice IP address management (IPAM) application. In order to reduce gem dependencies, reduce duplication, and handle some architecture issues I have been working on a client gem that uses the JSON-RPC API provided by Men and Mice.
If you are using Ruby and want to integrate with M&M please check out the gem and provide any feedback you have through Github issues.
Posts
Helper utility for ManageIQ/CloudForms Automate
As I do Automate development on RedHat CloudForms I am seeing a lot of copy/paste code which is the opposite of DRY. Our process was to put commonly used code in a starting template for an Automate method. This is nice because someone new to development gains the experience of a nice starting point, but it results in a lot of extra code. We also lose the benefit of bug fixes to the helper methods.
Posts
Getting ManageIQ instance attributes without executing methods/states
I want to use the values from the ProvisionRequestQuotaVerification instance. The problem is that using $evm.instantiate will cause the code to run. This results in an exception or error.
Digging around I found
1 $evm.instance_get(path) Which works as long as you know the full path including the domain, but then you can not rely on domain inheritance.
1 my_instance = $evm.instance_get("/ManageIQ/Infrastructure/VM/Provisioning/StateMachines/ProvisionRequestQuotaVerification/default") Here is my current workaround:
Posts
Foreman ESXi Installation Never Completes
In our environment we want to use Foreman to build our OCP hardware. It was working well except that the installation would repeatedly PXE boot to reinstall because Foreman would not know that the PXE portion was complete.
The standard notification code below was failing for some reason.
1 2 %post --interpreter=busybox --ignorefailure=true wget -O /dev/null <%= foreman_url %> After running the unattended install in a Fusion VM so I could have console access I reviewed the install log and a misleading message from wget about the URL being bad.
Posts
OpenZIS installation guide
I have spent a day or so trying to get the OpenZIS project up and running on a CentOS machine. A lack of updated instructions and an older code base made this process harder than I expected.
While I am still investigating if OpenZIS will meet my needs, I wanted to publish what I did as a reference to others who might try to install it. The doc is in my forked version of OpenZIS.
Posts
Google Book Advanced Search Query Parameters
A reference for those working on Google book searches other than full text queries. Let me know if something is incorrect or missing.
<th> Values </th> <td> All of the words. </td> <td> Exact phrase. </td> <td> At least one of the words. </td> <td> Without the words. </td> <td> 0=AllBooks, 1=FullView, 3=Limited preview and full view, 4=Public domain only </td> <td> One of "ALLTYPES", "BOOKS", "MAGAZINES" </td> <td> Empty for all languages otherwise a language code.