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
3
votes
1 answer

Is there a Ruby/ERB cheat sheet for puppet users not familiar with Ruby in general?

I'm still getting to grips with puppet and starting to mess around with templating, which is based on Ruby's ERB system. I am not familiar with Ruby in general, does anyone know of a cheat sheet for ERB or will I need to get my hands dirty and learn…
ThatGraemeGuy
  • 15,473
  • 12
  • 53
  • 79
3
votes
3 answers

Installing Redmine on an NSlu2-Linux Device (QNAP)

I would like to run redmine on my NSlu2 NAS Server (QNAP) with an arm processor. I installed ipkg and so on everything runs well. Trying to install redmine I need to install ruby-on-rails. The problem is that the my repositories install ruby version…
ovanes
  • 115
  • 1
  • 3
  • 11
2
votes
0 answers

Deploying a c-compiled ruby gem with puppet module

I have a type/provider module that depends on a c-compiled gem. What is the best way to package this up and deploy to the users? Is the SOP to install the gem as a package (using gem provider) first, then I can make use of the module? Or is there a…
destructo
  • 21
  • 1
2
votes
2 answers

AWS CloudFormation: Internal Failure. Rollback requested by user

I am creating a stack via the AWS Ruby SDK v3 and it is failing with an internal error. After a long period of time (30-40 minutes) it fails and rolls back with an internal failure. No resources show up and there are no other events. 24 May 2019…
hellomynameisjoel
  • 2,172
  • 2
  • 18
  • 23
2
votes
1 answer

TCP connections between docker containers timeout after ~10000 connections

I have 2 containers defined in a docker-compose.yml file, and am using them to run some rspec tests in a CI pipeline - the first container executes the tests, the second is an nginx container that is configured to perform redirects for many…
aweraw
  • 73
  • 1
  • 8
2
votes
1 answer

AWS Elastic Beanstalk - Socket failure on Puma server when more than 300 connections at a given time

I've been dealing with an, arguably, strange issue on a AWS Elastic Beanstalk environment. I'm getting the following nginx error when there are more than 300 connections on a single instance at a given time: 2018/03/23 20:56:53 [error] 5431#0:…
2
votes
4 answers

How do I cleanly remove ruby 1.8.7 from CentOS 5?

How can I cleanly remove my ruby version 1.8.7 from CentOS 5? I installed it by downloading the source code and performed a make.
Yong
2
votes
2 answers

App Engine Ruby flex environment app.yaml is ignoring env_variables RAILS_ENV

We are using GAE with Ruby flexible environment, and we're trying to deploy a rails app with staging configurations (i.e. RAILS_ENV=staging). According to https://cloud.google.com/appengine/docs/flexible/ruby/configuring-your-app-with-app-yaml we…
2
votes
0 answers

Advice wanted: Docker Infastructure for the newbie, Flynn, Dokku and Deis or just plain docker?

To give some background we are a development Agency, mostly using Ruby/Rails to develop complex data driven web applications. These applications usually make use of various services such as a database, caching layer, full text indexing, etc... We…
Paul Carey
  • 29
  • 1
2
votes
0 answers

Custom gems in Puppet Provider

I am running Puppet 3.7 and I have the following issue: Installed the nokogiri gem on the agents with pe_gem. Wrote a custom provider that does require 'nokogiri' at the top. The Puppet run "sometimes" fails with "Unable to load 'nokogiri'" error…
Florin Asăvoaie
  • 7,057
  • 23
  • 35
2
votes
2 answers

How to fix conflict between diferent gem dependencies

Let's see if someone can help me with this, I have no idea what I'm doing. The server is a debian 8.4 , fully updated. And I also updated gems with 'gem update', all the posible errors and warnings have been fixed. I'm installing…
Marc Riera
  • 1,637
  • 4
  • 23
  • 38
2
votes
0 answers

Nginx Using KiB of shared memory for push module in

I'm setup nginx with passenger on a ubuntu 14.04 and the nginx is throwing 403 Forbidden error I checked the permissions and it is all ok. I checked the nginx conf and it seems ok user root; worker_processes 1; error_log logs/error.log; events…
Daniel
  • 21
  • 1
  • 2
2
votes
1 answer

Is it really recommended to build Ruby from source on production servers?

I've seen all over the place people using RVM/rbenv to install the most updated version of Ruby on Linux. On development, I understand that it may be OK to do this, but I can't understand why would I do this on a production server instead of using…
gtbono
  • 237
  • 3
  • 8
2
votes
2 answers

Setting a MAC address from file for a VM

I'm not sure if this is entirely possible so thought it was worth asking. I would like to use Vagrant to allow users to spin up a VM when needed. However, on our network devices must be registered via their MAC address. Creating a pool of addresses…
Matt John
  • 33
  • 3
2
votes
1 answer

Apache passenger setup - Multiple projects under same domain

I want to setup different projects under same domain with different ruby version for each app. Eg: example1.com is a main app which runs on Ruby 1.8.7 example1.com/tasks is another app which runs on Ruby 1.9.2 I tried some of the setup in apache2…
Lohith MV
  • 121
  • 3