[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 reponame { vcsrepo { '/var/hg/repos/reponame': ensure = present, provider = hg, source =

[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

[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

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

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 bla...@bravo5.org wrote: On May 24, 2013, at 6:14 AM, Dusan Dordevic dusan.dorde...@clavistechnology.com wrote: My problem is following, if I want to manage /etc

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] ], } user {

Re: [Puppet Users] Problem creating user with Puppet

2013-05-22 Thread Dusan Dordevic
/clavis -s /bin/bash -G clavis -m clavis' returned 9: useradd: group clavis exists - if you want to add this user to that group, use -g. Best regards, Dušan On Wed, May 22, 2013 at 12:19 PM, Dick Davies rasput...@hellooperator.netwrote: On 22 May 2013 09:43, Dusan Dordevic dusan.dorde

Re: [Puppet Users] Problem creating user with Puppet

2013-05-22 Thread Dusan Dordevic
of it has tried to contact us.” Bill Waterson (Calvin Hobbes) - Original Message - From: Dusan Dordevic dusan.dorde...@clavistechnology.com To: puppet-users@googlegroups.com Sent: Wednesday, May 22, 2013 7:27:45 AM Subject: Re: [Puppet Users] Problem creating user with Puppet Hi

[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 = 'clavis',

[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, shell =