Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Dynamic values #5
When setting values of node['rhn'] at execution time instead of compile time, such as determining rhn hostname, generating activation keys, etc the providers would fail to reflect those changes and proceed with the compile time defaults.. This should fix some, not all, of those issues.
Found several cases where the current method of checking for the systemid in a file would incorrectly reflect the actual registration status of the server. Switched to calling out to satellite and trapping the failure/success to determine it the host is registered.
Additionally by not using shell_out! it was possible for the shell commands to fail silently and then the recipe would die later in the run, obfuscating the real issue. Instead of writing an entire exit code trapping mechanism, simply changing from shell_out -> shell_out! provents the code from failing silently.