Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Rob McBroom
On Jun 3, 2010, at 3:05 PM, Christopher Johnston wrote:

> You know what the problem was, my ordering.  I had app_tcp first and not port 
> 1002 so thats likely why it was not getting picked up.  Worked, but hit 
> another snag.  Now try adding another app name, same port but for udp, it 
> will just get overwritten.

I addressed both of those things in my initial reply.

On the order of `set` statements:

> Setting the “name” doesn't seem to work until after the thing exists, which 
> is why it appears second on the list.

On adding both TCP and UDP entries:

> So, if you can find something that makes an item unique, you can use that to 
> specify a path.

If two entries are using the same port number, that obviously won't work as a 
unique identifier. You could maybe use a unique comment on each one, but there 
seems to be that bug where no space appears between protocol and comment. 
Perhaps there's a way to specify a path using more than one component. A 
combination of port and protocol should be unique, for example.

-- 
Rob McBroom


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
It's centos 5.4 x86  which default ruby install is 1.8.5 (RPM).  If
you can provide a patch, that'd be great.  Thanks for the assist.

Cheers,

Henry

On Jun 3, 10:06 pm, Ohad Levy  wrote:
> 1.8.6 is not required really, but it seems that your core ruby is missing a
> method.
> which distribution is it? did you install from source and never maintained
> it? (or maybe the package is out of date?)
>
> I can provide a monkey patch for this, but It seems like an issue with your
> ruby installation.
>
> Ohad
>
> On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
>
> > 1.8.5... is 1.8.6 a requirement?
>
> > Thanks,
>
> > Henry
>
> > On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > > interesting, this seems related to your version of ruby (is it 1.8.6?)
>
> > > what do you get when you run the following in a shell?
>
> > > ruby -v -e "puts 'abc'[1].ord"
>
> > > Ohad
>
> > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > > > Ok, we got a little further now : )  This is the new error:
>
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
>
> > > > Here's the trace:
>
> > > > (in /code/foreman)
> > > > ** Invoke db:migrate (first_time)
> > > > ** Invoke environment (first_time)
> > > > ** Execute environment
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in
> > > > `new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:245:in
> > > > `checkout_new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:326:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:123:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:115:in
> > > > `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > > 3113:in `quoted_table_name'
> > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > > 82:in `acts_as_audited'
> > > > /code/foreman/app/models/host.rb:55
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `gem_original_require'
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:158:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:265:in `require_or_load'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:425:in `old_load_missing_constant'
> > > > /code/foreman/config/initializers/
> > > > fix_already_loading_missi

Re: [Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread Ohad Levy
Henry,

can you try with an sqlite db? just to be sure I'm not looking in the wrong
direction?
additionally, maybe you can join us on irc at #theforeman or #puppet, will
probably be much faster :)

Ohad

On Fri, Jun 4, 2010 at 10:30 AM, CraftyTech  wrote:

> It's centos 5.4 x86  which default ruby install is 1.8.5 (RPM).  If
> you can provide a patch, that'd be great.  Thanks for the assist.
>
> Cheers,
>
> Henry
>
> On Jun 3, 10:06 pm, Ohad Levy  wrote:
> > 1.8.6 is not required really, but it seems that your core ruby is missing
> a
> > method.
> > which distribution is it? did you install from source and never
> maintained
> > it? (or maybe the package is out of date?)
> >
> > I can provide a monkey patch for this, but It seems like an issue with
> your
> > ruby installation.
> >
> > Ohad
> >
> > On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:
> > > ruby 1.8.5 (2006-08-25) [i386-linux]
> > > -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
> >
> > > 1.8.5... is 1.8.6 a requirement?
> >
> > > Thanks,
> >
> > > Henry
> >
> > > On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > > > interesting, this seems related to your version of ruby (is it
> 1.8.6?)
> >
> > > > what do you get when you run the following in a shell?
> >
> > > > ruby -v -e "puts 'abc'[1].ord"
> >
> > > > Ohad
> >
> > > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech 
> wrote:
> > > > > Ok, we got a little further now : )  This is the new error:
> >
> > > > > rake aborted!
> > > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > > SQL_AUTO_IS_NULL=0
> >
> > > > > Here's the trace:
> >
> > > > > (in /code/foreman)
> > > > > ** Invoke db:migrate (first_time)
> > > > > ** Invoke environment (first_time)
> > > > > ** Execute environment
> > > > > rake aborted!
> > > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > > SQL_AUTO_IS_NULL=0
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:223:in
> > > > > `new_connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:245:in
> > > > > `checkout_new_connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_pool.rb:326:in
> > > > > `retrieve_connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_specification.rb:123:in
> > > > > `retrieve_connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > > connection_adapters/abstract/connection_specification.rb:115:in
> > > > > `connection'
> > > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > > > 3113:in `quoted_table_name'
> > > > >
> /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > > > 82:in `acts_as_audited'
> > > > > /code/foreman/app/models/host.rb:55
> > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > > `gem_original_require'
> > > > > /usr/lib/ruby/site_ruby/1.8/rub

[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
It's centos 5.4 x86  which default ruby install is 1.8.5 (RPM).  If
you can provide a patch, that'd be great.  Thanks for the assist.

Cheers,

Henry

On Jun 3, 10:06 pm, Ohad Levy  wrote:
> 1.8.6 is not required really, but it seems that your core ruby is missing a
> method.
> which distribution is it? did you install from source and never maintained
> it? (or maybe the package is out of date?)
>
> I can provide a monkey patch for this, but It seems like an issue with your
> ruby installation.
>
> Ohad
>
> On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
>
> > 1.8.5... is 1.8.6 a requirement?
>
> > Thanks,
>
> > Henry
>
> > On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > > interesting, this seems related to your version of ruby (is it 1.8.6?)
>
> > > what do you get when you run the following in a shell?
>
> > > ruby -v -e "puts 'abc'[1].ord"
>
> > > Ohad
>
> > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > > > Ok, we got a little further now : )  This is the new error:
>
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
>
> > > > Here's the trace:
>
> > > > (in /code/foreman)
> > > > ** Invoke db:migrate (first_time)
> > > > ** Invoke environment (first_time)
> > > > ** Execute environment
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in
> > > > `new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:245:in
> > > > `checkout_new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:326:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:123:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:115:in
> > > > `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > > 3113:in `quoted_table_name'
> > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > > 82:in `acts_as_audited'
> > > > /code/foreman/app/models/host.rb:55
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `gem_original_require'
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:158:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:265:in `require_or_load'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:425:in `old_load_missing_constant'
> > > > /code/foreman/config/initializers/
> > > > fix_already_loading_missi

[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
It's centos 5.4 x86  which default ruby install is 1.8.5 (RPM).  If
you can provide a patch, that'd be great.  Thanks for the assist.

Cheers,

Henry

On Jun 3, 10:06 pm, Ohad Levy  wrote:
> 1.8.6 is not required really, but it seems that your core ruby is missing a
> method.
> which distribution is it? did you install from source and never maintained
> it? (or maybe the package is out of date?)
>
> I can provide a monkey patch for this, but It seems like an issue with your
> ruby installation.
>
> Ohad
>
> On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
>
> > 1.8.5... is 1.8.6 a requirement?
>
> > Thanks,
>
> > Henry
>
> > On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > > interesting, this seems related to your version of ruby (is it 1.8.6?)
>
> > > what do you get when you run the following in a shell?
>
> > > ruby -v -e "puts 'abc'[1].ord"
>
> > > Ohad
>
> > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > > > Ok, we got a little further now : )  This is the new error:
>
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
>
> > > > Here's the trace:
>
> > > > (in /code/foreman)
> > > > ** Invoke db:migrate (first_time)
> > > > ** Invoke environment (first_time)
> > > > ** Execute environment
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in
> > > > `new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:245:in
> > > > `checkout_new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:326:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:123:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:115:in
> > > > `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > > 3113:in `quoted_table_name'
> > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > > 82:in `acts_as_audited'
> > > > /code/foreman/app/models/host.rb:55
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `gem_original_require'
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:158:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:265:in `require_or_load'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:425:in `old_load_missing_constant'
> > > > /code/foreman/config/initializers/
> > > > fix_already_loading_missi

