LPS:CFEngine3/hands-on

Z HelpDesk

Instalace

echo "deb http://cfengine.com/pub/apt stable main" >> /etc/apt/sources.list
apt-get update
apt-get install cfengine-community

Co jsme získali?

/var/cfengine/

  • inputs
  • masterfiles

Prvni kontakt

cf-agent --bootstrap cf.civ.zcu.cz

Testovaci bundle

cd /tmp/
vim test1.cf
body common control {
  bundlesequence => {"main"};
}

bundle agent main {
  reports:
    "Hello World";
}
cf-agent -Kf ./test1.cf