Skip to content

Commit

Permalink
Add template config file that include license release settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Apr 23, 2024
1 parent 96cfe34 commit a813ad5
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 25 deletions.
50 changes: 34 additions & 16 deletions src/config/config-gen-api-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,31 +132,49 @@ Butler:
# Settings for monitoring Qlik Sense licenses
qlikSenseLicense:
licenseMonitor:
enable: true
frequency: every 5 minutes
enable: false
frequency: every 6 hours # https://bunkat.github.io/later/parsers.html#text
destination:
influxDb: # Send service alerts to InfluxDB
influxDb: # Store license data in InfluxDB
enable: true
tag:
static: # Static attributes/dimensions to attach to the data sent to New Relic.
static: # Static attributes/tags to attach to the data sent to InflixDB
# - name: foo
# value: bar
licenseRelease:
enable: false
# frequency: every 3 hours
frequency: every 5 minutes
neverReleaseUsers:
# - userDir: 'INTERNAL'
# userId: 'sa_repository'
# - userDir: 'INTERNAL'
# userId: 'sa_api'
enable: false # true/false. If true, Butler will release unused licenses according to settings below
dryRun: true # true/false. If true, Butler will not actually release any licenses, just log what it would have done.
frequency: every 6 hours # https://bunkat.github.io/later/parsers.html#text
neverRelease: # Various ways of defining which users should never have their licenses released
user: # Users who should never have their licenses released
# - userDir: 'INTERNAL'
# userId: 'sa_repository'
# - userDir: 'INTERNAL'
# userId: 'sa_api'
# - userDir: 'USERDIR'
# userId: 'qs_admin_account'
tag: # Users with these tags will never have their licenses released
# - License do not release
# - some other tag
customProperty: # Users with these custom properties will never have their licenses released
# - name: LicenseManage
# value: do-not-release
userDirectory: # List of user directories whose users should never have their licenses released
# - INTERNAL
# - ADMIN
inactive: Ignore # Ignore/Yes/No. The value is case insensitive
# No = Don't release licenses for users marked as "Inactive=No" in the QMC
# Yes = Don't release licenses for users marked as "Inactive=Yes" in the QMC
# Ignore = Disregard this setting
blocked: Ignore # Ignore/Yes/No, No = Don't release licenses for users marked as "Blocked=No" in the QMC
removedExternally: ignore # Ignore/Yes/No, No = Don't release licenses for users marked as "Removed externally=No" in the QMC
licenseType: # License types to monitor and release
analyzer:
enable: true
releaseThresholdDays: 5
enable: true # Monitor and release Analyzer licenses
releaseThresholdDays: 30 # Number of days a license can be unused before it is released
professional:
enable: true
releaseThresholdDays: 5
enable: true # Monitor and release Professional licenses
releaseThresholdDays: 30 # Number of days a license can be unused before it is released
destination:
influxDb: # Store info about released licenses in InfluxDB
enable: true
Expand Down
35 changes: 26 additions & 9 deletions src/config/production_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Butler:
# Settings for monitoring Qlik Sense licenses
qlikSenseLicense:
licenseMonitor:
enable: true
enable: false
frequency: every 6 hours # https://bunkat.github.io/later/parsers.html#text
destination:
influxDb: # Store license data in InfluxDB
Expand All @@ -149,15 +149,32 @@ Butler:
- name: foo
value: bar
licenseRelease:
enable: true
enable: false # true/false. If true, Butler will release unused licenses according to settings below
dryRun: true # true/false. If true, Butler will not actually release any licenses, just log what it would have done.
frequency: every 6 hours # https://bunkat.github.io/later/parsers.html#text
neverReleaseUsers: # Users that should never have their license released
- userDir: 'INTERNAL'
userId: 'sa_repository'
- userDir: 'INTERNAL'
userId: 'sa_api'
- userDir: 'USERDIR'
userId: 'qs_admin_account'
neverRelease: # Various ways of defining which users should never have their licenses released
user: # Users who should never have their licenses released
- userDir: 'INTERNAL'
userId: 'sa_repository'
- userDir: 'INTERNAL'
userId: 'sa_api'
- userDir: 'USERDIR'
userId: 'qs_admin_account'
tag: # Users with these tags will never have their licenses released
- License do not release
- some other tag
customProperty: # Users with these custom properties will never have their licenses released
- name: LicenseManage
value: do-not-release
userDirectory: # List of user directories whose users should never have their licenses released
- INTERNAL
- ADMIN
inactive: Ignore # Ignore/Yes/No. The value is case insensitive
# No = Don't release licenses for users marked as "Inactive=No" in the QMC
# Yes = Don't release licenses for users marked as "Inactive=Yes" in the QMC
# Ignore = Disregard this setting
blocked: Ignore # Ignore/Yes/No, No = Don't release licenses for users marked as "Blocked=No" in the QMC
removedExternally: ignore # Ignore/Yes/No, No = Don't release licenses for users marked as "Removed externally=No" in the QMC
licenseType: # License types to monitor and release
analyzer:
enable: true # Monitor and release Analyzer licenses
Expand Down

0 comments on commit a813ad5

Please sign in to comment.