[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
It's centos 5.4 x86  which default ruby install is 1.8.5 (RPM).  If
you can provide a patch, that'd be great.  Thanks for the assist.

Cheers,

Henry

On Jun 3, 10:06 pm, Ohad Levy  wrote:
> 1.8.6 is not required really, but it seems that your core ruby is missing a
> method.
> which distribution is it? did you install from source and never maintained
> it? (or maybe the package is out of date?)
>
> I can provide a monkey patch for this, but It seems like an issue with your
> ruby installation.
>
> Ohad
>
> On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
>
> > 1.8.5... is 1.8.6 a requirement?
>
> > Thanks,
>
> > Henry
>
> > On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > > interesting, this seems related to your version of ruby (is it 1.8.6?)
>
> > > what do you get when you run the following in a shell?
>
> > > ruby -v -e "puts 'abc'[1].ord"
>
> > > Ohad
>
> > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > > > Ok, we got a little further now : )  This is the new error:
>
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
>
> > > > Here's the trace:
>
> > > > (in /code/foreman)
> > > > ** Invoke db:migrate (first_time)
> > > > ** Invoke environment (first_time)
> > > > ** Execute environment
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in
> > > > `new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:245:in
> > > > `checkout_new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:326:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:123:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:115:in
> > > > `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > > 3113:in `quoted_table_name'
> > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > > 82:in `acts_as_audited'
> > > > /code/foreman/app/models/host.rb:55
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `gem_original_require'
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:158:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:265:in `require_or_load'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:425:in `old_load_missing_constant'
> > > > /code/foreman/config/initializers/
> > > > fix_already_loading_missi

[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
It's centos 5.4 x86  which default ruby install is 1.8.5 (RPM).  If
you can provide a patch, that'd be great.  Thanks for the assist.

Cheers,

Henry

On Jun 3, 10:06 pm, Ohad Levy  wrote:
> 1.8.6 is not required really, but it seems that your core ruby is missing a
> method.
> which distribution is it? did you install from source and never maintained
> it? (or maybe the package is out of date?)
>
> I can provide a monkey patch for this, but It seems like an issue with your
> ruby installation.
>
> Ohad
>
> On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:
> > ruby 1.8.5 (2006-08-25) [i386-linux]
> > -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
>
> > 1.8.5... is 1.8.6 a requirement?
>
> > Thanks,
>
> > Henry
>
> > On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > > interesting, this seems related to your version of ruby (is it 1.8.6?)
>
> > > what do you get when you run the following in a shell?
>
> > > ruby -v -e "puts 'abc'[1].ord"
>
> > > Ohad
>
> > > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > > > Ok, we got a little further now : )  This is the new error:
>
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
>
> > > > Here's the trace:
>
> > > > (in /code/foreman)
> > > > ** Invoke db:migrate (first_time)
> > > > ** Invoke environment (first_time)
> > > > ** Execute environment
> > > > rake aborted!
> > > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > > SQL_AUTO_IS_NULL=0
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:223:in
> > > > `new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:245:in
> > > > `checkout_new_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_pool.rb:326:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:123:in
> > > > `retrieve_connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > > connection_adapters/abstract/connection_specification.rb:115:in
> > > > `connection'
> > > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > > 3113:in `quoted_table_name'
> > > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > > 82:in `acts_as_audited'
> > > > /code/foreman/app/models/host.rb:55
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > > `gem_original_require'
> > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:158:in `require'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:265:in `require_or_load'
> > > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > > dependencies.rb:425:in `old_load_missing_constant'
> > > > /code/foreman/config/initializers/
> > > > fix_already_loading_missi

Re: [Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread Ohad Levy
1.8.6 is not required really, but it seems that your core ruby is missing a
method.
which distribution is it? did you install from source and never maintained
it? (or maybe the package is out of date?)

I can provide a monkey patch for this, but It seems like an issue with your
ruby installation.

Ohad

On Fri, Jun 4, 2010 at 1:10 AM, CraftyTech  wrote:

> ruby 1.8.5 (2006-08-25) [i386-linux]
> -e:1: undefined method `ord' for 98:Fixnum (NoMethodError)
>
> 1.8.5... is 1.8.6 a requirement?
>
> Thanks,
>
> Henry
>
> On Jun 3, 12:08 pm, Ohad Levy  wrote:
> > interesting, this seems related to your version of ruby (is it 1.8.6?)
> >
> > what do you get when you run the following in a shell?
> >
> > ruby -v -e "puts 'abc'[1].ord"
> >
> > Ohad
> >
> > On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > > Ok, we got a little further now : )  This is the new error:
> >
> > > rake aborted!
> > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > SQL_AUTO_IS_NULL=0
> >
> > > Here's the trace:
> >
> > > (in /code/foreman)
> > > ** Invoke db:migrate (first_time)
> > > ** Invoke environment (first_time)
> > > ** Execute environment
> > > rake aborted!
> > > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > > SQL_AUTO_IS_NULL=0
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:223:in
> > > `new_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:245:in
> > > `checkout_new_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:326:in
> > > `retrieve_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_specification.rb:123:in
> > > `retrieve_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_specification.rb:115:in
> > > `connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > 3113:in `quoted_table_name'
> > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > 82:in `acts_as_audited'
> > > /code/foreman/app/models/host.rb:55
> > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > `gem_original_require'
> > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:158:in `require'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:265:in `require_or_load'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:425:in `old_load_missing_constant'
> > > /code/foreman/config/initializers/
> > > fix_already_loading_missing_dependencies.rb:9:in
> > > `load_missing_constant'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:80:in `const_missing'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:92:in `const_missing'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > inflec

Re: [Puppet Users] Arbitrary barriers to bug reporting

2010-06-03 Thread eric.sorenson

Amusing (albeit off-topic) captcha story, reposted from my blog

I was talking with somebody about captcha arms race at work today and heard the 
most brilliant scam. Apparently spammers who are attempting to spam to 
captcha-enabled sites screen-grab the captcha image and then turn around 
and serve the same image as a captchato fake/spammy porn sites they run.
So the real people trying to get in to the porn site do the captcha computation 
for the spammers, who then automatically feed the results back in to the 
original site. They are tapping into the inexhaustible queue of pending 
porn-hounds to get through legitimate site defenses.
For some reason, the beauty of this completely made my week.



On Jun 03, 2010, at 02:32 PM, Keith Edmunds  wrote:

On Fri, 04 Jun 2010 08:33:34 +1200, craig.misk...@opus.co.nz said:

from a slightly difficult to read text image 


CAPTCHAs have got to the stage where they are easier for computers to read
than they are for humans to read. My wife's phpBB had a CAPTCHA and was
forever getting spammed; now we have a textual question and the spamming
has stopped.

I agree: putting barriers in the way of people reporting bugs means fewer
bug reports.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Arbitrary barriers to bug reporting

2010-06-03 Thread Keith Edmunds
On Fri, 04 Jun 2010 08:33:34 +1200, craig.misk...@opus.co.nz said:

> from a slightly difficult to read text image 

CAPTCHAs have got to the stage where they are easier for computers to read
than they are for humans to read. My wife's phpBB had a CAPTCHA and was
forever getting spammed; now we have a textual question and the spamming
has stopped.

