Skip to content

Commit

Permalink
Add Blocked Docker Repositories
Browse files Browse the repository at this point in the history
- Add array of blocked docker repositories to Flux OS config templates
- Update user.yml with array of blocked repos if desired
  • Loading branch information
JKTUNING committed Jan 3, 2024
1 parent 9ab2e88 commit 044af53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/fluxos/templates/userconfig.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ module.exports = {
{% endif %}
testnet: {{ user[hostvars[inventory_hostname].user][hostvars[inventory_hostname].n]['testnet'] | default(false)|string|lower }},
blockedPorts: {{ user[hostvars[inventory_hostname].user]['blocked_ports'] | default([]) }},
blockedRepositories: {{ user[hostvars[inventory_hostname].user]['blocked_repos'] | default([]) }},
}
}
1 change: 1 addition & 0 deletions user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ user:
collateral_tx: # String: Collateral Transaction ID
index: # Int: Specify the index for this collateral. This value in optional if differs from the default index value provided above. Line should be removed if using default index above.
blocked_ports: # Array: Array of blocked ports that FluxOS can't use. [2222, 2224, 900, 35000]. Set to [] or remove entire line if blocked ports are not desired.
blocked_repos: # Array: Array of blocked docker repositories that FluxOS can't use. ['test/banthis', 'block/dontrunonme']. Set to [] or remove entire line if blocked repos are not desired.

0 comments on commit 044af53

Please sign in to comment.