Re: [Puppet Users] rspec-puppet: mocking included params class in defines

2013-12-26 Thread Johan De Wit

I use this one to set parameters for a define in my rspec

  let(:facts) { { :hostname => 'sambaserver' } }

  context 'default setting' do
let(:params) { { :share_path => '/testpath/share' } }
...
  end

this is an expert of my define

define samba::define_share (
  share_path,
  share_browsable   = $samba::params::share_browsable,
  share_readonly= $samba::params::share_readonly,
  share_write_list  = $samba::params::share_write_list,
  share_valid_users = $samba::params::share_valid_users,
. )

hope this helps

Grt
Johan

On 12/24/2013 02:50 PM, vkanak...@gmail.com wrote:

Hi all,

I'm trying to test a defined type that looks like this:

define app_setup::app($app_name = $title) {
  include app_setup::params

  $app_host   = $app_setup::params::app_hosts[$app_name]['url']
  $app_port   = $app_setup::params::app_hosts[$app_name]['port']
  $deploy_user= $app_setup::params::deploy_user

   ...
}

And I'm trying to write a spec like this:

describe 'app_setup::app', :type => :define do
  let(:title) { 'some_app_name' }

end

My question is, how can I assign the values of 
$app_setup::params::app_hosts in the spec? I tried several 
combinations of 'let' but didn't work.


Thanks,
Vamsee.


--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6b1ca94d-97b6-4e1b-8c62-5b5ed1478705%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Advanced Training | 
http://www.open-future.be/puppet-advanced-training-7-till-9th-january
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52BBFD5C.7040705%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] ruby visual debuggers/ide's for Linux

2013-12-26 Thread Johan De Wit

Hi Stuart,

Someone on the dev irc mentioned pry -> http://pryrepl.org/

I learned already a lot trying to write my first custom type and provider

Grts

Johan



On 12/25/2013 12:21 AM, Stuart Cracraft wrote:

Hi,

Is there a plain-text visual debugger ide for Linux for Ruby anyone 
can mention?


Stuart

--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b15a63ee-164e-4bb6-bbe4-829c67a91655%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Advanced Training | 
http://www.open-future.be/puppet-advanced-training-7-till-9th-january
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52BBFDF2.1040105%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: ruby visual debuggers/ide's for Linux

2013-12-26 Thread JuanBrein
I would highly suggest you to use VIM+plugins

Powerful as any other graphical IDE plus you can run it in any console plus 
run on any OS plus free :-)

On Tuesday, December 24, 2013 11:21:48 PM UTC, Stuart Cracraft wrote:
>
> Hi,
>
> Is there a plain-text visual debugger ide for Linux for Ruby anyone can 
> mention?
>
> Stuart
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d8b96c7e-ae6c-40b5-bed9-00504c907b4b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] ruby visual debuggers/ide's for Linux

2013-12-26 Thread Stuart Cracraft
Bizarre. 

I downloaded pry-0.9.12.4.gem from rubygems.org and then:

  gem install pry

It gave:

ERROR: While executing gem ... (RangeError)
   integer 7516195309

Google has been unhelpful in ascertaining the path forward from the above 
error for the pry ide tryout

If you are aware of the above, let loose in response.

--Stuart


On Thursday, December 26, 2013 1:59:14 AM UTC-8, Johan De Wit wrote:

> Hi Stuart, 
>
> Someone on the dev irc mentioned pry -> http://pryrepl.org/ 
>
> I learned already a lot trying to write my first custom type and provider 
>
> Grts 
>
> Johan 
>
>
>
> On 12/25/2013 12:21 AM, Stuart Cracraft wrote: 
> > Hi, 
> > 
> > Is there a plain-text visual debugger ide for Linux for Ruby anyone 
> > can mention? 
> > 
> > Stuart 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Puppet Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to puppet-users...@googlegroups.com . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/b15a63ee-164e-4bb6-bbe4-829c67a91655%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>
> -- 
> Johan De Wit 
>
> Open Source Consultant 
>
> Red Hat Certified Engineer (805008667232363) 
> Puppet Certified Professional 2013 (PCP006) 
> _ 
>   
> Open-Future Phone +32 (0)2/255 70 70 
> Zavelstraat 72  Fax   +32 (0)2/255 70 71 
> 3071 KORTENBERG Mobile+32 (0)474/42 40 73 
> BELGIUM http://www.open-future.be 
> _ 
>   
>
> Next Events: 
> Puppet Advanced Training | 
> http://www.open-future.be/puppet-advanced-training-7-till-9th-january 
> Puppet Fundamentals Training | 
> http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february 
> Subscribe to our newsletter | http://eepurl.com/BUG8H 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/27aed7e3-2dfa-4a77-8025-f4982c47fefe%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: ruby visual debuggers/ide's for Linux