I agree: putting barriers in the way of people reporting bugs means fewer
bug reports.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Arbitrary barriers to bug reporting

2010-06-03 Thread Craig Miskell

Alan Barrett wrote:

On Wed, 02 Jun 2010, James Turnbull wrote:
 Projects using an anonymous
web form could use a CAPTCHA to slow spammers down.


But that's a barrier to reporting  I have to type a one or two extra words into a *separate* form field, usually 
from a slightly difficult to read text image (images as text on the web?  That's horrible design).


/end rant^Wsarcasm^Wirony^W oh hell, I don't know what this is.

:)

--
Craig Miskell
Senior Systems Administrator
Opus International Consultants
Phone: +64 4 471 7209
Lots of couples say, "We want a baby."
I never heard one say, "We want a teen-ager."
-- Ruth Moore, private communication

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Christopher Johnston
HA, yes I added commas.  You know what the problem was, my ordering.  I had
app_tcp first and not port 1002 so thats likely why it was not getting
picked up.  Worked, but hit another snag.  Now try adding another app name,
same port but for udp, it will just get overwritten.

-Chris


On Thu, Jun 3, 2010 at 2:40 PM, Rob McBroom wrote:

> You had to make me actually try it in Puppet, huh? ;)
>
> My original example was missing commas after the various set statements.
> Not sure if you fixed that. It also specified the full path, even though the
> context should have taken care of most of it. That didn't seem to hurt, but
> to be safe, I took it out. I'm also using 0.25.4 and this worked:
>
>augeas { 'app_tcp':
>  context => '/files/etc/services',
>  changes => [
> "set service-name[port = '1002']/port 1002",
>"set service-name[port = '1002'] app_tcp",
>"set service-name[port = '1002']/protocol tcp",
># "set service-name[port = '1002']/#comment foo",
>  ],
>}
>
> I disabled the comment because the line ended up looking like this:
>
>app_tcp 1002/tcp# foo
>
> But that's probably a bug in the Agueas lens, not Puppet.
>
> --
> Rob McBroom
> 
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Rob McBroom
You had to make me actually try it in Puppet, huh? ;)

My original example was missing commas after the various set statements. Not 
sure if you fixed that. It also specified the full path, even though the 
context should have taken care of most of it. That didn't seem to hurt, but to 
be safe, I took it out. I'm also using 0.25.4 and this worked:

augeas { 'app_tcp':
  context => '/files/etc/services',
  changes => [
"set service-name[port = '1002']/port 1002",
"set service-name[port = '1002'] app_tcp",
"set service-name[port = '1002']/protocol tcp",
# "set service-name[port = '1002']/#comment foo",
  ],
}

I disabled the comment because the line ended up looking like this:

app_tcp 1002/tcp# foo

But that's probably a bug in the Agueas lens, not Puppet.

-- 
Rob McBroom



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Christopher Johnston
I am on 25.4...

On Thu, Jun 3, 2010 at 1:59 PM, Rob McBroom wrote:

> On Jun 3, 2010, at 1:40 PM, Christopher Johnston wrote:
>
> > Now if I single quote the port number in the [] I get another error..
> which likely means using the '' is not correct.
> >
> > err: //Augeas[cti-p01-dgw_tcp]/returns: change from need_to_run to 0
> failed: Save failed with return code false
>
> Ah, then I suspect you're using 0.24.x.
>
> http://projects.reductivelabs.com/issues/2141
>
> I wouldn't even bother with Augeas until you go to 0.25.x where this bug
> was fixed.
>
> --
> Rob McBroom
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] External CA management

2010-06-03 Thread piir
2010/6/3 Nigel Kersten 

>
>
> On Thu, Jun 3, 2010 at 6:58 AM, piir  wrote:
>
>>
>> 2010/5/6 piir D.K 
>>
>> Hello,
>>>
>>> I'm tryning to have puppet working whitout handling any part of a pki.
>>> On one side I've got a puppet installation working, on the other side
>>> a PKI.(dogtag)
>>>
>>> I try to tell puppetmasterd to use my CA.crt and an already
>>> functionning cert, but at launch time it still generates his own
>>> certificate request. So I tried to sign his request, but he still
>>> ignore the certificate.
>>>
>>>
>> Hello,
>>
>> I'am answering my own post,  I did manage to launch both the client and
>> the server with my own certificate. The problem was that puppet didn't seems
>> to care about value in puppet.conf
>>
>> In $ssldir I replace those file with mine, certs/ca.pem, certs/.pem
>> private_keys/.pem, public_keys/.pem.
>>
>>
>> But I'm getting this error on the client : (puppetd --no-daemonize -v -d )
>> err: Could not retrieve catalog from remote server: certificate verify
>> failed
>>
>> On the server in masterhttp.log I can read this:
>>
>> [2010-06-03 15:40:18] DEBUG accept: XXX.XXX.0.3:49420
>> [2010-06-03 15:40:18] ERROR OpenSSL::SSL::SSLError: tlsv1 alert unknown ca
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
>> `accept'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
>> `listen'
>> /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
>> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
>> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
>> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
>> /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
>> /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
>> /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
>> /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
>> /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:43:in
>> `listen'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
>> `initialize'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `new'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
>> `listen'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
>> `synchronize'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
>> `listen'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:131:in `listen'
>> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:146:in `start'
>> /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:128:in `start'
>> /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:122:in
>> `main'
>> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
>> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
>> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
>> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in
>> `exit_on_fail'
>> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
>> /usr/sbin/puppetmasterd:66
>> [2010-06-03 15:40:18] DEBUG close: XXX.XXX.0.3:49420
>> [2010-06-03 15:49:06] DEBUG close TCPSocket(0.0.0.0, 8140)
>>
>>
>> I have tested all the certficates with openssl (s_server|s_client) -CAfile
>> certs/ca.pem -cert certs/.pem -key private_keys/.pem , trying to
>> connect from the client to the server. It works fine, and i got no errors.
>>
>>
>> Any help/tracks would be greatly appreciated.
>
>
> From looking at my similar setup, I have these two file locations with the
> same contents:
>
> $ssldir/certs/ca.pem
> $ssldir/ca/ca_crt.pem
>
> Are you perhaps missing the latter one?
>
>
>>
>>
>> piir
>>
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>
>
> --
> nigel
>
>
Nigel,

The file wasn't missing, I've seen with ohad on IRC, and the error was that
I had a invalid CRL. Now on version 0.25.5 we can disable the CRL check by
adding to the conf:

certificate_revocation = false

2 questions remains
 1. Is puppet handles correctly the v3 extensions. Does he forbid a client
connecting with a cert that does not have the TLS Web Client authentication,
 2. Will/Does Puppet handles CRL through OCSP, if not, how heavy can the
work be, where to start ?

thanks for all

Piir

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-user

Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Rob McBroom
On Jun 3, 2010, at 1:40 PM, Christopher Johnston wrote:

> Now if I single quote the port number in the [] I get another error.. which 
> likely means using the '' is not correct.  
> 
> err: //Augeas[cti-p01-dgw_tcp]/returns: change from need_to_run to 0 failed: 
> Save failed with return code false

Ah, then I suspect you're using 0.24.x.

http://projects.reductivelabs.com/issues/2141

I wouldn't even bother with Augeas until you go to 0.25.x where this bug was 
fixed.

-- 
Rob McBroom


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Christopher Johnston
I tried mixing/matching quotes, if I double quote just the set statement and
quote nothing else it goes through but nothing gets changed.

for eg: "set service-name[port = 7302]/port 7302",

"debug: Augeas[cti-p01-dgw_udp](provider=augeas): Skipping becuase no files
were changed"

