Questions tagged [cfengine]

CFEngine is a configuration management tool.

CFEngine is a configuration management tool that allows you to automate system configuration and administration. It is lightweight and scalable. CFEngine 3 is a completely redone version of the tool, with a new configuration language that makes it easier to extend and use the language.

41 questions
3
votes
1 answer

Setting cfengine3 class based on command output

This question is very similar to How can I use the output of a command in cfengine3 but the answer does not apply in my case I believe. I want to update a git repository via "git pull" and based on whether that lead to changes trigger some follow up…
gnomie
  • 133
2
votes
1 answer

Can I pass the LHS of a cfengine3 processes: line to the RHS?

I'm using cfengine to start the foobar process. Apparently the LHS is discarded when I use process_select? Can I simply pass the LHS to a function, rather than having to put the command match pattern in a body argument? I wanted to only match foobar…
joeforker
  • 2,409
2
votes
2 answers

How do I read a pid file in cfengine?

How do I read a pid file in cfengine 3 and restart that process if it isn't running?
joeforker
  • 2,409
2
votes
2 answers

How do I add a low_disk_space class to cfengine3 if my disk is more than 90% full?

I would like to set a class in cfengine3 so I can perform an action if the disk is almost full.
joeforker
  • 2,409
1
vote
1 answer

cf-agent Error: "Unexpected argument with no preceding option"

I've installed CFEngine on my policy server and host, according to the documentation here: https://docs.cfengine.com/docs/3.5/getting-started-installation-installing-community.html When I run the command /var/cfengine/bin/cf-agent -B 10.0.0.253 to…
norway-firemen
  • 143
  • 1
  • 1
  • 4
1
vote
2 answers

How the particular client pull the policy from the cfengine server

I am working on the CFEngine, but i am newbie to this concept. for my requirement i am using single server and i am using 10 clients, now all the ten clients pull the policy from the server and executing the polices. But my requirement is, the…
Ashok
  • 11
1
vote
4 answers

cfengine 3 policies slow update to clients

My problem: cfengine3 policies are manually created/updated on the server (policy hub), and the clients regularly (every ~ 5 minutes) pull those from the server:/var/cfengine/masterfiles to their respective someclient:/var/cfengine/inputs (as they…
David Ramirez
  • 407
  • 2
  • 4
  • 19
0
votes
2 answers

Using CFEngine to copy a directory tree except certain files

I'm using CFEngine to deploy apache sites. So, I have a repository setup and my agents are copying files from it. The trouble is when I'm editing my files using vim, it creates swap files. And they are copied to the server, which is bad because…
moebius_eye
  • 1,113
0
votes
1 answer

CFEngine Templates and Overwriting Files

I'm having issues with CFEngine's templating system. I install a package, ganglia in this specific case, that creates a default config file. Then I want to add lines to /etc/ganglia/gmond.conf depending on if its the the collection server or if its…
Tawm
  • 303
0
votes
1 answer

Cfengine reporting files deployed

Hi I'm testing out cfengine deploys in rhel 5.6. Everything works great but I am wondering if there is a way for the community edition of cfengine to report to a file all the files it has deployed to a system. I deploy all files from a policy host…
Joe
  • 1
  • 1
0
votes
1 answer

cfengine: No access to workspace

I'm completely new to Cfengine and I've just installed it on my Debian system. But when I try to invoke any of its executables as a non-privileged user, here is what I always get: $ /usr/sbin/cf-key Fatal cfengine error: !!! No access to…
lindelof
  • 929
  • 1
  • 8
  • 12