rundeck-plugins / rundeck-s3-log-plugin

Store execution logs in Amazon S3 buckets
Apache License 2.0
32 stars 26 forks source link

Rundeck not using plugin #18

Closed johnseekins closed 7 years ago

johnseekins commented 7 years ago

Similar to #14 , I can't seem to get Rundeck to actually use this plugin.

It shows up as a plugin, and the 'Log Storage' section exists. But 'Log Storage' insists that there is nothing to upload, even after a job runs.

I also see nothing in the logs (with loglevel.default=DEBUG) indicating the plugin is running.

Any advice?

gschueler commented 7 years ago

what is your configuration?

johnseekins commented 7 years ago

Mysteriously, it is working now. I'm wondering if I had failed to update the config some how.

But... framework.properties

# framework.properties -
#

# ----------------------------------------------------------------
# Rundeck server connection information
# ----------------------------------------------------------------

framework.server.name = localhost
framework.server.hostname = localhost
framework.server.port = 4443
framework.server.url = https://localhost:4443

# ----------------------------------------------------------------
# Installation locations
# ----------------------------------------------------------------

rdeck.base=/var/lib/rundeck

framework.projects.dir=/var/rundeck/projects
framework.etc.dir=/etc/rundeck
framework.var.dir=/var/lib/rundeck/var
framework.tmp.dir=/var/lib/rundeck/var/tmp
framework.logs.dir=/var/lib/rundeck/logs
framework.libext.dir=/var/lib/rundeck/libext
rundeck.tokens.file=/etc/rundeck/tokens.properties

# ----------------------------------------------------------------
# SSH defaults for node executor and file copier
# ----------------------------------------------------------------

framework.ssh.keypath = /var/lib/rundeck/.ssh/id_rsa
framework.ssh.user = dm_deploy

# ssh connection timeout after a specified number of milliseconds.
# "0" value means wait forever.
framework.ssh.timeout = 0

# ----------------------------------------------------------------
# Auto generated server UUID: f776967c-13ef-490c-af85-29f46e3a8f39
# ----------------------------------------------------------------
rundeck.server.uuid = f776967c-13ef-490c-af85-29f46e3a8f39

framework.plugin.ExecutionFileStorage.org.rundeck.amazon-s3.bucket=<bucket>
framework.plugin.Notification.JIRA.url=<jira url>
framework.plugin.Notification.JIRA.login=rundeck_user
framework.plugin.Notification.JIRA.password=<password>

rundeck-config.properties

#loglevel.default is the default log level for jobs: ERROR,WARN,INFO,VERBOSE,DEBUG
loglevel.default=DEBUG
rdeck.base=/var/lib/rundeck

#rss.enabled if set to true enables RSS feeds that are public (non-authenticated)
rss.enabled=false
# change hostname here
grails.serverURL=<external url>

dataSource.url=<url>
dataSource.username=rundeck
dataSource.password=<password>

# Key storage encryption
rundeck.storage.converter.1.type=jasypt-encryption
rundeck.storage.converter.1.path=/
rundeck.storage.converter.1.config.password=<password>

rundeck.execution.logs.fileStoragePlugin=org.rundeck.amazon-s3
rundeck.storage.provider.1.type=db
rundeck.storage.provider.1.path=/
rundeck.projectsStorageType=db

It seems that once I added the JIRA integration settings, the s3 log shipper started working. This makes very little sense to me.

johnseekins commented 7 years ago

Don't know why I didn't close this yesterday. It is working. Although I don't entirely understand why.