Upgrading to 2.5.1 - storing projects in the database rather than the file system

438 views
Skip to first unread message

Evelyn Dibben

unread,
Jun 29, 2015, 3:58:16 PM6/29/15
to rundeck...@googlegroups.com
I upgraded rundeck via the rpms:

service rundeckd stop
yum install java-1.7.0 
rpm -Uvh http://repo.rundeck.org/latest.rpm 
yum install rundeck 

The doco says to:

Enable project DB storage:

You can configure Rundeck to use the Database by adding the following to rundeck-config.properties before starting it up:

rundeck.projectsStorageType=db

When importing previously created filesystem projects, the contents of these files are imported to the DB:

  • etc/project.properties
  • readme.md
  • motd.md

In addition, after importing, the project.properties file will be renamed to project.properties.imported.

I made the change to the rundeck-config.properties and started the service.  It doesn't look like the projects are imported - I'm confused by what I need to do next?   Anybody gone through this?

Greg Schueler

unread,
Jun 29, 2015, 4:59:09 PM6/29/15
to rundeck...@googlegroups.com
Hi Evelyn

When importing the projects, Rundeck will print some information in the service startup log saying, e.g. “Importing project XYZ…”  Afterwards, each imported project’s etc dir will contain a “project.properties.imported” instead of “project.properties"

Once complete, not much will change functionally, except that you won’t be able to modify the “project.properties” file that used to exist  disk and have the changes reflected in the application, you will need to modify the project config using the GUI.

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/aae76636-a84c-457d-aa03-d552ba192af8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Evelyn Dibben

unread,
Jun 29, 2015, 5:03:16 PM6/29/15
to rundeck...@googlegroups.com
OK, time for the stupid question.  How do I import a project?  The project already exists - will it break anything to import 'on top' of an existing project?

Greg Schueler

unread,
Jun 29, 2015, 5:45:38 PM6/29/15
to rundeck...@googlegroups.com
“import” here basically means: copy the configuration file contents (and readme/motd) into the DB. The default is to import all of the projects seen on the filesystem into the DB at startup after “rundeck.projectsStorageType=db” is set.  Then the list of projects and their configuration is now stored only in the database, rather than relying on the filesystem, and new projects have their configuration stored in the DB.

(The equivalent action to manually “import” a project: you simply create the project in the GUI, and then copy/paste the contents of the old project.properties into the GUI config editor.)

Once the projects are in the DB, your HA setup doesn’t have to keep the project.properties files on disk synced up, since the config is coming from the DB.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages