This repository was archived by the owner on Jul 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 auth_enable : true ,
1818 auth_mode : 'standalone' ,
1919 auth_backend : 'flat_file' ,
20- auth_backend_kwargs : { file_path : '/etc/st2/htpasswd' } ,
20+ auth_backend_kwargs : { ' file_path' => '/etc/st2/htpasswd' } ,
2121
2222 syslog_enabled : false ,
2323 syslog_host : '127.0.0.1' ,
Original file line number Diff line number Diff line change 1111include_recipe 'stackstorm::_services'
1212
1313# Generate username & password for htpasswd flat-file authentication
14- htpasswd ':add credentials to htpasswd file' do
15- file node [ 'stackstorm' ] [ 'config' ] [ 'auth_standalone_file' ]
16- user node [ 'stackstorm' ] [ 'username' ]
17- password node [ 'stackstorm' ] [ 'password' ]
18- action :add
14+ if node [ 'stackstorm' ] [ 'config' ] [ 'auth_backend' ] == 'flat_file'
15+ htpasswd ':add credentials to htpasswd file' do
16+ file node [ 'stackstorm' ] [ 'config' ] [ 'auth_backend_kwargs' ] [ 'file_path' ]
17+ user node [ 'stackstorm' ] [ 'username' ]
18+ password node [ 'stackstorm' ] [ 'password' ]
19+ action :add
20+ end
1921end
Original file line number Diff line number Diff line change 168168 'auth_use_ssl' => false ,
169169 'auth_debug' => false ,
170170 'auth_enable' => true ,
171- 'auth_standalone_file' => '/etc/st2/htpasswd' ,
171+ 'auth_mode' => 'standalone' ,
172+ 'auth_backend' => 'flat_file' ,
173+ 'auth_backend_kwargs' => { 'file_path' => '/etc/st2/htpasswd' } ,
172174
173175 'syslog_enabled' => false ,
174176 'syslog_host' => '127.0.0.1' ,
You can’t perform that action at this time.
0 commit comments