Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4029: use the system variables MANAGED_NODES_NAME and MANAGED_NOD... #212

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions techniques/system/common/1.0/cf-served.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bundle server access_rules


any::
&POLICYCHILDREN, CHILDRENID : {host, uuid |
&MANAGED_NODES_NAME, MANAGED_NODES_ID : {host, uuid |
"/var/rudder/share/&uuid&/"
maproot => { host2ip("&host&"), escape("&host&") },
admit => { host2ip("&host&"), escape("&host&") };
Expand Down Expand Up @@ -110,23 +110,23 @@ body server control
@{def.acl} ,
&ALLOWCONNECT: { host2ip("&it&"), "&it&", }&
&if(CLIENTSLIST)&
&POLICYCHILDREN: { host2ip("&it&"), "&it&"};separator=", "&
&MANAGED_NODES_NAME: { host2ip("&it&"), "&it&"};separator=", "&
&endif&
}; #trustkey allows the exchange of keys

allowconnects => {
@{def.acl} ,
&ALLOWCONNECT: { host2ip("&it&"), "&it&", }&
&if(CLIENTSLIST)&
&POLICYCHILDREN: { host2ip("&it&"), "&it&"};separator=", "&
&MANAGED_NODES_NAME: { host2ip("&it&"), "&it&"};separator=", "&
&endif&
};

allowallconnects => {
@{def.acl} ,
&ALLOWCONNECT: { host2ip("&it&"), "&it&", }&
&if(CLIENTSLIST)&
&POLICYCHILDREN: { host2ip("&it&"), "&it&"};separator=", "&
&MANAGED_NODES_NAME: { host2ip("&it&"), "&it&"};separator=", "&
&endif&
};

Expand Down
2 changes: 2 additions & 0 deletions techniques/system/common/1.0/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<NAME>DAVUSER</NAME>
<NAME>DAVPASSWORD</NAME>
<NAME>SYSLOGPORT</NAME>
<NAME>MANAGED_NODES_NAME</NAME>
<NAME>MANAGED_NODES_ID</NAME>
</SYSTEMVARS>

<SECTIONS>
Expand Down