openshift / puppet-openshift_origin

Puppet module to create OpenShift Brokers and Nodes. Can be used to create a full OpenShift Origin deployment.
http://forge.puppetlabs.com/openshift/openshift_origin
Other
45 stars 128 forks source link

Further clean up of notice level reports #374

Closed andrewklau closed 9 years ago

andrewklau commented 9 years ago

Currently getting reports: /Stage[main]/Openshift_origin::Node/Exec[prevent_node_frontend_changes]/returns

I think this should prevent notices unless something actually changes.

ekohl commented 9 years ago

I'm unsure of the benefit of the diff in the first place. Another path you can take is to add an unless command that tests if the files are the same.

sdodson commented 9 years ago

@andrewklau Thanks, when I reviewed your last cleanup this was something I wanted to fix but you got to it first.

@ekohl The goal of this whole block of code is to allow puppet to ensure we deploy the preferred node frontend which may include altering the default node.conf but that we don't change the frontend after that point as changing the frontend requires manual steps.

sdodson commented 9 years ago

:+1:

ekohl commented 9 years ago

So diff returns an exit code if they differ and thus puppet execution fails?

sdodson commented 9 years ago

Yep, which blocks updating node.conf.