Set variable on specific package installation in CFEngine

0 votes
I need a script that supports two different servers i.e. fedora and centos, with different httpd packages. I'm using CFEngine to create the config file in which I need to add different sections to the file depending upon the version of httpd installed on the system. Is there any way I can set a variable to true/false depending on the variable to generate the file in the correct manner.
Aug 8, 2018 in DevOps Tools by DragonLord999
• 8,380 points
21 views

1 answer to this question.

0 votes

Try using packagesmatching to get the version of httpd installed right now. You'll have to combine it with ifelse, regcmp and strcmp in order to set different variables and classes you might use in your template.

answered Aug 8, 2018 by ajs3033
• 7,240 points

Related Questions In DevOps Tools

0 votes
1 answer

dpkg a deb file in a local fodler on vagrant

Copy the file in the vagrant folder ...READ MORE

answered Jun 14, 2018 in DevOps Tools by DareDev
• 6,810 points
40 views
0 votes
1 answer

How do I set maximum queue connection for nginx port in Windows?

Since increasing queue size did not fix your problem ...READ MORE

answered Aug 22, 2018 in DevOps Tools by Damon Salvatore
• 5,490 points
51 views
0 votes
3 answers
0 votes
1 answer

devops sublime on devops tools list????

Sublime isn't as such a devops tools. ...READ MORE

answered May 31, 2018 in DevOps Tools by DareDev
• 6,810 points
25 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Gunicorn stuck on docker when run is executed with flask application

Here's something that you could try: Check your ...READ MORE

answered Jun 13, 2018 in DevOps Tools by ajs3033
• 7,240 points
444 views