Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Jun 10, 2024
1 parent 0cb51ba commit 2690f6e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
16 changes: 8 additions & 8 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,14 @@
action :nothing
end

template "/etc/nginx/conf.d/webui.conf" do
source "webui.conf.erb"
owner "nginx"
group "nginx"
mode 0644
cookbook "webui"
variables(:webui_hosts => webui_hosts, :webui_port => webui_port, :cdomain => cdomain)
notifies :restart, "service[nginx]"
template '/etc/nginx/conf.d/webui.conf' do
source 'webui.conf.erb'
owner 'nginx'
group 'nginx'
mode '644'
cookbook 'webui'
variables(webui_hosts: webui_hosts, webui_port: webui_port, cdomain: cdomain)
notifies :restart, 'service[nginx]'
end

template '/etc/nginx/conf.d/redirect.conf' do
Expand Down
22 changes: 11 additions & 11 deletions resources/resources/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
actions :add, :remove, :register, :deregister, :configure_db, :configure_modules, :configure_rsa, :configure_certs, :add_webui_conf_nginx
default_action :add

attribute :user, :kind_of => String, :default => "webui"
attribute :group, :kind_of => String, :default => "webui"
attribute :port, :kind_of => Integer, :default => 8001
attribute :hosts, :kind_of => Array, :default => ["localhost"]
attribute :hostname, :kind_of => String
attribute :cdomain, :kind_of => String, :default => "redborder.cluster"
attribute :web_dir, :kind_of => String, :default => "/var/www/rb-rails"
attribute :memory_kb, :kind_of => Integer
attribute :elasticache_hosts, :kind_of => Object
attribute :zk_hosts, :kind_of => String
attribute :s3_local_storage, :kind_of => String, :default => "minio"
attribute :user, kind_of: String, default: 'webui'
attribute :group, kind_of: String, default: 'webui'
attribute :port, kind_of: Integer, default: 8001
attribute :hosts, kind_of: Array, default: ['localhost']
attribute :hostname, kind_of: String
attribute :cdomain, kind_of: String, default: 'redborder.cluster'
attribute :web_dir, kind_of: String, default: '/var/www/rb-rails'
attribute :memory_kb, kind_of: Integer
attribute :elasticache_hosts, kind_of: Object
attribute :zk_hosts, kind_of: String
attribute :s3_local_storage, kind_of: String, default: 'minio'

0 comments on commit 2690f6e

Please sign in to comment.