logo       

Puppet client not working fine on Ubuntu 6.0.6: msg#00204

sysutils.puppet.user

Subject: Puppet client not working fine on Ubuntu 6.0.6

Hi,

       I am trying to get puppet working on Ubuntu as client.

 

I am trying to add user’s & copy some home directory.  It worked fine for user creation but not for home directory(I have posted this issue already).

 

But, the issue is I have added some functions to this ubuntu node but when running puppetd –test from client it gets the same old class. It doesn’t get any updated config from server.

 

Any change I make server for this node is note read by the client, its takes the old config.  It worked fine for a 5-6 updates by then no more gets the new one.

 

I am not sure whether puppet works fine on Ubuntu.

 

Also I wanted to do I package management on Ubuntu.  I hope the below should work.  I count test this bcos the client doesn’t take any new class added or deleted (update) from puppet server when running puppetd --test

 

 

 

class cssn_apache2 {

  package { apache2:

    ensure => latest

  }

 

    file { "/etc/apache2/apache2.conf":

    source => "puppet://puppet.df.comrepo/etc/apache2/apache2.conf",

    mode => 644,

    require => Package["apache2"]

  }

 

  group { apache2: gid => 48 }

 

  user { apache2:

   comment => "Apache",

   uid => 48,

   gid => 48,

   home => "/var/www",

   shell => "/sbin/nologin"

  }

 

  service { apache2:

    ensure => true,

    subscribe => [ File["/etc/apache2/apache2.conf"],

                   Package["apache2"] ]

  }

}

 

 

 

Thanks for help.

 

--

Deepak

_______________________________________________
Puppet-users mailing list
Puppet-users@xxxxxxxxxxx
https://mail.madstop.com/mailman/listinfo/puppet-users
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise