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
0
votes
2 answers

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 testing.rb config.rb development.rb username…
JREAM
  • 163
  • 1
  • 1
  • 9
0
votes
1 answer

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 stops playing and basically craps out until I make a…
Dave Munger
  • 141
  • 3
0
votes
0 answers

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 fine. Any idea what needs to be changed so that I…
GeneBean
  • 323
  • 1
  • 4
  • 11
0
votes
1 answer

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 to load -- zabbixapi The problem seems to be that…
lucas
  • 200
  • 3
  • 10
0
votes
1 answer

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 vagrant@vagrant-ubuntu-trusty-32:~/rj$ ruby -v ruby…
0
votes
2 answers

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 following to achieve…
Ralph
  • 862
  • 11
  • 26
0
votes
1 answer

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 most verbose output I can think to include: >…
Sparr
  • 770
  • 1
  • 5
  • 14
0
votes
1 answer

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 is a permissions problem or someone is listening…
Sempus
  • 342
  • 1
  • 2
  • 11
0
votes
0 answers

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. All the google results I can find are from 2010…
zli
  • 1
0
votes
1 answer

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 visits a page when visiting for example stack overflow.…
Dany
  • 133
  • 8
0
votes
1 answer

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 => '/usr/bin/wget', :cp => '/bin/cp' Later,…
Jakov Sosic
  • 5,267
  • 4
  • 24
  • 35
0
votes
1 answer

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 puppet-master[5555]: Could not intern from yaml: instance of IO…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
0
votes
0 answers

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 list, etc... I'm able to update roles, databags,…
veilig
  • 161
  • 6
0
votes
2 answers

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 don't need to run the embedded HTTP server…
cr0c
  • 958
  • 4
  • 16
  • 35
0
votes
1 answer

Configure server for gitlab

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 gitlab:env:info RAILS_ENV=production Everything shows…
lazyd3v
  • 121
  • 2