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

learn more… | top users | synonyms

0
votes
0answers
12 views

running a command on multiple remote servers with ruby

I have multiple servers attached to an AWS ELB or just multiple servers with the same TAG:name 'XXXX' I would like to be able to run a command on all of the servers in parallel. first thing that ...
-1
votes
0answers
10 views

puppet suse12 ruby error

I am trying to execute puppet in suse12 but I am receiving following error: puppet apply --modulepath=/tmp/puppet/modules/ /tmp/puppet/manifest/site.pp --color true ...
1
vote
1answer
23 views

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 ...
0
votes
1answer
54 views

EC2 Public DNS not working with HTTPS - Elastic Beanstalk URL is working

I have completely ran out of ideas to fix this issue. I've gone through just about every given solution to similar issues and nothing has worked successfully. I've successfully set up my Ruby on ...
1
vote
0answers
6 views

How to configure Monit for use with Puma Ruby Web Server?

I am getting started with Monit and don't have a lot of systems knowledge. I have a Ruby app running on Puma. I want to use Monit to automatically restart Puma if it ever dies. I'm currently using the ...
0
votes
1answer
43 views

Unicorn displaying Rack errors uninitialized constant Rack::Lint::REQUEST_METHOD

I've attempted to install Unicorn + Nginx on Ubuntu 14.04. Whenever the site gets accessed (via localhost:8080 or via Nginx) it just returns a blank 500 error. The error log gives me the following: ...
1
vote
0answers
12 views

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 ...
0
votes
1answer
54 views

ruby complains about a package being not installed which actually is installed

This question might be very unprofessional but I'm very not into Ruby and I have no clue where to start.. I used to run Jekyll which runs asciidoctor to render html pages. After a Fedora update ...
0
votes
0answers
20 views

Can I get Vsphere cluster networks (and thier details) using Ruby?

(On linux) I am looking for a way to get my VMware Vsphere networks details using a Ruby script. I tried to find a way using rlane/rbvmomi on [1]: https://github.com/rlane/rbvmomi but I could nt ...
0
votes
0answers
12 views

What could cause Ruby's free heap slots to rapidly increase?

I'm diagnosing why our Rails servers seem to leak memory. In looking at New Relic today, I noticed that "Free heap slots" of our Ruby VMs seems to jump from almost nothing up to the baseline level of ...
0
votes
1answer
53 views

gem install does not rebuild all instances of a gem

user@sv1 [/home/user/]# env|grep GEM GEM_HOME=/home/user/.gems/2.1 GEM_PATH=/home/user/.gems/2.1 user@sv1 [/home/user/]# gem install mysql2 Building native extensions. This could take a while... ...
0
votes
0answers
32 views

Slow insert speed to Mongodb utilizing Mongoid ORM

I have a production platform utilizing Sidekiq, Mongoid and a replica set (3 nodes). This has been operational for about 6 months and running very smoothly. All jobs were processing in usually less ...
0
votes
0answers
161 views

Apache 2.4 & Phusion Passenger generating 403 Error

I'm trying to setup a Rails application (Project Fedena) on the following Server configuration. I am using the virtual host configuration below. I get a 403 when I visit the IP/Domain. There's only ...
0
votes
1answer
175 views

Starting Rails App with Phusion Passenger Standalone?

I am deploying a Rails application ( Project Fedena ) to a VPS at Digital Ocean. I can use either of mongrel_rails start and ruby script/server to launch my app with no problem. It binds to port :3000 ...
0
votes
1answer
79 views

puppet defined type and creating multiple templates from 1 .erb file

I need to find a solution to this problem that I've come across. I have a hash (it's supposed to be overriden as a smart class parameter later on) that I am iterating trough in my template.erb to ...
1
vote
1answer
55 views

Puppet: How to write a proper “condition and condition” statement?

I wrote a "Message of the day" Puppet module which affects all proxy servers in my company. Within the template file, I have the following "if statement": <% if @hostname !~ /^haproxy\d+/ and ...
0
votes
0answers
107 views

mongodb authentication not working in puppet