2013-12-26 Thread Stuart Cracraft
Juan,

Where is this documented?

Stuart

On Thursday, December 26, 2013 3:35:23 AM UTC-8, JuanBrein wrote:

> I would highly suggest you to use VIM+plugins
>
> Powerful as any other graphical IDE plus you can run it in any console 
> plus run on any OS plus free :-)
>
> On Tuesday, December 24, 2013 11:21:48 PM UTC, Stuart Cracraft wrote:
>>
>> Hi,
>>
>> Is there a plain-text visual debugger ide for Linux for Ruby anyone can 
>> mention?
>>
>> Stuart
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5e1f1bf7-5077-4090-a030-dcab582039d3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Roles/profile design

2013-12-26 Thread Josh
Joseph,

So, the problem with this method appears to be that once you specify 
"hiera_include('classes')" in the environment's site.pp, Puppet appears to 
try and make Hiera the ONLY source for node classification.  I rely on 
roles from my ENC and profiles for classification as well.

Josh


> Hi, 
> How are you declaring your classes to include from with in hiera? 
>
> Is it similar to this? 
>
> --- 
> classes: 
>   - apache 
>   - apache::mod 
> apache::someparamater: value 
> apache::mod::php: blah 
>
>
> If so, you should be able to do: 
>
> --- 
> classes: 
>   - apache 
>   - apache::mod::php 
> apache::my_favorite_parameter: value 
> apache::mod::php::php_parameter: some_other_vaule 
>
> I haven't tried that exact thing with the apache module, but it does 
> work for other modules with sub-classes that I've been working with. 
> That is assuming that you're using the 'classes' array with the 
> hiera_include function.  We use the create_resources function to create 
> wrappers for defines, while regular classes are included via the 
> hiera_include and classes array. 
>
> Our setup was pretty much taken directly from the hiera documentation: 
>
>
> http://docs.puppetlabs.com/hiera/1/puppet.html#assigning-classes-to-nodes-with-hiera-hierainclude
>  
>
> There are some gotchas that come up with the hiera merge behavior 
> depending on how complex you're hiera layout becomes.  For example, we 
> had to set the hiera merge_behavior to deeper for us to get some of the 
> desired results that we were looking for. 
>
> -- 
> Joseph Swick > 
> Operations Engineer 
> Meltwater Group 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b20be34f-afce-4c76-805c-fb9ca879ec0a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Roles/profile design

2013-12-26 Thread Joseph Swick
On 12/26/2013 12:48 PM, Josh wrote:
> Joseph,
> 
> So, the problem with this method appears to be that once you specify 
> "hiera_include('classes')" in the environment's site.pp, Puppet appears to 
> try and make Hiera the ONLY source for node classification.  I rely on 
> roles from my ENC and profiles for classification as well.
> 
> Josh
> 

That's certainly another gotcha with hiera and classes that's good to
know.  We went to using hiera exclusively for our node classification,
so we didn't run into that issue as we're not using any other ENCs with
our current configuration.

-- 
Joseph Swick 
Operations Engineer
Meltwater Group



signature.asc
Description: OpenPGP digital signature


[Puppet Users] Puppet Enterprise 3.1.1 is available

2013-12-26 Thread Rob Braden
Dear Puppet Enterprise Users,

Puppet Enterprise 3.1.1 is now available.

This is a security release of Puppet Enterprise. All users of Puppet
Enterprise 3.x are strongly encouraged to upgrade when possible to
Puppet Enterprise 3.1.1

Puppet Enterprise 3.1.1 includes fixes to address CVE-2013-4164,
CVE-2013-4363, CVE-2013-4491, CVE-2013-4969, CVE-2013-6414,
CVE-2013-6415 and CVE-2013-6417

For more information on these vulnerabilities, please visit
http://puppetlabs.com/security, or visit
http://puppetlabs.com/security/cve/cve-2013-4164
http://puppetlabs.com/security/cve/cve-2013-4363
http://puppetlabs.com/security/cve/cve-2013-4491
http://puppetlabs.com/security/cve/cve-2013-4969
http://puppetlabs.com/security/cve/cve-2013-6414
http://puppetlabs.com/security/cve/cve-2013-6415 and
http://puppetlabs.com/security/cve/cve-2013-6417

