change key storage path

262 views
Skip to first unread message

Stas Rudenko

unread,
Oct 27, 2015, 3:45:35 PM10/27/15
to rundeck-discuss
Greetings, 

Does somebody know how to change default key storage path (file provider)?

I found from doc howto define a new key storage provider with different storage path. Something like this:
rundeck.storage.provider.[index].config.baseDir=value

but so far I'm lost how to change the default one 


Greg Schueler

unread,
Oct 27, 2015, 3:52:55 PM10/27/15
to rundeck...@googlegroups.com
Hi,

Rundeck has an internal "base" provider at storage path "/" using the filesystem.
To replace it, simply define a new provider at the first index (1) which overrides the root of the tree (/)

rundeck.storage.provider.1.config.baseDir=/new/path


--
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/2775bc80-c76e-4353-8211-660e70b2c653%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Greg Schueler

unread,
Oct 27, 2015, 3:55:27 PM10/27/15
to rundeck...@googlegroups.com
(sorry, wasn't complete on the configuration yet)


rundeck.storage.provider.1.config.baseDir=/new/path
rundeck.storage.provider.1.path=/
rundeck.storage.provider.1.type=file

Stas Rudenko

unread,
Oct 27, 2015, 5:40:54 PM10/27/15
to rundeck-discuss
thank you Greg!

Stas Rudenko

unread,
Oct 27, 2015, 6:33:50 PM10/27/15
to rundeck-discuss
one more quick question.. I'm using groovy instead of properties file.

so far following is works well
rundeck.storage.provider."1".config.baseDir=/rundeck/storage
rundeck.storage.provider."1".path=/
rundeck.storage.provider."1".type=file

I was trying to rewrite options above to something with "groovy" style
rundeck.storage.provider {
  [
    config.baseDir = "/rundeck/storage"
    path = "/"
    type = "file"
  ]
}
or
rundeck {
  storage {
    provider {
      [
        {
          config {
            baseDir = "/rundeck/storage"
          }
          path = "/"
          type = "file"
        }
      ]
    }
  }
}

and that doesn't work, any hint what I'm doing wrong?

Thanks 

Greg Schueler

unread,
Oct 27, 2015, 7:09:14 PM10/27/15
to rundeck...@googlegroups.com
Hi Stas,

The config data gets flattened before the storage plugin loader sees it, so you might need something like this:

rundeck.storage.provider{
'1' {
}
--
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.

Stas Rudenko

unread,
Oct 27, 2015, 8:04:38 PM10/27/15
to rundeck-discuss
got it, thanks!
Reply all
Reply to author
Forward
0 new messages