I used the same connectionstring in the terminal and it's working ok. But from Ruby I get error output when vagrant provision runs mongo admin -u 'vaga' -p 'vaga' --authenticationDatabase admin ...
0
votes
1answer
339 views

Connection refused while setting up Chef Server 11 on Ubuntu 14

I just spun up an Ubuntu 14.04 VM on HPCloud.com to practice Chef. Following this turial I setup a DNS on HPCloud, as well as set the hostname in /etc/hosts to chef-server.mydomain.com When ...
0
votes
1answer
189 views

Ruby/Chef include_recipe and know variables from parent file?

I am trying to use a local variable in an included file. I get the error that's it's not defined. I am not sure a way to do this, do you? I have a recipe folder with: recipes/ development.rb ...
1
vote
1answer
298 views

Installing rubygems after manually installing ruby 1.8

I have successfully installed Ruby 1.8.7 on Ubuntu 14.04 by downloading the package, building locally and installing. The command ruby -v, outputs Ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-Linux] ...
0
votes
0answers
27 views

How to skip override a specific value in Chef template

Chef template is getting name and value from attributes: { "name" : "email.username", "value" : "<%= node.conf[:email_username] %>" }, { "name" : "email.password", "value" : "<%= ...
0
votes
0answers
37 views

Can I use serverspec on a remote system without requiring root or sudo access on that system?

Main thing I am trying to do is to run the tests from an unprivileged user (a gui runs these tests) without giving away the keys to the castle if this user gets compromised. Most of the tests ...
0
votes
1answer
24 views

Can Accept-Ranges Be Enabled On Ruby Cartridge

I'm running Padrino on a Ruby cartridge. I have an application that serves a somewhat large mp3 file to be consumed by an in-browser player, so I need to send a Range Request. If I don't, the file ...
0
votes
0answers
12 views

Running Passenger with apache in a subfolder

I got a Testserver on which I wanna run an ruby application with passenger and I wanna access this application by subfolder. So I added this to my default apache config: <Directory ...
0
votes
0answers
119 views

Installed Ruby gems not in path on CentOS 7

After installing a gem via gem install --no-ri --no-rdoc gemname while sudo'ed via sudo -s it is not showing up in my path. If I drop privledges and go back to my user or if I sudo su - it shows up ...
0
votes
1answer
66 views

mcollective - different ruby path/environment

How do I tell the mcollective server to use a different ruby path, or otherwise control the ruby environment? I'm running on Centos 6.5, and have installed the ruby193 collection onto the servers and ...
0
votes
0answers
28 views

Using Monit to reload (without changing PID)

I'm able to start and stop a process configured with monit (through Upstart) with no issue. However, restarts/reloads of this process should be gentle, with no downtime/PID changes. The process ...
0
votes
1answer
36 views

How can I use a rubygem in a puppet provider on debian stable?

I'm trying to use a puppet provider which requires a ruby gem. It's being run on Debian stable (wheezy), but I get the following error: err: Could not run Puppet configuration client: no such file ...
0
votes
0answers
219 views

Gem installation on vanilla ubuntu fails - EACCESS

I'm trying to install the Middleman gem on a completely generic installation of Ubuntu Trusty (i386). Here's my console input/output: vagrant@vagrant-ubuntu-trusty-32:~/rj$ which ruby /usr/bin/ruby ...
0
votes
2answers
411 views

Running startup shell script for ruby application as other user (not root)

I have installed RVM using 'user01' on Ubuntu 14.04 and user01 can start my rails application as expected. I, however, want to start this application following system start-up. I am trying to use the ...
0
votes
0answers
13 views

How to make AppArmor profile for Ruby script

i created apparmor profile by following way: aa-genprof test.rb above command successfully created apparmor profile for that test.rb, Now i wants that this test.rb file should not create anything ...
0
votes
2answers
547 views

How to handle Docker memory management?

Update: Rather than spinning up my resque worker through the docker command (to test), I instead killed all my containers with fig kill, added it to the fig configuration, and ran fig up. This worked ...
1
vote
1answer
73 views

Puppet and windowsfeature - Boolean Error

I'm new to Puppet Enterprise, but trying to learn how to deploy custom class files to Windows servers. I am attempting to use the opentable/windowsfeature module, but I'm getting an error when my ...
0
votes
0answers
39 views

Benchmark network (internet) connection on server

I have a dedicated ubuntu server I rentet. Now I'm running a lot of ruby background processing on that server, that - among other things - does a lot of get requests to very small images (about 10kb) ...
1
vote
1answer
450 views

Chef/Ruby: use “each do” block variable with node attribute

Chef 11.10.4 environment running in AWS Opsworks. I can't figure out how to pass the value of the "each do" block variable, "lyr," below, with the node attribute node['aws-tag'][#{lyr}]? The code ...
1
vote
0answers
75 views

EC2 Bad Gateway with torquebox and nginx

I set up an EC2 instance with torquebox and nginx. Torquebox starts without any errors, but I cannot access it at port 8080. Not even if I add a VPC rule to open that port. I get Gateway timed out if ...
0
votes
1answer
218 views

How to resolve the chef error “can not find a plugin for dependency linux::network”?

There are no google hits for this error message. I am attempting to run chef-client on a server that has run it successfully in the past. I do not know what changed to produce this error. Here is the ...
0
votes
1answer
99 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
0
votes
1answer
25 views

Why is the ruby install so slow

The recommended way to install ruby is through rvm and rbenv. Why are these methods so slow? I have seen packages 10x times larger installing in much quicker time.
0
votes
0answers
71 views

Import existing git repositories into Gitorious

I am trying to find out how to import existing git repositories into Gitorious CE. I followed the instructions from http://getgitorious.com/install-gitorious to install the server on a CentOS 6.5 box. ...
0
votes
1answer
140 views

PHP/Ruby captive portal first domain seems cached

I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access. When a user ...
0
votes
1answer
111 views

Use 'commands' ruby puppet function outside of puppet provider

to allow me to easier debug my providers, I sometimes wanna use 'command' in my own ruby code. Trying to figure out how is problem. This is how I use it inside a provider: commands :wget => ...
1
vote
0answers
113 views

Rails json Request are slow

I am developing an angularjs Application with Rails as Backend. It is hosted by DigitalOccean the smallest Server. On my Production System its only me testing right now. The problem is the requests ...
0
votes
1answer
87 views

Puppet master receiving a YAML error after upgrade to 2.7.25-2

Our puppetmaster server was upgraded to the latest available on RHEL6 (puppet-2.7.25-2.el6.noarch). We are now receiving errors such as this on the master: Aug 26 11:36:59 master1 ...
0
votes
0answers
253 views

Open Source Chef Server can't upload cookbook

I just setup the open source chef server on an Ubuntu 12.04 EC2 instance, I've setup my webui and am able to get responses from my knife commands ie: knife node list, knife client list, knife user ...
0
votes
2answers
784 views

Puppet template erb if variable is not defined keep default

I am trying to learn puppet and I can not understand how I can setup template erb to choose default value if variable is not defined in common.yaml or in node.yaml. This is what I have tried: 1) # we ...
0
votes
1answer
211 views

Configure server for gitlab [closed]

I have a server where VestaCP installed (apache2 is back-end, nginx is front-end). Also, I successfully installed ruby, gitlab shell and gitlab. When I type sudo -u git -H bundle exec rake ...
0
votes
0answers
127 views

Linux server backup to Amazon S3 using SSL

I have Linux box CentOS 6.5 and i want to backup daily files like SQL dumps and config files to Amazon S3 I have installed Ruby and S3Sync. But the problem when running the s3sync with these ...
2
votes
1answer
229 views

EC2 : How to assign multiple elastic IPs to a single network interface via SDK

Would anyone know how to associate multiple Elastic IPs to a single instance via the Amazon SDK ? In Ruby, I've tried to use both the aws-sdk and fog gems, which work fine for a single address, but ...
0
votes
3answers
877 views

Foreman installation on amazon ec2 instance

Hi there and thank you for reading, I am currently in the process of setting up a puppet service for our ec2 instances and decided to give foreman a try (node certificate management and automatic ...