Skip to content

Commit 2c2174c

Browse files
authored
Merge pull request #52 from redBorder/development
Release 2.0.0
2 parents 83823cb + 102777b commit 2c2174c

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
cookbook-rb-proxy CHANGELOG
22
===============
33

4+
## 2.0.0
5+
6+
- Miguel Negron
7+
- [6e7bc6a] Add sudoers config
8+
49
## 1.0.1
510

611
- Miguel Negrón

resources/metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
maintainer_email '[email protected]'
44
license 'AGPL-3.0'
55
description 'Installs/Configures redborder proxy'
6-
version '1.0.1'
6+
version '2.0.0'
77

88
depends 'rb-common'
99
depends 'rb-selinux'

resources/recipes/configure.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,12 @@
211211
# mode 'proxy'
212212
# action (node['redborder']['services']['radiusd'] ? [:config_common] : [:remove])
213213
# end
214+
215+
template '/etc/sudoers.d/redBorder' do
216+
source 'redBorder.erb'
217+
cookbook 'rb-proxy'
218+
owner 'root'
219+
group 'root'
220+
mode '0440'
221+
retries 2
222+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<%####################################################################### %>
2+
<%# Copyright (c) 2024 ENEO Tecnología S.L. %>
3+
<%# This file is part of redBorder. %>
4+
<%# redBorder is free software: you can redistribute it and/or modify %>
5+
<%# it under the terms of the GNU Affero General Public License License as published by %>
6+
<%# the Free Software Foundation, either version 3 of the License, or %>
7+
<%# (at your option) any later version. %>
8+
<%# redBorder is distributed in the hope that it will be useful, %>
9+
<%# but WITHOUT ANY WARRANTY; without even the implied warranty of %>
10+
<%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %>
11+
<%# GNU Affero General Public License License for more details. %>
12+
<%# You should have received a copy of the GNU Affero General Public License License %>
13+
<%# along with redBorder. If not, see <http://www.gnu.org/licenses/>. %>
14+
<%####################################################################### %>
15+
Defaults:redborder !requiretty
16+
Defaults:redborder-monitor !requiretty, !syslog
17+
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
18+
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 commit comments

Comments
 (0)