[Puppet Users] ENC RDBM best practice

2012-05-30 Thread erkan yanar
Moin, I am thinking of using a RDBM as a best practise. I am missing some info/examples how to best organise the schema. Are there are some tips/howtos? Regards Erkan -- über den grenzen muß die freiheit wohl wolkenlos sein -- You received this message because you are subscribed to the G

Re: [Puppet Users] ENC RDBM best practice

2012-09-25 Thread erkan yanar
On Wed, May 30, 2012 at 10:49:29PM +0100, Ken Barber wrote: > Perhaps look at the Puppet Dashboard or Foreman schemas as a starting > point? These are both ENC's that are already working. Oh right. Thx! erkan -- über den grenzen muß die freiheit wohl wolkenlos sein -- You received this messag

[Puppet Users] deleting virtual users

2012-09-26 Thread erkan yanar
Moin, I started to virtualise user. Works fine so far. Playing a bit a problem popped up. given: User 'ahab' realized on a bunch of nodes node01 .. node08. How do I delete a realized user on a node? I was hoping to do something like realize(User['ahab']){ensure => absent } As this is not working

Re: [Puppet Users] deleting virtual users

2012-09-26 Thread erkan yanar
On Wed, Sep 26, 2012 at 12:00:10PM -0700, Jo Rhett wrote: > Realizing doesn't allow overrides. To remove the user: > > @user ahab { ensure => absent } > realize User['ahab'] > > This may mean you need to use inheritence for the class the user is defined > in, creating a child class for the nodes

Re: [Puppet Users] deleting virtual users

2012-09-26 Thread erkan yanar
On Thu, Sep 27, 2012 at 12:11:54AM +0200, Kristof Willaert wrote: > Hi, > > [snip] > > How do I delete a realized user on a node? > > I was hoping to do something like > > realize(User['ahab']){ensure => absent } > > As this is not working, I wonder how to delete a realized virtual user. > > > >

Re: [Puppet Users] deleting virtual users

2012-09-27 Thread erkan yanar
Hoi John, On Thu, Sep 27, 2012 at 06:09:28AM -0700, jcbollinger wrote: > > > On Wednesday, September 26, 2012 2:15:27 PM UTC-5, erkules wrote: > > > > On Wed, Sep 26, 2012 at 12:00:10PM -0700, Jo Rhett wrote: > > > Realizing doesn't allow overrides. To remove the user: > > > > > > @user ahab

[Puppet Users] defined types and enc

2012-10-26 Thread erkan yanar
Moin, playing with puppet. I did some defined type creating lxc-application-containers. With that I could run a lot of virtualised applications on a host. I choose defined types to call them many times for a node. In my understanding classes will not be able to be called many times on a node. ('

Re: [Puppet Users] Re: defined types and enc

2012-10-26 Thread erkan yanar
On Fri, Oct 26, 2012 at 12:24:52PM -0700, jcbollinger wrote: > [snip] > > > > If not is there a trick to call a class many times for a node. (Maybe by > > manipulating the name?) > > > > > You can create classes with different names but similar content, or you can > use one class that wrap

Re: [Puppet Users] Re: defined types and enc

2012-11-08 Thread erkan yanar
Hi, Im still confused: On Fri, Oct 26, 2012 at 12:24:52PM -0700, jcbollinger wrote: > > > On Friday, October 26, 2012 11:32:36 AM UTC-5, erkules wrote: > > > > > If not is there a trick to call a class many times for a node. (Maybe by > > manipulating the name?) > > > > > You can create class

Re: [Puppet Users] Re: defined types and enc

2012-11-09 Thread erkan yanar
Thx for your patience. On Fri, Nov 09, 2012 at 06:23:21AM -0800, jcbollinger wrote: > > > On Thursday, November 8, 2012 6:29:47 PM UTC-6, erkules wrote: > > > > Hi, Im still confused: > > > > On Fri, Oct 26, 2012 at 12:24:52PM -0700, jcbollinger wrote: > > > > > > > > > On Friday, October 26

Re: [Puppet Users] Re: defined types and enc

2012-11-14 Thread erkan yanar
On Mon, Nov 12, 2012 at 06:32:02AM -0800, jcbollinger wrote: > > On Friday, November 9, 2012 9:15:38 PM UTC-6, erkules wrote: > > > > Ups sorry for the confusion. > > Right now Ive got defines like: > > > > lxc_builder{'starter01': ensure => 'define', ipadd=>'10.0.3.101/24' } > > lxc_builder{

[Puppet Users] create_resources and file

2013-11-18 Thread erkan yanar
Doing create_resources('file',hiera_hash('input')) works great for some hiera like input: /tmp/a.txt: owner: root ensure: file ... Im not able to put any template() stuff in there input: /tmp/a.txt: owner: root ensure: file content: template("create_re/aha.erb") Instead of

Re: [Puppet Users] create_resources and file

2013-11-22 Thread erkan yanar
Ahoi, On Thu, Nov 21, 2013 at 12:01:14PM +0100, Felix Frank wrote: > Hi, > > tough call. You may have to replicate the file type in a defined type > like so: > > define my_file($owner="root",$mode="644",...,$template="") { > > if $template { File[$name] { content => template($template) } } >