As a current Puppet Enterprise user, you can upgrade to this new
version as part of your annual subscription. If upgrading, it is
recommended to upgrade your master and console servers first.

As always, we want to hear about your experiences with Puppet Enterprise.

If you have any questions about upgrading, be sure to get in touch
with Puppet Labs Support.

Thanks,
Rob Braden
Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANrW%3D%3D2Ak5yQF7RWoHQosE_5nyvwUqFMR1_jLQoMM74WFCAwGw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Puppet Enterprise 2.8.4 is available

2013-12-26 Thread Rob Braden
Dear Puppet Enterprise Users,

Puppet Enterprise 2.8.4 is now available.

This is a security release of Puppet Enterprise. All users of Puppet
Enterprise 2.8.x are strongly encouraged to upgrade when possible to Puppet
Enterprise 2.8.4.

Puppet Enterprise 2.8.4 includes fixes to address CVE-2013-4164,
CVE-2013-4363, CVE-2013-4969, CVE-2013-6415 and CVE-2013-6417

For more information on these vulnerabilities, please visit
http://puppetlabs.com/security, or visit
http://puppetlabs.com/security/cve/cve-2013-4164
http://puppetlabs.com/security/cve/cve-2013-4363
http://puppetlabs.com/security/cve/cve-2013-4969
http://puppetlabs.com/security/cve/cve-2013-6415 and
http://puppetlabs.com/security/cve/cve-2013-6417

As a current Puppet Enterprise user, you can upgrade to this new
version as part of your annual subscription. If upgrading, it is
recommended to upgrade your master and console servers first.

As always, we want to hear about your experiences with Puppet Enterprise.
If you have any questions about upgrading, be sure to get in touch with
Puppet Labs Support.

Thanks,
Rob Braden
Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANrW%3D%3D3geptcC8dUYK%3DZPpTSU%2BbsB5HF3Lbks5oRegShgG64Pw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] mco package fail with puppet 3.4.0

2013-12-26 Thread Fabrice Bacchella
When I upgrade a node with puppet 3.4.0, puppet-package is broken :

~$  mco package puppet status -I $(facter hostname) -v

 | [ > ] 0 / 1
The package application failed to run, use -v for full error details: undefined 
class/module Puppet::

undefined class/module Puppet:: (ArgumentError)
from /usr/libexec/mcollective/mcollective/security/psk.rb:27:in `load'  
<
from /usr/libexec/mcollective/mcollective/security/psk.rb:27:in 
`decodemsg'
from /usr/lib/ruby/site_ruby/1.8/mcollective/message.rb:182:in `decode!'
from /usr/lib/ruby/site_ruby/1.8/mcollective/client.rb:93:in `receive'
from /usr/lib/ruby/site_ruby/1.8/mcollective/client.rb:152:in `req'
from /usr/lib/ruby/site_ruby/1.8/mcollective/client.rb:151:in `loop'
from /usr/lib/ruby/site_ruby/1.8/mcollective/client.rb:151:in `req'
from /usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
from /usr/lib/ruby/site_ruby/1.8/mcollective/client.rb:148:in `req'
from /usr/lib/ruby/site_ruby/1.8/mcollective/rpc/client.rb:851:in 
`call_agent'
from /usr/lib/ruby/site_ruby/1.8/mcollective/rpc/client.rb:244:in 
`method_missing'
from /usr/libexec/mcollective/mcollective/application/package.rb:63:in 
`send'
from /usr/libexec/mcollective/mcollective/application/package.rb:63:in 
`main'
from /usr/lib/ruby/site_ruby/1.8/mcollective/application.rb:285:in `run'
from /usr/lib/ruby/site_ruby/1.8/mcollective/applications.rb:23:in `run'
from /usr/bin/mco:20

I'm running this on a up to date scientific linux 6.4 with up to date 
mcollective and puppet rpm directly from puppet labs :

~# rpm -qa | grep -e puppet -e mcollective
mcollective-package-agent-4.2.0-1.noarch
mcollective-package-client-4.2.0-1.noarch
mcollective-2.2.4-1.el6.noarch
puppet-3.4.0-1.el6.noarch
puppetlabs-release-6-7.noarch
mcollective-common-2.2.4-1.el6.noarch
mcollective-client-2.2.4-1.el6.noarch
mcollective-puppet-common-1.6.0-1.noarch
mcollective-puppet-client-1.6.0-1.noarch
mcollective-package-common-4.2.0-1.noarch

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CDA23AC7-270A-4ACE-870F-1069473D08F7%40spamcop.net.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Announce: Puppet 3.4.1 is available

