openshift/puppet-openshift_origin — pull request #118 by mikeSGman (2013-11-16 07:00:15+00:00)
Title: Correction to PR#117

PR #117 was a false positive push. Apologies.

This PR addresses the /etc/openshift/htpasswd file creation process.

If an AIO install is under-weigh, and broker_auth_plugin => 'htpasswd' is set in configure_origin.pp, the htpasswd file creation will fail. Although, If the user waits long enough for broker.pp to kick in -- it will create the directory (for /etc/openshift/server_pub.pem creation.) This requires the user to stop the first install, and re-run the puppet apply.

Naturally, the file isn't created on the first pass (even if the -bc flags are invoked) because the /etc/openshift directory doesn't exist at this point in time.

This PR addresses this issue by creating /etc/openshift ahead of time for htpasswd.pp to execute cleanly.