Questions tagged [ruby]

Ruby is a general-purpose object-oriented open-source scripting language. It sees a high degree of use in the configuration management space, and is popular for web development due to the high adoption of Ruby On Rails

Ruby is an object oriented programming language that has programmer productivity as one of its design goals. Most people are familiar with it these days as part of Ruby On Rails, a web application framework.

498 questions
1
vote
1 answer

How to get a static IP for an EC instance? Or, how to use

I am just setting our Rails app on Amazon AWS. We have 2 EC2 instances, one for the Rails app, the second one for Redis. And then Amazon RDS for MySQL. When I connect our Rails app with Redis, I need to set the Redis URL, which contains IP address.…
user984621
  • 135
  • 1
  • 1
  • 7
1
vote
1 answer

How do I run chef recipe from inside ruby code?

From the Rails app I need to provision, configure and manage servers on Amazon AWS. Some time ago I've been using chef-solo and knife to do that, but from the command line. Would that be possible to do the same from inside the code? Any pointers on…
misza222
  • 111
  • 2
1
vote
2 answers

How to puppetize gem install specific to puppet's ruby?

The Puppet Azure module requires specific gems to be installed. The directions https://github.com/puppetlabs/puppetlabs-azure show the following example: /opt/puppetlabs/puppet/bin/gem install azure azure_mgmt_compute azure_mgmt_storage…
Mike Marseglia
  • 913
  • 8
  • 18
1
vote
0 answers

Puppet device wildcard names for nodes?

I'm using Puppet's device management to mange some Cisco devices. Right now my device.conf looks like this: [someCity] type cisco url telnet://puppet:123456@10.123.1.1/ [someOtherCity] type cisco url…
red888
  • 4,183
  • 18
  • 64
  • 111
1
vote
0 answers

Ruby on Rails Debian best practice

I've seen in various places people using Ruby compiled from source through a cloned rbenv git repository, and then installing Rails through RubyGems to get the latest version. But, from what I know, this is not a best practice in Debian, and they…
gtbono
  • 237
  • 3
  • 8
1
vote
1 answer

Use Ruby in place of PHP in Apache2

So I know this is a possibility and I have found tutorials that work with older versions of Apache, but I can't find any updated ones. All I want to do is use .rb and .erb files just like you can already use .php files in Apache2. I prefer ruby for…
watzon
  • 111
  • 3
1
vote
3 answers

Chef 12.5 Custom Resources - Accessing Resources in Recipes

I am writing a cookbook that uses the Custom Resources present in Chef 12.5. I have a custom resource that uses a template resource and as such has a notifies that reloads the associated service. However the associated service is managed in the main…
kemra102
  • 211
  • 4
  • 12
1
vote
1 answer

chef: How do I increase the CommandTimout for Mixlib::ShellOut in a ruby block?

I'm trying to perform a database data load in a chef recipe on an Ubuntu 14.04 system with a Chef 11.10.4 based client. I'm doing the data load in a ruby block and here are the relevant portions of the error in the…
Peter M
  • 973
  • 2
  • 15
  • 27
1
vote
1 answer

Puppet - Custom Function - Statement - Error - "Must be the value of a statement..."

Seems simple enough... # /path/to/puppet/modules/custom/lib/puppet/parser/functions module Puppet::Parser::Functions newfunction(:release_check) do |args| raise(Puppet::ParseError, "Testing!") end end #…
Mike Purcell
  • 1,708
  • 7
  • 32
  • 54
1
vote
1 answer

Compilie ruby 1.8.6 with openssl 0.9.8

I'm trying to install ruby 1.8.6 on CentOS7 and successfully finished, but ruby cannot load openssl. My install steps are below. Install openssl 0.9.8 from source. wget http://www.openssl.org/source/openssl-0.9.8zb.tar.gz tar xzf…
DIGITALSQUAD
  • 249
  • 2
  • 3
  • 4
1
vote
1 answer

Create chef recipe by passing values dynamically, from properties file

I created a chef recipe which has the installation of a specific rpm mentioned in it. This rpm has a version number which needs to be loaded dynamically from a properties file (which is itself created dynamically). This chef recipe then needs to be…
Anuj Balan
  • 111
  • 4
1
vote
2 answers

Trouble Starting Snorby / Ruby dependency issue

I am trying to install Snorby on a CentOS 6.6 machine and keep getting an issue with ruby and my Gemfile. I believe I either have to edit my Gemfile or it has something to do with an installation path. Any help would be much appreciated. bundle…
rubyhelp
  • 11
  • 2
1
vote
0 answers

Getting 403 Forbidden w. Referer on Nginx+Passenger

We're using Nginx 1.6.2 + Passenger 5.0.6 and have a vhost defined with PHP-FPM which serves a MODx installation. Only one location /sinatraapp serves a Sinatra App using Ruby 2.1.1. The setup is below and works pretty well but we encountered ONE…
1
vote
1 answer

How do I get puppet master to listen on IPv6?

So I have a RHEL 7 server on an internal network with IPv6, and I am able to SSH into it via IPv6 and it is also serving DNS to other hosts over IPv6. I have noticed that puppet master bind to IPv4 only: $ netstat -n -l | grep 8140 tcp 0 …
Machoke
  • 115
  • 8
1
vote
0 answers

ubuntu 12.04 ruby1.8 depends on libreadline5 which does not exist any more?

I just built a new 12.04 ubuntu box and tried to install puppet package. This failed because it could not load ruby1.8. After some fiddling around I tracked the issue down to the fact that the libreadline5 package is no longer…
Russell Fulton
  • 201
  • 1
  • 3
  • 17