2013-12-26 Thread Rob Braden
Released December 26, 2013.

3.4.1 is a security release in the Puppet 3 series. This release fixes:

* CVE-2013-4969: Unsafe use of temp files in File type

See http://puppetlabs.com/security/cve/cve-2013-4969 for details.

Andrew Parker (1):
  65909fb (#23343) Use `replace_file` to update a file's contents

Matthaus Owens (1):
  76434c5 (packaging) Update PUPPETVERSION to 3.4.1


Puppet 3.4.1 Downloads
--
Source: https://downloads.puppetlabs.com/puppet/puppet-3.4.1.tar.gz

Available in native package format in the Puppet Labs yum and apt
repositories:
http://yum.puppetlabs.com and http://apt.puppetlabs.com

Gems are available via rubygems at
https://rubygems.org/downloads/puppet-3.4.1.gem
  or by using `gem install puppet`

Mac packages are available at
https://downloads.puppetlabs.com/mac/puppet-3.4.1.dmg

Windows packages are available at
https://downloads.puppetlabs.com/windows/puppet-3.4.1.msi

Please report feedback via the Puppet Labs tickets site, using an
affected puppet version of 3.4.1:
https://tickets.puppetlabs.com/browse/PUP



--
Rob Braden
Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANrW%3D%3D3qjC-TiBZKXvUcZVN%3DNn%2B%3DpxTJmW8oCtwV1YskuJ41pg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] book

2013-12-26 Thread Stuart Cracraft
I'm about 20% through my first
reading of Pro Puppet, 2nd Edition. 

It has great examples, is simply written and has clearly been well-edited. 

You would be well-advised to snap
up a copy and commence in-depth. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/84270876-60DE-47FF-A48C-24DAC861C876%40me.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: ruby visual debuggers/ide's for Linux

2013-12-26 Thread Stuart Cracraft

Hi everybody.

My quest for a Ruby debugger is over.

This does it:

http://stackoverflow.com/questions/1359333/how-do-i-use-ruby-debug-inside-emacs

The result is a 6-window split in emacs. 

One is interactive to rdb.

One is the code with the program counter (i.e. the "arrow")

One is for variables.

One is for output.

One is for breakpoints.

And so forth.

My ~/.emacs looks like:

