LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-16-2014, 03:45 AM   #1
jfeyen
LQ Newbie
 
Registered: May 2011
Location: Belgium
Distribution: Ubuntu 14.04 LTS
Posts: 6

Rep: Reputation: 0
CFEngine policy not executed on ubuntu nodes


Hi,

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 "telnet" client.

That local policy worked fine. So I wanted to use the policy on my policy server which then should push it to the clients after 5 minutes. This does not work.

These are the steps I did on the policy server:

Step1: Create a file remove_packages.cf in the /var/cfengine/masterfiles directory

Code:
bundle agent remove_packages
{
  methods:
      "telnet"  usebundle => package_absent("telnet");
}
Step2: vi promises.cf in the /var/cfengine/masterfiles directory and add

Code:
body common control

{

      bundlesequence => {
           remove_packages,
Step3: vi promises.cf in the /var/cfengine/masterfiles directory and add
Code:
  inputs => {
            # JF 15/08/2014 remove telnet package
                  "remove_packages.cf",

      };
Step4: Check on mistakes
Code:
root@ubuntu:/var/cfengine/masterfiles# cf-promises ./promises.cf
Step5: Wait 5 minutes until it replicates to the clients..

Here nothing happens at the clients ... As you can see it is still present:

root@ubu14client:~# which telnet
/usr/bin/telnet
Can somebody explain me why it does not work?

Many thanks for helping me out!

Kr,

Joeri
 
Old 08-16-2014, 05:11 AM   #2
jfeyen
LQ Newbie
 
Registered: May 2011
Location: Belgium
Distribution: Ubuntu 14.04 LTS
Posts: 6

Original Poster
Rep: Reputation: 0
I found in another post it had to do with "clock skew".

I have set the correct timezone for my servers and update with the ubuntu timeservers. From then everything went fine.

http://serverfault.com/questions/387...ate-to-clients
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure my Redhat directory server password policy and account lockout policy arunplanet Linux - Newbie 4 10-06-2012 08:59 AM
In ubuntu i executed svn co command more than onetime , now how to recover alexdb2012 Linux - Newbie 0 07-04-2012 05:03 AM
[SOLVED] Configured Cron job executed every hour is instead executed every minute for 10m markings Linux - Software 4 05-13-2012 05:43 PM
Ubuntu 10.04: Scripts saved in /etc/network/if-up.d are not being executed Bfkhiya Linux - Networking 4 09-29-2011 05:37 PM
[SOLVED] Xwindow's program will not run when executed on boot or when executed remotely richman1234 Programming 2 10-08-2010 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration