Questions tagged [cfengine]

CFEngine is a configuration management tool that allows you to automate system configuration and administration.

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.

36 questions
70
votes
7 answers

Configuration Management for Windows

Are there any tools for windows like that *nix world has? I am looking for something like Chef or Puppet. I have found cfEngine but it still looks very *nix centric. Ideally it would be open source, and command line driven. The idea is to put…
Nathan Lee
  • 2,211
  • 2
  • 23
  • 26
6
votes
3 answers

Cfengine vs Chef

What are the differences in term of features between Cfengine and Chef?
alexyz78
  • 4,485
  • 6
  • 37
  • 46
2
votes
4 answers

Help me make an argument for why system build tools shouldn't automatically do SVN checkin

I'm trying to make a case against automated checkins to version control. My group at work has written some system build tools around CFEngine, and now they think these tools should automatically do checkins of things like SSH host keys. Now, as a…
Martin
  • 2,646
  • 1
  • 19
  • 30
2
votes
1 answer

Is there any difference between using "ifvarclass => 'class'" or "class::" notation when adding promises?

Is there any difference in the way the ifvarclass => 'class' construct vs class:: construct work? Can I use both interchangeably?
Te Ri
  • 177
  • 1
  • 5
2
votes
1 answer

CFEngine match hostname in bundle agent

I am new to CFEngine and i am trying to perform some actions based on hostnames. eg: all hostnames having stable should contain packages from slist 1 all hostnames having test should contain packages from slist 2 bundle agent package_lists…
kbang
  • 614
  • 8
  • 23
2
votes
1 answer

CFEngine 3.5 Oracle JDK promise

CFEngine 3 newbie here. Am trying to get Oracle JDK installed on an Ubuntu system, how should I script it in CFEngine? I can do something like this in shell by using PPA provided by webupd8team: add-apt-repository ppa:webupd8team/java apt-get…
imme
  • 239
  • 1
  • 3
  • 8
1
vote
1 answer

Is there an easy way for cfengine3 to copy different files based on the OS its running

I have two different versions of linux/unix each running cfengine3. Is it possible to have one promises.cf file I can put on both machines that will copy different files based on what os is on the clients? I have been searching around the internet…
Mlove
  • 193
  • 1
  • 1
  • 13
1
vote
1 answer

File copy using cf-engine from policy hub to hosts

I am trying to copy a file using cf-engine from policy hub to host. Empty file is created on the host. How do I get to write the contents? Should policy hub and hosts have the file in same location?
Kiran
  • 23
  • 3
1
vote
1 answer

CfEngine Error in policy, clients not taking local policy

I pushed an incorrect syntax policy from policy server into clients, resulting which all clients had an syntax error. Now I have corrected the policy in policy server, the clients are not picking up updated policy,as if cf-agent is not executing…
shivam
  • 9
  • 2
1
vote
1 answer

How to match a character in the middle of the string with known but variable size prefix

To be more specific, there is a line (among other lines in a given string): sudo:x:27:foo,bar,baz ^---we need to match this character The prefix is known, and can be expressed as ^sudo:x:\d+ The problem: positive lookbehind assertion must…
zerkms
  • 230,357
  • 57
  • 408
  • 498
1
vote
2 answers

CFEngine policy not executed on Ubuntu nodes

I just started with CFEngine. I have 1 policy servers and 2 clients (Ubuntu 14.04 Desktop , Ubuntu 12.04 Desktop). Started with creating a local policy on the Ubuntu 14.04 Desktop with CFEngine agent installed on it. This policy removes an existing…
Joeri Feyen
  • 65
  • 1
  • 8
1
vote
1 answer

Host group on CFEngine

I have to write a policy for defining various Host groups, for a particular thing it should check set of parameters according to host group. For example I have 2 different set of web cluster, On one cluster httpd.conf is kept under…
Yogesh
  • 577
  • 6
  • 16
1
vote
2 answers

Copying files among CFENGINE nodes

I am trying few features of CFENGINE 3.5 and stuck with a very basic issue. I want to copy certain files which are kept in cfengine Policy hub to various cfengine clients. These files are spread into various locations and further cfengine should…
Yogesh
  • 577
  • 6
  • 16
1
vote
1 answer

How to get `ReturnsNotZero` in CFEngine?

There's ReturnsZero function in CFEngine but there's no ReturnsNotZero. If I do need to define a class depending on non-zero return value of a command, what should I do? Examples in CFEngine2 is preferred but CFEngine3 is fine :-) Example for…
yegle
  • 5,565
  • 6
  • 35
  • 59
1
vote
3 answers

Best practice of updating update.conf of CFEngine?

update.conf is used to update the cfagent.conf file so any syntax error inside cfagent.conf can be reverted. In many documents, it's not recommended to update the update.conf file. But if update.conf do need regular update, what's the best practice…
yegle
  • 5,565
  • 6
  • 35
  • 59
1
2 3