(add-to-list 'load-path "/export/home/scracraft/Lisp/")

(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/")

(add-to-list 'auto-mode-alist '("*\\.rb\\'* " . ruby-mode))

(autoload 'ruby-mode "ruby-mode" "Major mode for editing Ruby code" t)

(add-hook 'ruby-mode-hook (lambda () (local-set-key "\r" 
'newline-and-indent)))

(require 'inf-ruby)

(require 'rdebug)


Operation consists of:


open emacs

visit the .rb source file

do meta-x (i.e. escape-key) and then rdebug


window splits.

type help.


Commands include step, next, print, break, etc.


Stuart


P.S. I prefer Emacs to GUI editors other than Xcode.



OnTuesday, December 24, 2013 3:21:48 PM UTC-8, Stuart Cracraft wrote:

> Hi,
>
> Is there a plain-text visual debugger ide for Linux for Ruby anyone can 
> mention?
>
> Stuart
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ca079d49-61d2-46cd-b5c4-b24400ae7ebd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Announce: Puppet 2.7.24 is available

2013-12-26 Thread Sam Kottler
Released December 26, 2013.

2.7.24 is a security release in the Puppet 2 series. Please note that this
release is supported by the community; Puppet Labs is not responsible for
maintaining the release. This release fixes:

* CVE-2013-4969: Unsafe use of temp files in File type

See http://puppetlabs.com/security/cve/cve-2013-4969 for details.

Andrew Parker (1):
  691fbbe (#23343) Use `replace_file` to update a file's contents

Sam Kottler (1):
  22ecab2 Bump the version to 2.7.24


Puppet 2.7.24 Downloads
--
Source: https://downloads.puppetlabs.com/puppet/puppet-2.7.24.tar.gz

Available in native package format in the Puppet Labs yum and apt
repositories:
http://yum.puppetlabs.com and http://apt.puppetlabs.com

Gems are available via rubygems at
https://rubygems.org/downloads/puppet-2.7.24.gem
  or by using `gem install puppet`

Please note that there are no longer DMG's or MSI's available for the 2.7
series. Users still on 2.7 using Puppet on OSX or Windows with the
aforementioned native packaging formats should upgrade to the 3.x series as
soon as possible.

Please report feedback via the Puppet Labs tickets site, using an
affected puppet version of 2.7.24:
https://tickets.puppetlabs.com/browse/PUP

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAPO4y0Q-VF1VzQ%2BVwiVvG-OiX5LtpEkbQJE%3DM6QdRAdUsJ%2BFjA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] ruby visual debuggers/ide's for Linux

2013-12-26 Thread Johan De Wit

Stuart,

I'm on fedora, and installed it from the rubygem-pry.noarch.rpm

I try to avoid gem and alike, cause more problems with versions and so 
on --- mostly because i think i do not now exactly what I'm doing with 
gem/bundle and simular things.


Grts

johan

On 12/26/2013 06:35 PM, Stuart Cracraft wrote:

Bizarre.

I downloaded pry-0.9.12.4.gem from rubygems.org and then:

  gem install pry

It gave:

ERROR: While executing gem ... (RangeError)
   integer 7516195309

Google has been unhelpful in ascertaining the path forward from the 
above error for the pry ide tryout


If you are aware of the above, let loose in response.

--Stuart


On Thursday, December 26, 2013 1:59:14 AM UTC-8, Johan De Wit wrote:

Hi Stuart,

Someone on the dev irc mentioned pry -> http://pryrepl.org/

I learned already a lot trying to write my first custom type and
provider

Grts

Johan



On 12/25/2013 12:21 AM, Stuart Cracraft wrote:
> Hi,
>
> Is there a plain-text visual debugger ide for Linux for Ruby anyone
> can mention?
>
> Stuart
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from
it, send
> an email to puppet-users...@googlegroups.com .
> To view this discussion on the web visit
>

https://groups.google.com/d/msgid/puppet-users/b15a63ee-164e-4bb6-bbe4-829c67a91655%40googlegroups.com

.

> For more options, visit https://groups.google.com/groups/opt_out
.


-- 
Johan De Wit


Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP006)
_

Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_


Next Events:
Puppet Advanced Training |
http://www.open-future.be/puppet-advanced-training-7-till-9th-january


Puppet Fundamentals Training |
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february


Subscribe to our newsletter | http://eepurl.com/BUG8H

--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/27aed7e3-2dfa-4a77-8025-f4982c47fefe%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52BD1D20.6030509%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: ruby visual debuggers/ide's for Linux

2013-12-26 Thread Johan De Wit

I use vim-puppet-lint and syntastic, they are in the

https://github.com/scrooloose/syntastic
http://puppet-lint.com/

As an example, here is my .vimrc file
" http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table
execute pathogen#infect()
set fo=tcq
set nocompatible
set modeline

syntax on

" Puppet-lint parameters
let g:syntastic_puppet_lint_arguments='--no-hard_tabs-check 
--no-2sp_soft_tabs-check --no-80chars-check'

" set default comment color to cyan instead of darkblue
" which is not very legible on a black background
highlight comment ctermfg=cyan

set tabstop=2
set expandtab
set softtabstop=2
set shiftwidth=2

set pastetoggle=

highlight LiteralTabs ctermbg=darkgreen guibg=darkgreen
match LiteralTabs /\s\  /
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
match ExtraWhitespace /\s\+$/

" Show me a ruler
set ruler

" Set up puppet manifest and spec options
au BufRead,BufNewFile *.pp
  \ set filetype=puppet
au BufRead,BufNewFile *_spec.rb
  \ nmap  :!rspec --color %

" Enable indentation matching for =>'s
filetype plugin indent on




On 12/26/2013 06:35 PM, Stuart Cracraft wrote:

Juan,

Where is this documented?

Stuart

On Thursday, December 26, 2013 3:35:23 AM UTC-8, JuanBrein wrote:

I would highly suggest you to use VIM+plugins

Powerful as any other graphical IDE plus you can run it in any
console plus run on any OS plus free :-)

On Tuesday, December 24, 2013 11:21:48 PM UTC, Stuart Cracraft wrote:

Hi,

Is there a plain-text visual debugger ide for Linux for Ruby
anyone can mention?

Stuart

--
You received this message because you are subscribed to the Google 
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5e1f1bf7-5077-4090-a030-dcab582039d3%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Advanced Training | 
http://www.open-future.be/puppet-advanced-training-7-till-9th-january
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52BD1E88.1080606%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.