similar to: Is STI the only way to do inheritance?

Displaying 20 results from an estimated 8000 matches similar to: "Is STI the only way to do inheritance?"

2007 Jul 03
7
CA migration
Anyone ever migrated the puppetca to a different host? What are the steps that are involved?
2006 Jan 05
6
Inheritance Question
Hi, My application has a table of People that has information about them, and I want to have a subset of those people as Users - people that can login to the application. What is the best way to do this? Add columns to People that only Users would use? I''ve read the threads on single table inheritance, but it seemed a little bit wasteful: 10,000 people vs 50 users For those more
2007 Jul 12
29
Up to date packages for puppet
I was wondering if there would be any benefit to the general community if I made available a debian and ubuntu repository of up to date puppet packages. I have the infrastructure in place anyway for my work (pbuilder + falcon), and can quite easily run up a vhost on a VM somewhere. Debian Etch (4.0) for example has puppet 0.20.1, and will never get a newer version. Ubuntu Feisty has a newer
2006 Jan 21
4
Single quotes in parameters
I have a "search" action for my "projects" controller, which defines a set of projects as follows @projects = Project.find(:all, :include => [:user,:clients], :conditions => "name like ''%" + params[:query] + "%''",:order => ''number'') This works fine, until I type an entry into my search box that has a single
2006 Jan 23
6
Code coverage tools in Ruby?
Can anyone help me find a code coverage tool in ruby? What I want is: given a set of tests that I run, what lines of my code and what routines are covered. And also a list of uncovered routines and tests. I couldn''t find an open source one out there... -- www.kenlet.com
2006 Oct 01
22
41 server under puppet today
Hello there. Just to let you know i have just put in production mode puppet on 41 freeBSD 4.7 virtual servers (yes not real servers but "jailed ones"). I had some little problems with facter at first but i have manualy upgraded the servers that where affected by the little "facter does not read his facts" problem i had. I should have missed something in my deploiement.
2006 Jun 14
5
Rails SOAP tutorial
Hi all.. I new in Ruby/Rails.. Where could i get some good tutorial about SOAP using Rails? I''ve been googling yet still did''nt find good tutorial. Thank you in advance.. :) -- Regards, Ananda Putra
2007 Mar 19
7
Monitoring puppet
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi *! How do you monitor when the last puppet transaction was successful on a node? I''m searching for something easy like a timestamp, so I can put a nagios watch on this. Regards, David - -- - - hallo... wie gehts heute? - - *hust* gut *rotz* *keuch* - - gott sei dank kommunizieren wir über ein septisches medium ;) -- Matthias Leeb,
2006 Dec 30
9
puppetd.pid and SMF woes
So when puppetd crashes/whatever, and a pid file is left behind, SMF in Solaris will try restarting puppet, but fail. And then it sits there restarting it forever. I''m not sure if I can adjust the flap detection in SMF.. it isn''t disabling the service for "restarting too quickly" because it takes so long to start. Probably because I''m NFS-mounting ruby. The
2006 Oct 10
10
Debian packages...
Hi, I just want to know what the state of the Debian packages is? I''ve downloaded (and is currently testing with) the packages from http:// reductivelabs.com/downloads/packages/Debian/ They seem to miss some important stuff such as init scripts and puppetrun, and they hasn''t all the dependencies defined (eg. ruby). From the info part of the packages I can''t see
2006 Jan 14
11
nuby: do models have to inherit directly from ActiveRecord?
Hello, I have a few models -- book, cd, dvd -- for which I''d like to have an abstract base superclass to hold some common stuff. That abstract class, I was thinking, would inherit from ActiveRecord. Didn''t work, though, and looking around, I found this: <http://wiki.rubyonrails.com/rails/pages/HowtoMakeAbstractModel>
2007 Oct 02
10
End of file and other errors: solution
For anyone that has experienced the odd End of file or Cannot describe errors, we''ve found that switching to Mongrel has fixed this problem for us. We''re currently running 5 instance of puppetmaster under mongrel (with the apache proxy in front) and things are going great. For more information on setting up Mongrel, visit:
2007 Nov 13
5
Can I run puppetmasterd behind NAT (or Reverse Proxy)
Hi there I would like to setup my puppetmasterd behind my ADSL modem and manage the nodes on the hosting sites. I can imagine opening ports to the puppetmasterd server will work. Am I right? On the other hand an ideal configuration for me would be a Reverse Proxy setup, so I don''t have to touch the ADSL router. Has anyone setup a puppetmasterd behind a reverse proxy? Any pointers,
2008 Dec 09
7
subclassing vs mixins, which one should be used?
Hey all, I have two models in my rails project that share a lot of traits. They each have the same 4 properties, and now I need to add 2-3 methods to each one that will be the same. In the spirit of DRY I am looking for a solution to write these methods only once. Both of these models already inherit from ActiveRecord . . . and I didn''t know if it was safe to just "whip up" a
2006 Sep 14
12
Specify and respecify
Hello Puppet users, I had talked with Luke about this scenario and was wondering how others would/are handling something like this. Imagine a scenario where all servers will have a specific postfix configuration except for a server or two or three. So, you want to define a file "/etc/postfix/main.cf" and specify the source from your dist tree. But for those exceptional servers,
2006 Aug 03
30
How to protect your code? Obfuscater?
I just made a rails application that I plan to sell and dsitribute. I want to distribute it without having to worry about someone stealing the code and selling their own version. How do I do this? Is there a ruby obfuscator or anything that can keep someone from seeing the code? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2007 Mar 28
4
Disabling ActiveRecord "type" column subclassing
Hi! I have a legacy table that has a column named "type" and need to remove this automatic subclassing by ActiveRecord. The api pages are vague about this, and I tried self.inheritance_column = "xtype" which seemed to get me half-way. In the validate_on_create method, the value of self.type was my model Class name. How would you disable this feature? -- Posted via
2007 Aug 16
6
definitions v. plugins
i was looking at the simple text recipes wiki: http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes and based on that wrote something that can ensure a certain variable in a config file is set to a specific value, using a specific delimiter as requested (defaults to a space). this seems to work great at managing all sorts of unix and mac config files (sshd_config, hostconfig on macs).
2006 Dec 14
2
puppet --help fails
$ puppet --help /opt/csw/lib/ruby/gems/1.8/gems/puppet-0.20.1/bin/puppet:103: undefined method `feature'' for Puppet:Module (NoMethodError) from /opt/csw/lib/ruby/1.8/getoptlong.rb:460:in `each'' from /opt/csw/lib/ruby/1.8/getoptlong.rb:457:in `each'' from /opt/csw/lib/ruby/gems/1.8/gems/puppet-0.20.1/bin/puppet:97 from /opt/csw/bin/puppet:18
2006 Nov 28
2
Ubuntu
Anyone using Puppet on Ubuntu? Any weirdness there? I''d think not, but just want to double check. -- DK