Now if I single quote the port number in the [] I get another error.. which
likely means using the '' is not correct.

err: //Augeas[cti-p01-dgw_tcp]/returns: change from need_to_run to 0 failed:
Save failed with return code false

Getting closer...

On Thu, Jun 3, 2010 at 12:57 PM, Rob McBroom wrote:

> On Jun 3, 2010, at 12:04 PM, Christopher Johnston wrote:
>
> > # puppet -ddd foo1.pp
> > Could not parse for environment production: Syntax error at 'set
> /files/etc/services/service-name[port = '1002'] app_tcp'; expected ']' at
> /data/foo1.pp:5
>
> It looks like you're trying to use single-quotes (for the port number)
> inside of single-quotes (for the entire set statement). You'll have to use
> double-quotes in one place or the other, or escaping the inner single-quotes
> might also work.
>
> I tested it using `augtool`, so it works. It's just a matter of translating
> it and quoting it correctly for Puppet.
>
> --
> Rob McBroom
> 
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
ruby 1.8.5 (2006-08-25) [i386-linux]
-e:1: undefined method `ord' for 98:Fixnum (NoMethodError)

1.8.5... is 1.8.6 a requirement?

Thanks,

Henry

On Jun 3, 12:08 pm, Ohad Levy  wrote:
> interesting, this seems related to your version of ruby (is it 1.8.6?)
>
> what do you get when you run the following in a shell?
>
> ruby -v -e "puts 'abc'[1].ord"
>
> Ohad
>
> On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:
> > Ok, we got a little further now : )  This is the new error:
>
> > rake aborted!
> > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > SQL_AUTO_IS_NULL=0
>
> > Here's the trace:
>
> > (in /code/foreman)
> > ** Invoke db:migrate (first_time)
> > ** Invoke environment (first_time)
> > ** Execute environment
> > rake aborted!
> > NoMethodError: undefined method `ord' for 0:Fixnum: SET
> > SQL_AUTO_IS_NULL=0
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract_adapter.rb:219:in `log'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:323:in `execute'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:594:in `connect'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:75:in `new'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:223:in
> > `new_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:245:in
> > `checkout_new_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:326:in
> > `retrieve_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_specification.rb:123:in
> > `retrieve_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_specification.rb:115:in
> > `connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > 3113:in `quoted_table_name'
> > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > 82:in `acts_as_audited'
> > /code/foreman/app/models/host.rb:55
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require'
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:158:in `require'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:265:in `require_or_load'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:425:in `old_load_missing_constant'
> > /code/foreman/config/initializers/
> > fix_already_loading_missing_dependencies.rb:9:in
> > `load_missing_constant'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:80:in `const_missing'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:92:in `const_missing'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > inflector.rb:361:in `constantize'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > inflector.rb:360:in `each'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > inflector.rb:360:in `constantize'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/
> > string/inflections.rb:162:in `constantize'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> > 157:in `observed_class'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> > 183:in `observed_clas

Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Rob McBroom
On Jun 3, 2010, at 12:04 PM, Christopher Johnston wrote:

> # puppet -ddd foo1.pp 
> Could not parse for environment production: Syntax error at 'set 
> /files/etc/services/service-name[port = '1002'] app_tcp'; expected ']' at 
> /data/foo1.pp:5

It looks like you're trying to use single-quotes (for the port number) inside 
of single-quotes (for the entire set statement). You'll have to use 
double-quotes in one place or the other, or escaping the inner single-quotes 
might also work.

I tested it using `augtool`, so it works. It's just a matter of translating it 
and quoting it correctly for Puppet.

-- 
Rob McBroom



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Christopher Johnston
Duh sorry I added commas for the array... stil the same error.  I dont think
that will work since the entries in the services file are usually like this:

augtool> print /files/etc/services/service-name[1]
/files/etc/services/service-name[1] = "tcpmux"
/files/etc/services/service-name[1]/port = "1"
/files/etc/services/service-name[1]/protocol = "tcp"
/files/etc/services/service-name[1]/#comment = "TCP port service
multiplexer"

So for the heck of it I replaced the [port = 1002] with something like
01 and that just ended up replacing the first entry in the file (by
removing it).  So still not the behavior I am looking for.  I should be able
to append to the bottom of the file but have onlyif() sort through the
entire file and verify a match.

Any other ideas?



On Thu, Jun 3, 2010 at 12:04 PM, Christopher Johnston wrote:

> # puppet -ddd foo1.pp
> Could not parse for environment production: Syntax error at 'set
> /files/etc/services/service-name[port = '1002'] app_tcp'; expected ']' at
> /data/foo1.pp:5
>
>
> I don't believe that works...
>
> On Wed, Jun 2, 2010 at 10:59 PM, Rob McBroom wrote:
>
>> On Jun 2, 2010, at 4:03 PM, Christopher Johnston wrote:
>>
>> > Has anyone attempted to use the augeas type to add a service?  I got the
>> service to add no problem, but having some difficulties to get the match to
>> work to prevent duplicate entries from adding.  Since the service-name[*]
>> has endless number of entries I used a glob so it checks all the entries but
>> that does not seem to work.  Any ideas on how to proceed?
>> >
>> >   augeas { app_tcp':
>> > context => '/files/etc/services',
>> > changes => ['insert service-name after service-name[last()]',
>> > 'set service-name[last()] app_tcp',
>> > 'set service-name[last()]/port 1002',
>> > 'set service-name[last()]/protocol tcp'],
>> > onlyif  => "match service-name[.*] != '[port = 1002][protocol =
>> tcp]'"
>> >   }
>>
>> I'm no expert, but I've messed with Augeas a bit and you can make it
>> harder than it needs to be without even trying. I haven't done anything in
>> `/etc/services`, but I had a similar issue with `sudoers`. A trick to keep
>> in mind is that if you set something on a path that doesn't exist, Augeas
>> will create it. So, if you can find something that makes an item unique, you
>> can use that to specify a path. In this case, the port number will probably
>> work.
>>
>>augeas { 'app_tcp':
>>  context => '/files/etc/services',
>>  changes => [
>> "set /files/etc/services/service-name[port = '1002']/port 1002"
>>"set /files/etc/services/service-name[port = '1002'] app_tcp"
>>"set /files/etc/services/service-name[port = '1002']/protocol tcp"
>>"set /files/etc/services/service-name[port = '1002']/#comment foo"
>>  ],
>>}
>>
>> This should create the line in `/etc/services` if it doesn't exist, but if
>> it does exist and nothing has changed, Puppet won't do anything to the line
>> (which is generally what you want). Setting the “name” doesn't seem to work
>> until after the thing exists, which is why it appears second on the list.
>>
>> --
>> Rob McBroom
>> 
>>
>> It's not that I think guns, drugs, prostitution, swimming, eating and
>> reading should be legal. It's just that no one on Earth has the authority to
>> make them illegal.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread Ohad Levy
interesting, this seems related to your version of ruby (is it 1.8.6?)

what do you get when you run the following in a shell?

ruby -v -e "puts 'abc'[1].ord"

Ohad

On Thu, Jun 3, 2010 at 11:58 PM, CraftyTech  wrote:

