Skip to content

Commit

Permalink
Merge pull request #52 from redBorder/development
Browse files Browse the repository at this point in the history
Release 2.0.0
  • Loading branch information
manegron authored Oct 18, 2024
2 parents 83823cb + 102777b commit 2c2174c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
cookbook-rb-proxy CHANGELOG
===============

## 2.0.0

- Miguel Negron
- [6e7bc6a] Add sudoers config

## 1.0.1

- Miguel Negrón
Expand Down
2 changes: 1 addition & 1 deletion resources/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'git@redborder.com'
license 'AGPL-3.0'
description 'Installs/Configures redborder proxy'
version '1.0.1'
version '2.0.0'

depends 'rb-common'
depends 'rb-selinux'
Expand Down
9 changes: 9 additions & 0 deletions resources/recipes/configure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,12 @@
# mode 'proxy'
# action (node['redborder']['services']['radiusd'] ? [:config_common] : [:remove])
# end

template '/etc/sudoers.d/redBorder' do
source 'redBorder.erb'
cookbook 'rb-proxy'
owner 'root'
group 'root'
mode '0440'
retries 2
end
18 changes: 18 additions & 0 deletions resources/templates/default/redBorder.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<%####################################################################### %>
<%# Copyright (c) 2024 ENEO Tecnología S.L. %>
<%# This file is part of redBorder. %>
<%# redBorder is free software: you can redistribute it and/or modify %>
<%# it under the terms of the GNU Affero General Public License License as published by %>
<%# the Free Software Foundation, either version 3 of the License, or %>
<%# (at your option) any later version. %>
<%# redBorder is distributed in the hope that it will be useful, %>
<%# but WITHOUT ANY WARRANTY; without even the implied warranty of %>
<%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %>
<%# GNU Affero General Public License License for more details. %>
<%# You should have received a copy of the GNU Affero General Public License License %>
<%# along with redBorder. If not, see <http://www.gnu.org/licenses/>. %>
<%####################################################################### %>
Defaults:redborder !requiretty
Defaults:redborder-monitor !requiretty, !syslog
redborder ALL= NOPASSWD:SETENV: /usr/lib/redborder/bin/rb_wakeup_chef.sh, /usr/lib/redborder/bin/rb_disassociate.sh -f, /sbin/service chef-client restart
redborder-monitor ALL= NOPASSWD: /usr/lib/redborder/bin/rb_get_sensor.sh, /usr/lib/redborder/bin/cachestat.sh, /bin/nice -n 19 /usr/sbin/fping -p 1 -c 10 *, /usr/lib/redborder/bin/rb_mem.sh *

0 comments on commit 2c2174c

Please sign in to comment.