just start puppet. As everyone else knows, starting something is always the most difficult. Well for practice I wanna do the following: I assume I am to put it in init.pp. I did my google search before posting here. Most of them out there do not apply an if/else loop on version checking. Most just ensure a specific version or just ensure => latest.
if 'openssl' version == '1.0.2b' or '1.0.2d'
upgrade to 1.1.1e
else
do nothing
Currently my code looks like this
package { 'openssl':
if 'openssl' version == '1.0.2b' or '1.0.2d' {
ensure => '1.1.1e'
}
else {
}
I have several problems:
1) I don't think my syntax for the version of openssl is written correctly. When I do simple google search I see people ensuring version of openssl something like this '1.0.1e-15.el6', sometimes it's '1.0.1e-16.el6_5.7' I am confused on determining what's after the '-'
3) How to check version of openssl? I think the syntax if 'openssl' version == "xxxx" is not correct.