Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit 4de02f6

Browse files
authored
Merge pull request #74 from fuze/master
Made the auth backend customizable with attributes
2 parents 79e371c + 5d58375 commit 4de02f6

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## In Development
44

5+
## 0.7.0
6+
7+
* Changed st2.conf template to handle different st2auth settings
58

69
## 0.6.0
710

attributes/config.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
auth_use_ssl: false,
1616
auth_debug: false,
1717
auth_enable: true,
18-
auth_standalone_file: '/etc/st2/htpasswd',
18+
auth_mode: 'standalone',
19+
auth_backend: 'flat_file',
20+
auth_backend_kwargs: { file_path: '/etc/st2/htpasswd' },
1921

2022
syslog_enabled: false,
2123
syslog_host: '127.0.0.1',

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'Apache-2.0'
55
description 'Installs/Configures stackstorm'
66
long_description 'Installs/Configures stackstorm'
7-
version '0.6.0'
7+
version '0.7.0'
88

99
supports 'ubuntu', '= 14.04'
1010
supports 'redhat', '~> 7.5'

templates/default/st2.conf.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ debug = <%= @auth_debug %>
5050
enable = <%= @auth_enable %>
5151
logging = /etc/st2/logging.auth.conf
5252

53-
mode = standalone
53+
mode = <%= @auth_mode %>
5454
# Note: Settings bellow are only used in "standalone" mode
55-
backend = flat_file
56-
backend_kwargs = {"file_path": "<%= @auth_standalone_file %>"}
55+
backend = <%= @auth_backend %>
56+
backend_kwargs = <%= Chef::JSONCompat.to_json(@auth_backend_kwargs) %>
5757

5858
# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/)
5959
api_url = <%= @api_url %>

0 commit comments

Comments
 (0)