> Ok, we got a little further now : )  This is the new error:
>
> rake aborted!
> NoMethodError: undefined method `ord' for 0:Fixnum: SET
> SQL_AUTO_IS_NULL=0
>
> Here's the trace:
>
> (in /code/foreman)
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> NoMethodError: undefined method `ord' for 0:Fixnum: SET
> SQL_AUTO_IS_NULL=0
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract_adapter.rb:219:in `log'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:323:in `execute'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:603:in `configure_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:594:in `connect'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:203:in `initialize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:75:in `new'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:223:in `send'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:223:in
> `new_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:245:in
> `checkout_new_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:184:in `loop'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:98:in `connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:326:in
> `retrieve_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:123:in
> `retrieve_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:115:in
> `connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> 3113:in `quoted_table_name'
> /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> 82:in `acts_as_audited'
> /code/foreman/app/models/host.rb:55
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:158:in `require'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:265:in `require_or_load'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:425:in `old_load_missing_constant'
> /code/foreman/config/initializers/
> fix_already_loading_missing_dependencies.rb:9:in
> `load_missing_constant'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:80:in `const_missing'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:92:in `const_missing'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:361:in `constantize'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:360:in `each'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:360:in `constantize'
> /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/
> string/inflections.rb:162:in `constantize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 157:in `observed_class'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 183:in `observed_classes'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 166:in `initialize'
> /usr/lib/ruby/1.8/singleton.rb:95:in `new'
> /usr/lib/ruby/1.8/singleton.rb:95:in `instance'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 38:in `instantiate_observers'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:

Re: [Puppet Users] augeas type and /etc/services

2010-06-03 Thread Christopher Johnston
# puppet -ddd foo1.pp
Could not parse for environment production: Syntax error at 'set
/files/etc/services/service-name[port = '1002'] app_tcp'; expected ']' at
/data/foo1.pp:5


I don't believe that works...

On Wed, Jun 2, 2010 at 10:59 PM, Rob McBroom wrote:

> On Jun 2, 2010, at 4:03 PM, Christopher Johnston wrote:
>
> > Has anyone attempted to use the augeas type to add a service?  I got the
> service to add no problem, but having some difficulties to get the match to
> work to prevent duplicate entries from adding.  Since the service-name[*]
> has endless number of entries I used a glob so it checks all the entries but
> that does not seem to work.  Any ideas on how to proceed?
> >
> >   augeas { app_tcp':
> > context => '/files/etc/services',
> > changes => ['insert service-name after service-name[last()]',
> > 'set service-name[last()] app_tcp',
> > 'set service-name[last()]/port 1002',
> > 'set service-name[last()]/protocol tcp'],
> > onlyif  => "match service-name[.*] != '[port = 1002][protocol =
> tcp]'"
> >   }
>
> I'm no expert, but I've messed with Augeas a bit and you can make it harder
> than it needs to be without even trying. I haven't done anything in
> `/etc/services`, but I had a similar issue with `sudoers`. A trick to keep
> in mind is that if you set something on a path that doesn't exist, Augeas
> will create it. So, if you can find something that makes an item unique, you
> can use that to specify a path. In this case, the port number will probably
> work.
>
>augeas { 'app_tcp':
>  context => '/files/etc/services',
>  changes => [
> "set /files/etc/services/service-name[port = '1002']/port 1002"
>"set /files/etc/services/service-name[port = '1002'] app_tcp"
>"set /files/etc/services/service-name[port = '1002']/protocol tcp"
>"set /files/etc/services/service-name[port = '1002']/#comment foo"
>  ],
>}
>
> This should create the line in `/etc/services` if it doesn't exist, but if
> it does exist and nothing has changed, Puppet won't do anything to the line
> (which is generally what you want). Setting the “name” doesn't seem to work
> until after the thing exists, which is why it appears second on the list.
>
> --
> Rob McBroom
> 
>
> It's not that I think guns, drugs, prostitution, swimming, eating and
> reading should be legal. It's just that no one on Earth has the authority to
> make them illegal.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
Ok, we got a little further now : )  This is the new error:

rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET
SQL_AUTO_IS_NULL=0

Here's the trace:

(in /code/foreman)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET
SQL_AUTO_IS_NULL=0
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract_adapter.rb:219:in `log'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:323:in `execute'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:603:in `configure_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:594:in `connect'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:203:in `initialize'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:75:in `new'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in `send'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:245:in
`checkout_new_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:188:in `checkout'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:184:in `loop'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:184:in `checkout'
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:183:in `checkout'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:98:in `connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:326:in
`retrieve_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_specification.rb:123:in
`retrieve_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_specification.rb:115:in
`connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
3113:in `quoted_table_name'
/code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
82:in `acts_as_audited'
/code/foreman/app/models/host.rb:55
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:158:in `require'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:265:in `require_or_load'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:425:in `old_load_missing_constant'
/code/foreman/config/initializers/
fix_already_loading_missing_dependencies.rb:9:in
`load_missing_constant'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:80:in `const_missing'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:92:in `const_missing'
/code/foreman/vendor/rails/activesupport/lib/active_support/
inflector.rb:361:in `constantize'
/code/foreman/vendor/rails/activesupport/lib/active_support/
inflector.rb:360:in `each'
/code/foreman/vendor/rails/activesupport/lib/active_support/
inflector.rb:360:in `constantize'
/code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/
string/inflections.rb:162:in `constantize'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
157:in `observed_class'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
183:in `observed_classes'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
166:in `initialize'
/usr/lib/ruby/1.8/singleton.rb:95:in `new'
/usr/lib/ruby/1.8/singleton.rb:95:in `instance'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
38:in `instantiate_observers'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
36:in `each'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
36:in `instantiate_observers'
/code/foreman/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:15:in `define_dispatcher_callbacks'
/code/foreman/vendor/rails/activesupport/lib/active_support/
callbacks.rb:182:in `call'
/code/foreman/vendor/rails/activesupport/lib/active_support/
callbacks.rb:182:in `evaluate_metho

