Attempting to Encrypt database.yml

For background: I have successfully installed the latest OBS appliance version(2.9.4).

What I am currently trying to do is encrypt the ruby on rails secrets.yml file, as per the following link: https://www.engineyard.com/blog/encrypted-rails-secrets-on-rails-5.1

I can successfully run the first command (rails secrets:setup), but the following command (rails secrets:edit) throws the following error: “uninitialized constant Bullet (NameError)”.

Any help would be greatly appreciated.

You shouldn’t just say that you’ve installed an appliance,
You should provide a link to the appliance so that there is no question what you’re working with.

The reference you provided even suggests that the method you’re trying to implement is being deprecated.
This means you have to double-check your version of Rails, and know that if you get this working it’ll not remain working for more than a short period of time unless you don’t update your Rails.

TSU

Sorry, I should’ve thought about that. The appliance that I’m using is available at the following link: http://download.opensuse.org/repositories/OBS:/Server:/2.9/images/iso/obs-server.x86_64.iso

I understand that the method has been deprecated in the newest version of rails, but I assumed that upgrading the appliance would cause the OBS web application to break. I should break the habit of assuming facts though, it always seems to bite me.

Is there a description about this appliance?
Noticed that you provided a link to the appliance’s ISO, but typically people don’t use the ISO, they download the virtual machine appropriate for their installed virtualization.
Otherwise, if they are going to use an ISO, I don’t know that there is any advantage over using the normal Install ISO.
I didn’t look in the ISO, but if you’re running it like a LiveCD, that’s your problem… By default, mounting a ISO is ReadOnly, so you can’t modify or write files to the ISO file system.

As for setting up Rails,
I generally recommend that anyone who posts describes how they decided to install Ruby,
There are many decisions to make which I outlined in a Wiki article I wrote awhile back…

https://en.opensuse.org/User:Tsu2/Install_Ruby

HTH,
TSU

There is not an appliance description that I have been able to find. Oh, I didn’t notice those already constructed virtual machine images. Maybe I should give them a try. I did install the iso, instead of attempting to run it like a virtual machine.

The appliance that I’ve been using has ruby and rails preinstalled, which is part of my confusion in this situation.