lightblue-platform / lightblue-puppet

Puppet module for lightblue!
GNU General Public License v3.0
2 stars 11 forks source link

Fixes #44: Puppet issue with java - Bug fix lightblue platform/lightblue puppet#44 #128

Closed luan-cestari closed 9 years ago

luan-cestari commented 9 years ago

This PR have enhancement over the constraints and the ordering .It also completed the other alternatives missed to be configured and added the installation of them in case they are missed.

There is an pending issue that I couldn't put the assign of a variable in the right order (which can really impact us)

Also, it might be desired to use sinle quote all over the paths, even that theses paths doesn't include any space.

Related to issue https://github.com/lightblue-platform/lightblue-puppet/issues/44

luan-cestari commented 9 years ago

Included stdin so I could use anchor (which is default included on the newest puppet version but I worried about backward comparability)

luan-cestari commented 9 years ago

Posted about the problem on https://groups.google.com/forum/#!forum/puppet-users (the post needs to be approved) and also on IRC (#puppet channel in FreeNode)

luan-cestari commented 9 years ago

The link to the post https://groups.google.com/forum/#!topic/puppet-users/CDz_nsjFOKw

Note: the impact of the line commented is not very high as it is necessary in case the alternatives was not set, which is not the case in the RPM packages provided. If there is no suggestion about how to solve this scenario we can leave another issue open referring the puppet's google group post or even removing the 'alternative install' from that class.

luan-cestari commented 9 years ago

I will remove the stdlib and make some changes, such as:

Note: with the complete version of the package and the architecture of the system I can get the exactly package (like when query for it using something like "yum --showduplicates list java-1.8.0-openjdk-1.8.0.25-4.b18.fc21" would a package per architecture and as I know the architecture I can decide the exactly package )

dcrissman commented 9 years ago

I feel like a lot more is being changed in this PR than the subject indicates. Should this maybe be multiple PRs?

luan-cestari commented 9 years ago

Note: we can add a custom fact trying some distributions of java (such as repoquery java-1.8* | fgrep devel | fgrep openjdk | fgrep -v debug | sed 's/i686$//' | sed 's/x86_64$//' | sed 's/noarch$//' | sed 's/.$//' | sed 's/-1:/-/' | sed 's/devel-//' | sort | uniq | tail -n 1)

jewzaam commented 9 years ago

Build failing, looks like lint issues. See for example https://travis-ci.org/lightblue-platform/lightblue-puppet/jobs/57975437#L400-L403

luan-cestari commented 9 years ago

Fixed lint problem. Changed the ensure to check the version of the package and I also removed two alternatives configurations that are only present in java 1.8.

I used vagrant to test and it seems to be working fine

dcrissman commented 9 years ago

I would like to see some spec tests for this.

luan-cestari commented 9 years ago

@dcrissman , sorry, I thought it had already rspec tests. Fixed

coveralls commented 7 years ago

Coverage Status

Changes Unknown when pulling 75599fd0e2dde3eb5088aa6fd7ee5fe90be0cf69 on luan-cestari:bug-fix-lightblue-platform/lightblue-puppet#44 into \ on lightblue-platform:master**.