Re: [Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread Ohad Levy
try without the encoding line
see http://theforeman.org/projects/foreman/wiki/FAQ#I-want-to-use-MySQL for
a working example.

cheers,
Ohad
On Thu, Jun 3, 2010 at 11:31 PM, CraftyTech  wrote:

> I'm using mysql 5.1.44 .  I tested the config in the database.yml, by
> basically using the same credentials and logging in locally.  I was
> able log in fine.  Here's a snippet:
>
> production:
>  adapter: mysql
>  database: foreman_prod
>  username: foreman_user
>  password: XXX
>  encoding: utf8
>
> I gave the user all access to the database too:
>
> GRANT ALL PRIVILEGES ON *.* TO 'foreman_user'@'localhost' WITH GRANT
> OPTION;
>
> I hope I"m not missing something.
>
>
>
>
> On Jun 3, 11:19 am, Ohad Levy  wrote:
> > which db are you using? could it be that you have some error in
> > config/database.yml file?
> >
> > Ohad
> >
> > On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech  wrote:
> > > Hello Ohad,
> >
> > > From the instructions you have posted, I tried to setup the
> > > database via RAILS_ENV=production rake db:migrate, and then I got the
> > > following error:
> >
> > > rake aborted!
> > > NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
> >
> > > This is the trace:
> >
> > > ** Invoke db:migrate (first_time)
> > > ** Invoke environment (first_time)
> > > ** Execute environment
> > > rake aborted!
> > > NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract_adapter.rb:219:in `log'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:323:in `execute'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:599:in `configure_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:594:in `connect'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:75:in `new'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:223:in
> > > `new_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:245:in
> > > `checkout_new_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_pool.rb:326:in
> > > `retrieve_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_specification.rb:123:in
> > > `retrieve_connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > > connection_adapters/abstract/connection_specification.rb:115:in
> > > `connection'
> > > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > > 3113:in `quoted_table_name'
> > > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > > 82:in `acts_as_audited'
> > > /code/foreman/app/models/host.rb:55
> > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > > `gem_original_require'
> > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:158:in `require'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:265:in `require_or_load'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:425:in `old_load_missing_constant'
> > > /code/foreman/config/initializers/
> > > fix_already_loading_missing_dependencies.rb:9:in
> > > `load_missing_constant'
> > > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > > dependencies.rb:80:in `const_missing'
> > > /code/foreman/vendor/

[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
I'm using mysql 5.1.44 .  I tested the config in the database.yml, by
basically using the same credentials and logging in locally.  I was
able log in fine.  Here's a snippet:

production:
  adapter: mysql
  database: foreman_prod
  username: foreman_user
  password: XXX
  encoding: utf8

I gave the user all access to the database too:

GRANT ALL PRIVILEGES ON *.* TO 'foreman_user'@'localhost' WITH GRANT
OPTION;

I hope I"m not missing something.




On Jun 3, 11:19 am, Ohad Levy  wrote:
> which db are you using? could it be that you have some error in
> config/database.yml file?
>
> Ohad
>
> On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech  wrote:
> > Hello Ohad,
>
> >     From the instructions you have posted, I tried to setup the
> > database via RAILS_ENV=production rake db:migrate, and then I got the
> > following error:
>
> > rake aborted!
> > NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
>
> > This is the trace:
>
> > ** Invoke db:migrate (first_time)
> > ** Invoke environment (first_time)
> > ** Execute environment
> > rake aborted!
> > NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract_adapter.rb:219:in `log'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:323:in `execute'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:599:in `configure_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:594:in `connect'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:203:in `initialize'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:75:in `new'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:223:in `send'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:223:in
> > `new_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:245:in
> > `checkout_new_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:184:in `loop'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> > /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:98:in `connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:326:in
> > `retrieve_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_specification.rb:123:in
> > `retrieve_connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/
> > connection_adapters/abstract/connection_specification.rb:115:in
> > `connection'
> > /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> > 3113:in `quoted_table_name'
> > /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> > 82:in `acts_as_audited'
> > /code/foreman/app/models/host.rb:55
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require'
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:158:in `require'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:265:in `require_or_load'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:425:in `old_load_missing_constant'
> > /code/foreman/config/initializers/
> > fix_already_loading_missing_dependencies.rb:9:in
> > `load_missing_constant'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:80:in `const_missing'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > dependencies.rb:92:in `const_missing'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > inflector.rb:361:in `constantize'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > inflector.rb:360:in `each'
> > /code/foreman/vendor/rails/activesupport/lib/active_support/
> > inflector.rb:360:in `constantize'
> > /co

Re: [Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread Ohad Levy
which db are you using? could it be that you have some error in
config/database.yml file?

Ohad

On Thu, Jun 3, 2010 at 11:05 PM, CraftyTech  wrote:

> Hello Ohad,
>
> From the instructions you have posted, I tried to setup the
> database via RAILS_ENV=production rake db:migrate, and then I got the
> following error:
>
> rake aborted!
> NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
>
>
> This is the trace:
>
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract_adapter.rb:219:in `log'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:323:in `execute'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:599:in `configure_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:594:in `connect'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:203:in `initialize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:75:in `new'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:223:in `send'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:223:in
> `new_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:245:in
> `checkout_new_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:184:in `loop'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:98:in `connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:326:in
> `retrieve_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:123:in
> `retrieve_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:115:in
> `connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> 3113:in `quoted_table_name'
> /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> 82:in `acts_as_audited'
> /code/foreman/app/models/host.rb:55
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:158:in `require'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:265:in `require_or_load'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:425:in `old_load_missing_constant'
> /code/foreman/config/initializers/
> fix_already_loading_missing_dependencies.rb:9:in
> `load_missing_constant'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:80:in `const_missing'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:92:in `const_missing'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:361:in `constantize'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:360:in `each'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:360:in `constantize'
> /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/
> string/inflections.rb:162:in `constantize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 157:in `observed_class'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 183:in `observed_classes'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 166:in `initialize'
> /usr/lib/ruby/1.8/singleton.rb:95:in `new'
> /usr/lib/ruby/1.8/singleton.rb:95:in `instance'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 38:in `instantiate_observers'
> /code/foreman/vendor/rails/activerecord/lib/active_record/obse

[Puppet Users] Re: Could not render to yaml: stack level too deep

2010-06-03 Thread Stefan Wiederoder

> What version of Ruby/Gems are you running?
> I had some problems with that pre Ruby 1.8.5 and Gems 1.3.5

I´m using the following rpm´s (RHEL, EPEL):
rubygems-1.3.1-1.el5
ruby-libs-1.8.5-5.el5_4.8
ruby-shadow-1.4.1-7.el5
rubygem-gem_plugin-0.2.2-2.el5
rubygem-rake-0.8.3-1.el5
libselinux-ruby-1.33.4-5.5.el5
rubygem-daemons-1.0.7-2.el5
rubygem-mongrel-1.0.1-6.el5
ruby-irb-1.8.5-5.el5_4.8
ruby-rdoc-1.8.5-5.el5_4.8
ruby-augeas-0.3.0-1.el5
rubygem-fastthread-1.0.1-1.el5
ruby-1.8.5-5.el5_4.8

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
BTW: This was the latest nightly build.

Thanks,
Henry

On Jun 3, 11:05 am, CraftyTech  wrote:
> Hello Ohad,
>
>      From the instructions you have posted, I tried to setup the
> database via RAILS_ENV=production rake db:migrate, and then I got the
> following error:
>
> rake aborted!
> NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
>
> This is the trace:
>
> ** Invoke db:migrate (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract_adapter.rb:219:in `log'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:323:in `execute'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:599:in `configure_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:594:in `connect'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:203:in `initialize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:75:in `new'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:223:in `send'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:223:in
> `new_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:245:in
> `checkout_new_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:188:in `checkout'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:184:in `loop'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:184:in `checkout'
> /usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:183:in `checkout'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:98:in `connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_pool.rb:326:in
> `retrieve_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:123:in
> `retrieve_connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/
> connection_adapters/abstract/connection_specification.rb:115:in
> `connection'
> /code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
> 3113:in `quoted_table_name'
> /code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
> 82:in `acts_as_audited'
> /code/foreman/app/models/host.rb:55
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:158:in `require'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:265:in `require_or_load'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:425:in `old_load_missing_constant'
> /code/foreman/config/initializers/
> fix_already_loading_missing_dependencies.rb:9:in
> `load_missing_constant'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:80:in `const_missing'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:92:in `const_missing'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:361:in `constantize'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:360:in `each'
> /code/foreman/vendor/rails/activesupport/lib/active_support/
> inflector.rb:360:in `constantize'
> /code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/
> string/inflections.rb:162:in `constantize'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 157:in `observed_class'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 183:in `observed_classes'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 166:in `initialize'
> /usr/lib/ruby/1.8/singleton.rb:95:in `new'
> /usr/lib/ruby/1.8/singleton.rb:95:in `instance'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 38:in `instantiate_observers'
> /code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
> 36:in `each'
> /code/foreman/vendor/rails/act

[Puppet Users] Re: storing facter facts in Dashboard.....

2010-06-03 Thread CraftyTech
Hello Ohad,

 From the instructions you have posted, I tried to setup the
database via RAILS_ENV=production rake db:migrate, and then I got the
following error:

rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'


This is the trace:

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
NoMethodError: undefined method `ord' for 0:Fixnum: SET NAMES 'utf8'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract_adapter.rb:219:in `log'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:323:in `execute'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:599:in `configure_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:594:in `connect'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:203:in `initialize'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:75:in `new'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in `send'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:223:in
`new_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:245:in
`checkout_new_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:188:in `checkout'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:184:in `loop'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:184:in `checkout'
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:183:in `checkout'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:98:in `connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:326:in
`retrieve_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_specification.rb:123:in
`retrieve_connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_specification.rb:115:in
`connection'
/code/foreman/vendor/rails/activerecord/lib/active_record/base.rb:
3113:in `quoted_table_name'
/code/foreman/vendor/plugins/acts_as_audited/lib/acts_as_audited.rb:
82:in `acts_as_audited'
/code/foreman/app/models/host.rb:55
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:158:in `require'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:265:in `require_or_load'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:425:in `old_load_missing_constant'
/code/foreman/config/initializers/
fix_already_loading_missing_dependencies.rb:9:in
`load_missing_constant'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:80:in `const_missing'
/code/foreman/vendor/rails/activesupport/lib/active_support/
dependencies.rb:92:in `const_missing'
/code/foreman/vendor/rails/activesupport/lib/active_support/
inflector.rb:361:in `constantize'
/code/foreman/vendor/rails/activesupport/lib/active_support/
inflector.rb:360:in `each'
/code/foreman/vendor/rails/activesupport/lib/active_support/
inflector.rb:360:in `constantize'
/code/foreman/vendor/rails/activesupport/lib/active_support/core_ext/
string/inflections.rb:162:in `constantize'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
157:in `observed_class'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
183:in `observed_classes'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
166:in `initialize'
/usr/lib/ruby/1.8/singleton.rb:95:in `new'
/usr/lib/ruby/1.8/singleton.rb:95:in `instance'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
38:in `instantiate_observers'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
36:in `each'
/code/foreman/vendor/rails/activerecord/lib/active_record/observer.rb:
36:in `instantiate_observers'
/code/foreman/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:15:in `define_dispatcher_callbacks'
/code/foreman/vendor/rails/activesupport/lib/active_support/
callbacks.rb:182:in `call'
/code/foreman/vendor

Re: [Puppet Users] External CA management

2010-06-03 Thread Nigel Kersten
On Thu, Jun 3, 2010 at 6:58 AM, piir  wrote:

>
> 2010/5/6 piir D.K 
>
> Hello,
>>
>> I'm tryning to have puppet working whitout handling any part of a pki.
>> On one side I've got a puppet installation working, on the other side
>> a PKI.(dogtag)
>>
>> I try to tell puppetmasterd to use my CA.crt and an already
>> functionning cert, but at launch time it still generates his own
>> certificate request. So I tried to sign his request, but he still
>> ignore the certificate.
>>
>>
> Hello,
>
> I'am answering my own post,  I did manage to launch both the client and the
> server with my own certificate. The problem was that puppet didn't seems to
> care about value in puppet.conf
>
> In $ssldir I replace those file with mine, certs/ca.pem, certs/.pem
> private_keys/.pem, public_keys/.pem.
>
>
> But I'm getting this error on the client : (puppetd --no-daemonize -v -d )
> err: Could not retrieve catalog from remote server: certificate verify
> failed
>
> On the server in masterhttp.log I can read this:
>
> [2010-06-03 15:40:18] DEBUG accept: XXX.XXX.0.3:49420
> [2010-06-03 15:40:18] ERROR OpenSSL::SSL::SSLError: tlsv1 alert unknown ca
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
> `accept'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
> `listen'
> /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
> /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:43:in
> `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
> `initialize'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `new'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
> `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
> `synchronize'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
> `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:131:in `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:146:in `start'
> /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:128:in `start'
> /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:122:in
> `main'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
> /usr/sbin/puppetmasterd:66
> [2010-06-03 15:40:18] DEBUG close: XXX.XXX.0.3:49420
> [2010-06-03 15:49:06] DEBUG close TCPSocket(0.0.0.0, 8140)
>
>
> I have tested all the certficates with openssl (s_server|s_client) -CAfile
> certs/ca.pem -cert certs/.pem -key private_keys/.pem , trying to
> connect from the client to the server. It works fine, and i got no errors.
>
>
> Any help/tracks would be greatly appreciated.


>From looking at my similar setup, I have these two file locations with the
same contents:

$ssldir/certs/ca.pem
$ssldir/ca/ca_crt.pem

Are you perhaps missing the latter one?


>
>
> piir
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] External CA management

2010-06-03 Thread Ohad Levy
which version of puppet are you using? there were issues with CRL in 0.25.x
(partly fixed in 0.25.5).
its probably best if you can join the irc channel, would be easier to debug
the problem :)

Ohad

On Thu, Jun 3, 2010 at 9:58 PM, piir  wrote:

>
> 2010/5/6 piir D.K 
>
> Hello,
>>
>> I'm tryning to have puppet working whitout handling any part of a pki.
>> On one side I've got a puppet installation working, on the other side
>> a PKI.(dogtag)
>>
>> I try to tell puppetmasterd to use my CA.crt and an already
>> functionning cert, but at launch time it still generates his own
>> certificate request. So I tried to sign his request, but he still
>> ignore the certificate.
>>
>>
> Hello,
>
> I'am answering my own post,  I did manage to launch both the client and the
> server with my own certificate. The problem was that puppet didn't seems to
> care about value in puppet.conf
>
> In $ssldir I replace those file with mine, certs/ca.pem, certs/.pem
> private_keys/.pem, public_keys/.pem.
>
>
> But I'm getting this error on the client : (puppetd --no-daemonize -v -d )
> err: Could not retrieve catalog from remote server: certificate verify
> failed
>
> On the server in masterhttp.log I can read this:
>
> [2010-06-03 15:40:18] DEBUG accept: XXX.XXX.0.3:49420
> [2010-06-03 15:40:18] ERROR OpenSSL::SSL::SSLError: tlsv1 alert unknown ca
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
> `accept'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
> `listen'
> /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
> /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
> /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
> /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:43:in
> `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
> `initialize'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `new'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
> `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
> `synchronize'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
> `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:131:in `listen'
> /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:146:in `start'
> /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:128:in `start'
> /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:122:in
> `main'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
> /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
> /usr/sbin/puppetmasterd:66
> [2010-06-03 15:40:18] DEBUG close: XXX.XXX.0.3:49420
> [2010-06-03 15:49:06] DEBUG close TCPSocket(0.0.0.0, 8140)
>
>
> I have tested all the certficates with openssl (s_server|s_client) -CAfile
> certs/ca.pem -cert certs/.pem -key private_keys/.pem , trying to
> connect from the client to the server. It works fine, and i got no errors.
>
>
> Any help/tracks would be greatly appreciated.
>
>
> piir
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Arbitrary barriers to bug reporting

2010-06-03 Thread Alan Barrett
On Wed, 02 Jun 2010, James Turnbull wrote:
> > I didn't see anybody ask for the ability to send anonymous bug reports
> > (although thta would certainly be useful).  I saw somebody ask for the
> > ability to send bug reports without having to create a new account.  For
> > example, that desire could be satisfied by the ability to send a bug
> > report via email, or via a web form in which one of the questions is
> > your email address.
> 
> I'm still struggling to understand how this mechanism would work.  And
> why it wouldn't be spam'ed?  Surely you'd need to provide something to
> log a ticket that stopped someone scripting a spam attack against the
> address or the form?

Yes, spam might be a problem, but projects exist that allow anybody to
email bug reports (NetBSD, FreeBSD, and Debian are a few examples).  For
example, projects using gnats as the bug tracker could easily reject
messages that are not formatted correctly.  Projects using an anonymous
web form could use a CAPTCHA to slow spammers down.

--apb (Alan Barrett)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: authenticating new nodes that are created by provisioning

2010-06-03 Thread Oded
Never tried it myself but I think you can create the certificate as a
part of the provisioning process, and then somehow place it in the new
server.
http://serverfault.com/questions/19462/how-can-i-pre-sign-puppet-certificates

On Jun 3, 7:42 am, "Matthew Delves"  wrote:
> Hey Folks,
> I'm looking at doing automated provisioning of new servers and am trying to 
> integrate puppet into this process. What I'm wondering though is what the 
> best process for securely registering a new node is.
>
> At the moment the first time puppet is run I have to then accept the 
> certificate on the puppetmaster and then run puppet again.
>
> What I would like to do is accept the certificate automatically, though am 
> hesitant to do so as then anyone could just register against the puppetmaster.
>
> Is there a way to do this securely?
>
> Thanks,
> Matt.
> --
>
> -
> Matthew Delves
> System Administrator
> Information Systems
> Networks & Infrastructure
> University of Ballarat
> ph: 03 5327 9732
> email: m.del...@ballarat.edu.au

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] External CA management

2010-06-03 Thread piir
2010/5/6 piir D.K 

> Hello,
>
> I'm tryning to have puppet working whitout handling any part of a pki.
> On one side I've got a puppet installation working, on the other side
> a PKI.(dogtag)
>
> I try to tell puppetmasterd to use my CA.crt and an already
> functionning cert, but at launch time it still generates his own
> certificate request. So I tried to sign his request, but he still
> ignore the certificate.
>
>
Hello,

I'am answering my own post,  I did manage to launch both the client and the
server with my own certificate. The problem was that puppet didn't seems to
care about value in puppet.conf

In $ssldir I replace those file with mine, certs/ca.pem, certs/.pem
private_keys/.pem, public_keys/.pem.


But I'm getting this error on the client : (puppetd --no-daemonize -v -d )
err: Could not retrieve catalog from remote server: certificate verify
failed

On the server in masterhttp.log I can read this:

[2010-06-03 15:40:18] DEBUG accept: XXX.XXX.0.3:49420
[2010-06-03 15:40:18] ERROR OpenSSL::SSL::SSLError: tlsv1 alert unknown ca
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
`accept'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in
`listen'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:43:in
`listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
`initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
`listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
`synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:39:in
`listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:131:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:146:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:128:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:122:in
`main'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetmasterd:66
[2010-06-03 15:40:18] DEBUG close: XXX.XXX.0.3:49420
[2010-06-03 15:49:06] DEBUG close TCPSocket(0.0.0.0, 8140)


I have tested all the certficates with openssl (s_server|s_client) -CAfile
certs/ca.pem -cert certs/.pem -key private_keys/.pem , trying to
connect from the client to the server. It works fine, and i got no errors.


Any help/tracks would be greatly appreciated.

piir

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Could not render to yaml: stack level too deep

2010-06-03 Thread Trevor Vaughan
What version of Ruby/Gems are you running?

I had some problems with that pre Ruby 1.8.5 and Gems 1.3.5

Trevor

On Thu, Jun 3, 2010 at 9:53 AM, Stefan Wiederoder
 wrote:
> I´ve got the following message in my puppet logfile
>  Could not render to yaml: stack level too deep
>
> I´ve only found references about increasing the stack size (which is
> now 32768),
> are there any other options?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Managing RPM Repositories

2010-06-03 Thread Matt Wallace
On Thu, 2010-06-03 at 18:22 +1000, Daniel Pittman wrote:

> ...but from experience I wouldn't recommend doing this.  You are almost
> certainly going to be better off having the same set of repositories on every
> server, and using some other mechanism to control which packages or updates
> are applied to your systems.

Ok, that makes sense.

I've updated my manifests to reflect the above, however now when I run
Yum manually on the servers I get the following output:

Repository 'epel' is missing name in configuration, using id


It doesn't make a difference to the install, I'm just wondering if I'm
missing a flag from the following:

yumrepo{epel:
name => "Epel",
baseurl=> "http://updates.the.namesco.net/centos\$releasever-\
$basearch/RPMS.epel/",
gpgcheck=> "1",
gpgkey=> "http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL";,
enabled=> "1",
includepkgs=> "puppet* ruby* facter augeas-libs ruby-augeas ruby-shadow
munin-common munin-node munin-server pyparsing libvirt* libyaml* PyYAML*
cobbler* Django* python-netaddr",
}


Thanks in advance,

Matt

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Could not render to yaml: stack level too deep

2010-06-03 Thread Stefan Wiederoder
I´ve got the following message in my puppet logfile
 Could not render to yaml: stack level too deep

I´ve only found references about increasing the stack size (which is
now 32768),
are there any other options?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] variable value in variable name

2010-06-03 Thread Stas Kholmanskikh
Hello.

Here is my example:

# City1 variables
class city1 {
$fname = '/tmp/la-la'
}

# City2 variables
class city2 {
$fname = '/tmp/ba-ba'
}

node node1 {
   include city1
   include city2

   $city = 'city1'

   file { "${city}::fname": ensure => present }
}

node node2 {
  include city1
  include city2

  $city = 'city2'

  file {"${city}::fname": ensure => present }
}

This manifest doesn't work

I want to have a possibility to access variables in different classes by
using a pointer (variable $city).

Is this possible?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Managing RPM Repositories

2010-06-03 Thread Daniel Pittman
Matt Wallace  writes:
> On Wed, 2010-06-02 at 15:16 -0700, Patrick wrote:
>
>> Sorry, but you might have lost me.  Are you saying that you're having
>> problems because when you define the repository in two places it throws an
>> error?
>
> Not quite! :)
>
> I want to define all my repos in one module and then include the repos
> based upon the node class.
>
> For example:
>
> =
>
> class webserver {
>   yumrepo{["atrpms-stable","atrpms-testing","epel","centos-base"]}

include repo::atrpms-stable
include repo::epel

[...]

[...]

> and then in my repos module:
> =
>

class repo::atrpms-stable {
> yumrepo{ atrpms-stable:
}

[...]

> So I only get the minimal repos needed for each node class.

...but from experience I wouldn't recommend doing this.  You are almost
certainly going to be better off having the same set of repositories on every
server, and using some other mechanism to control which packages or updates
are applied to your systems.

Regards,
Daniel

-- 
✣ Daniel Pittman✉ dan...@rimspace.net☎ +61 401 155 707
   ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Managing RPM Repositories

2010-06-03 Thread Matt Wallace
On Wed, 2010-06-02 at 15:16 -0700, Patrick wrote:
> Sorry, but you might have lost me.  Are you saying that you're having 
> problems because when you define the repository in two places it throws an 
> error?
> 

Not quite! :)

I want to define all my repos in one module and then include the repos
based upon the node class.

For example:

=

class webserver {

yumrepo{["atrpms-stable","atrpms-testing","epel","centos-base"]}

# install webserver stuff
...
#finish

}

class mailserver {

yumrepo{['"centos-base","epel","elff"]}

# do mailserver install
...
# finish mailserver install

}
=

and then in my repos module:

=

yumrepo{ atrpms-stable:
name => "atrpms",
baseurl => "http://dl.atrpms.net/el\$releasever-\
$basearch/atrpms/stable",
descr => "atrpms for exim etc",
enabled => "1",
includepkgs => "exim-* dovecot* libspf2* libsrs*",
gpgkey => "http://atrpms.net/RPM-GPG-KEY.atrpms";,
gpgcheck => "1"
}


yumrepo{ atrpms-testing:
name => "atrpms-testing",
baseurl => "http://dl.atrpms.net/el\$releasever-\
$basearch/atrpms/testing",
descr => "atrpms for exim etc",
enabled => "1",
includepkgs => "exim-* dovecot* libspf* libsrs*",
gpgkey => "http://atrpms.net/RPM-GPG-KEY.atrpms";,
gpgcheck => "1"
}

===

So I only get the minimal repos needed for each node class.

At the moment I can include all the repos or none of the repos and I'd
like to bemore subtle about it without having to redefine each repo for
each class it is used in.

If there's a more appropriate/better way of achieving this, please let
me know!

Kind regards,

Matt

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.