[Puppet Users] File ownership wrong when using vcsrepo

2013-07-25 Thread dusan . dordevic
Hi, I created few puppet modules that pulls some Ruby code from various repos. All modules are identical: class { vcsrepo { '/var/hg/repos/': ensure => present, provider => hg, source => 'ssh://user@servername//var/hg/repos/.',

[Puppet Users] Re-create my.cnf when using Puppet MySQL module

2013-07-02 Thread dusan . dordevic
Hi, I am using Puppet MySQL module from forge and everything works as expected. It downloaded and installed mysql, created database, set pass, etc. I wanted to make few configuration changes, so I changed mysql/templates/my.cnf.erb but it seems Puppet did not detected that change. What be the

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Dusan Dordevic
Thanks for feedback once more. I will try it as well then... Best regards, Dušan On Fri, May 24, 2013 at 11:20 AM, Brian Lalor wrote: > On May 24, 2013, at 6:14 AM, Dusan Dordevic < > dusan.dorde...@clavistechnology.com> wrote: > > My problem is following, if I want to

Re: [Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread Dusan Dordevic
Hi, Yes, I know about vcsrepo module and that part is not a problem. It is fairly easy to set it up and pull release from repository. My problem is following, if I want to manage /etc/mysql/my.cnf and other config files, that means I would need to make repository in / which I am not really happy

[Puppet Users] Manage config files with Puppet and version control software

2013-05-24 Thread dusan . dordevic
Hi, I want to manage some configuration files (let's say my.cnf) using Puppet. I want to keep that file in some version control repository and developers will have access to it. Once they change it, Puppet should pull it, put it in place on server and restart service. Is there any general gui

Re: [Puppet Users] Problem creating user with Puppet

2013-05-22 Thread Dusan Dordevic
which the user is also a member of. Each > group is separated from the next by a comma, with no intervening > whitespace. The groups are subject to the same restrictions as the group > given with the -g option. The default is for the user to belong only to the > initial group. > > “S

Re: [Puppet Users] Problem creating user with Puppet

2013-05-22 Thread Dusan Dordevic
ppetclient2]/Group[clavis]/ensure: created err: /Stage[main]//Node[puppetclient2]/User[clavis]/ensure: change from absent to present failed: Could not create user clavis: Execution of '/usr/sbin/useradd -d /home/clavis -s /bin/bash -G clavis -m clavis' returned 9: useradd: group clavis exists -

Re: [Puppet Users] Problem creating user with Puppet

2013-05-22 Thread Dusan Dordevic
Hi, Thanks for responses. I added piece of code that will create home dir. Code now looks like this: file { "/home/clavis": ensure => "directory", owner => "clavis", group => "clavis", mode => 700, require => [ User[clavis], Group[clavis] ], }

[Puppet Users] Problem creating user with Puppet

2013-05-21 Thread dusan . dordevic
Hi, I am trying to create user on Ubuntu using this code: user { "clavis": ensure => "present", home => "/home/clavis", name => "clavis", shell => "/bin/bash", managehome => true, groups => 'cl

[Puppet Users] Problem creating user with Puppet

2013-05-20 Thread dusan . dordevic
Hi, (Since I am relatively new to Puppet, this might be some trivial problem) I am trying to create a user with Puppet, using following code: user { "clavis": ensure => "present", home => "/home/clavis", name => "clavis", sh