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,360 points
18 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,000 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,520 points
33 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,250 points
38 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,520 points
22 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,000 points
322 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.